DEFINE OBJECTS 41
DEFINE OBJECT SANNY BUILDER 3.9.0     
DEFINE OBJECT INDHELIX_BARRIER         // Object number -1
DEFINE OBJECT LOD_LAND014              // Object number -2
DEFINE OBJECT PLAYERSDOOR              // Object number -3
DEFINE OBJECT FAKETARGET               // Object number -4
DEFINE OBJECT MISTYDOOR                // Object number -5
DEFINE OBJECT LAUNDRTDOOR1             // Object number -6
DEFINE OBJECT JOEY_DOOR1               // Object number -7
DEFINE OBJECT JOEY_DOOR2               // Object number -8
DEFINE OBJECT ELECTRICGATE             // Object number -9
DEFINE OBJECT DOGFOODOOR01             // Object number -10
DEFINE OBJECT BANKJOBDOOR              // Object number -11
DEFINE OBJECT CHNABANKDOOR             // Object number -12
DEFINE OBJECT BACKDOOR                 // Object number -13
DEFINE OBJECT FUZBALLDOOR              // Object number -14
DEFINE OBJECT SUBWAYGATE               // Object number -15
DEFINE OBJECT TUNNELENTRANCE           // Object number -16
DEFINE OBJECT HELIX_BARRIER            // Object number -17
DEFINE OBJECT PLYSAV_LFTDR_LFT         // Object number -18
DEFINE OBJECT PLYSAV_LFTDR_RGHT        // Object number -19
DEFINE OBJECT FIXED_INSIDE             // Object number -20
DEFINE OBJECT FIXED_OUTSIDE            // Object number -21
DEFINE OBJECT NEWTOWERDOOR1            // Object number -22
DEFINE OBJECT COLUMBIANGATE            // Object number -23
DEFINE OBJECT AIRPORTDOOR1             // Object number -24
DEFINE OBJECT AIRPORTDOOR2             // Object number -25
DEFINE OBJECT BRIEFCASE                // Object number -26
DEFINE OBJECT BODYARMOUR               // Object number -27
DEFINE OBJECT INFO                     // Object number -28
DEFINE OBJECT BRIBE                    // Object number -29
DEFINE OBJECT HEALTH                   // Object number -30
DEFINE OBJECT WESTBARRIER1             // Object number -31
DEFINE OBJECT ADRENALINE               // Object number -32
DEFINE OBJECT KILLFRENZY               // Object number -33
DEFINE OBJECT BOATRAMP1                // Object number -34
DEFINE OBJECT LOD_SHORECPARK           // Object number -35
DEFINE OBJECT NEWRAMP                  // Object number -36
DEFINE OBJECT BASEFLOOR                // Object number -37
DEFINE OBJECT BARREL4                  // Object number -38
DEFINE OBJECT COFFEE                   // Object number -39
DEFINE OBJECT B1                       // Object number -40

DEFINE MISSIONS 51
DEFINE MISSION 0 AT @MV0               // Intro Movie
DEFINE MISSION 1 AT @MV1               // Hospital Info Scene
DEFINE MISSION 2 AT @MV2               // Police Station Info Scene
DEFINE MISSION 3 AT @MV3               // RC Diablo Destruction
DEFINE MISSION 4 AT @MV4               // RC Mafia Massacre
DEFINE MISSION 5 AT @MV5               // RC Rumpo Rampage
DEFINE MISSION 6 AT @MV6               // RC Casino Calamity
DEFINE MISSION 7 AT @M81               // Patriot Playground
DEFINE MISSION 8 AT @M82               // A Ride In The Park
DEFINE MISSION 9 AT @M83               // Gripped!
DEFINE MISSION 10 AT @M84              // Multistorey Mayhem
DEFINE MISSION 11 AT @M85              // Paramedic
DEFINE MISSION 12 AT @MJ1              // Firefighter
DEFINE MISSION 13 AT @MJ2              // Vigilante
DEFINE MISSION 14 AT @MJ3              // Taxi Driver
DEFINE MISSION 15 AT @MJ4              // The Crook
DEFINE MISSION 16 AT @MJ5              // The Thieves
DEFINE MISSION 17 AT @MJ6              // The Wife
DEFINE MISSION 18 AT @MJ7              // Her Lover
DEFINE MISSION 19 AT @MK1              // Give Me Liberty and Luigi's Girls
DEFINE MISSION 20 AT @MK2              // Don't Spank My Bitch Up
DEFINE MISSION 21 AT @MK3              // Drive Misty For Me
DEFINE MISSION 22 AT @MK4              // Pump-Action Pimp
DEFINE MISSION 23 AT @MC1              // The Fuzz Ball
DEFINE MISSION 24 AT @MC2              // Mike Lips Last Lunch
DEFINE MISSION 25 AT @MC3              // Farewell 'Chunky' Lee Chong
DEFINE MISSION 26 AT @MA1              // Van Heist
DEFINE MISSION 27 AT @MA2              // Cipriani's Chauffeur
DEFINE MISSION 28 AT @MA3              // Dead Skunk In The Trunk
DEFINE MISSION 29 AT @MA4              // The Getaway
DEFINE MISSION 30 AT @MA5              // Taking Out The Laundry
DEFINE MISSION 31 AT @MA6              // The Pick-Up
DEFINE MISSION 32 AT @MA7              // Salvatore's Called A Meeting
DEFINE MISSION 33 AT @MXOX             // Triads And Tribulations
DEFINE MISSION 34 AT @MC4              // Blow Fish
DEFINE MISSION 35 AT @MC5              // Chaperone
DEFINE MISSION 36 AT @M86              // Cutting The Grass
DEFINE MISSION 37 AT @MC6              // Bomb Da Base: Act I
DEFINE MISSION 38 AT @MK5              // Bomb Da Base: Act II
DEFINE MISSION 39 AT @MA8              // Last Requests
DEFINE MISSION 40 AT @MEND             // Turismo
DEFINE MISSION 41 AT @AMBULAN          // I Scream, You Scream
DEFINE MISSION 42 AT @FIRETRU          // Trial By Fire
DEFINE MISSION 43 AT @COPCAR           // Big'N'Veiny
DEFINE MISSION 44 AT @TAXI             // Sayonara Salvatore
DEFINE MISSION 45 AT @MHRACE           // Under Surveillance
DEFINE MISSION 46 AT @MSRACE           // Paparazzi Purge
DEFINE MISSION 47 AT @MPRACE           // Payday For Ray
DEFINE MISSION 48 AT @MBALL            // Two-Faced Tanner
DEFINE MISSION 49 AT @MLRACE           // Kanbu Bust-Out
DEFINE MISSION 50 AT @MLCRACE          // Grand Theft Auto


//-------------MAIN---------------
script_name 'MAIN'
set_fading_colour 0 0 0
set_deatharrest_state 1
set_progress_total 67
set_total_number_of_missions 41
set_unique_jumps_total 18
do_fade 0 0
load_collision 0
set_visibility_of_closest_object_of_type 27.9375 -1020.438 64.5 radius 10.0 object #B1 0
set_visibility_of_closest_object_of_type 27.9375 -1024.688 64.5 radius 10.0 object #B1 0
set_visibility_of_closest_object_of_type 788.75 -927.8125 75.3125 radius 20.0 object #BASEFLOOR 0
set_visibility_of_closest_object_of_type 289.4375 9.125 -37.8125 radius 20.0 object #BASEFLOOR 0
set_visibility_of_closest_object_of_type -35.75 -63.5 19.6875 radius 20.0 object #NEWRAMP 0
swap_nearest_building_model -35.75 -63.5 19.6875 radius 20.0 from #NEWRAMP to #LOD_LAND014
set_visibility_of_closest_object_of_type -3.75 -131.5 19.6875 radius 20.0 object #NEWRAMP 0
swap_nearest_building_model -3.75 -131.5 19.6875 radius 20.0 from #NEWRAMP to #LOD_LAND014
create_player $PLAYER_CHAR = create_player 0 at 976.0625 -679.3125 14.9375
set_player_heading $PLAYER_CHAR z_angle_to 204.0
get_player_char $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR
create_object_no_offset $PLAYER_DOOR = init_object #PLAYERSDOOR at 890.875 -307.6875 8.75
dont_remove_object $PLAYER_DOOR
create_object_no_offset $FAKETARGET1 = init_object #FAKETARGET at 1078.688 -384.75 15.375
dont_remove_object $FAKETARGET1
create_object_no_offset $FAKETARGET2 = init_object #FAKETARGET at 1080.5 -384.75 15.375
dont_remove_object $FAKETARGET2
create_object_no_offset $FAKETARGET3 = init_object #FAKETARGET at 1082.25 -384.75 15.375
dont_remove_object $FAKETARGET3
create_object_no_offset $MISTY_DOOR1 = init_object #MISTYDOOR at 945.625 -272.25 4.8125
dont_remove_object $MISTY_DOOR1
create_object_no_offset $MISTY_DOOR2 = init_object #MISTYDOOR at 942.6875 -273.6875 4.8125
dont_remove_object $MISTY_DOOR2
set_object_heading $MISTY_DOOR2 z_angle_to 180.0
create_object_no_offset $LAUNDRY_DOOR1 = init_object #LAUNDRTDOOR1 at 845.75 -662.75 15.0625
dont_remove_object $LAUNDRY_DOOR1
create_object_no_offset $LAUNDRY_DOOR2 = init_object #LAUNDRTDOOR1 at 845.75 -664.8125 15.0625
dont_remove_object $LAUNDRY_DOOR2
set_object_heading $LAUNDRY_DOOR2 z_angle_to 180.0
create_object_no_offset $JOEY_DOOR1 = init_object #JOEY_DOOR1 at 1192.188 -867.25 14.0625
dont_remove_object $JOEY_DOOR1
set_object_heading $JOEY_DOOR1 z_angle_to 45.0
create_object_no_offset $JOEY_DOOR2 = init_object #JOEY_DOOR2 at 1190.063 -869.3125 14.1875
dont_remove_object $JOEY_DOOR2
set_object_heading $JOEY_DOOR2 z_angle_to 45.0
create_object_no_offset $DOGFOOD_FACTORY_GATE = init_object #ELECTRICGATE at 1250.375 -812.0 13.9375
dont_remove_object $DOGFOOD_FACTORY_GATE
set_object_heading $DOGFOOD_FACTORY_GATE z_angle_to 225.0
create_object_no_offset $DOGFOOD_DOOR = init_object #DOGFOODOOR01 at 1205.25 -802.875 15.0
dont_remove_object $DOGFOOD_DOOR
set_object_heading $DOGFOOD_DOOR z_angle_to 45.0
create_object_no_offset $TRIAD_FISH_FACTORY_GATE = init_object #ELECTRICGATE at 1016.0 -1107.938 12.25
dont_remove_object $TRIAD_FISH_FACTORY_GATE
set_object_heading $TRIAD_FISH_FACTORY_GATE z_angle_to 90.0
create_object_no_offset $BANKJOB_DOOR = init_object #BANKJOBDOOR at 1087.5 -233.75 11.0
dont_remove_object $BANKJOB_DOOR
create_object_no_offset $BANKDOOR1 = init_object #CHNABANKDOOR at 1035.563 -700.75 15.3125
dont_remove_object $BANKDOOR1
create_object_no_offset $BANKDOOR2 = init_object #CHNABANKDOOR at 1035.563 -699.375 15.3125
dont_remove_object $BANKDOOR2
set_object_heading $BANKDOOR2 z_angle_to 180.0
create_object_no_offset $BACKDOOR = init_object #BACKDOOR at 891.0 -416.375 14.9375
dont_remove_object $BACKDOOR
create_object_no_offset $FUZZBALL_DOOR1 = init_object #FUZBALLDOOR at 1001.625 -887.8125 15.75
set_object_heading $FUZZBALL_DOOR1 z_angle_to 180.0
dont_remove_object $FUZZBALL_DOOR1
create_object_no_offset $FUZZBALL_DOOR2 = init_object #FUZBALLDOOR at 998.3125 -887.9375 15.75
set_object_heading $FUZZBALL_DOOR2 z_angle_to 0.0
dont_remove_object $FUZZBALL_DOOR2
create_object_no_offset $SUBWAYGATE = init_object #SUBWAYGATE at 988.9375 -471.75 5.1875
dont_remove_object $SUBWAYGATE
set_object_heading $SUBWAYGATE z_angle_to 90.0
create_object_no_offset $TUNNELENTRANCE = init_object #TUNNELENTRANCE at 730.3125 172.4375 -21.0625
dont_remove_object $TUNNELENTRANCE
create_object_no_offset $HELIX_BARRIER = init_object #HELIX_BARRIER at -73.125 -630.3125 25.875
dont_remove_object $HELIX_BARRIER
create_object_no_offset $STAUNTON_HIDEOUT_DOOR1 = init_object #PLYSAV_LFTDR_LFT at 103.8125 -482.75 16.25
dont_remove_object $STAUNTON_HIDEOUT_DOOR1
create_object_no_offset $STAUNTON_HIDEOUT_DOOR2 = init_object #PLYSAV_LFTDR_RGHT at 102.1875 -482.75 16.25
dont_remove_object $STAUNTON_HIDEOUT_DOOR2
set_object_heading $STAUNTON_HIDEOUT_DOOR2 z_angle_to 180.0
create_object_no_offset $STAUNTON_POLICE_GATE_1 = init_object #ELECTRICGATE at 366.125 -1128.5 21.9375
dont_remove_object $STAUNTON_POLICE_GATE_1
set_object_heading $STAUNTON_POLICE_GATE_1 z_angle_to 180.0
create_object_no_offset $STAUNTON_POLICE_GATE_2 = init_object #ELECTRICGATE at 326.25 -1128.5 21.9375
dont_remove_object $STAUNTON_POLICE_GATE_2
set_object_heading $STAUNTON_POLICE_GATE_2 z_angle_to 180.0
create_object_no_offset $STAUNTON_CARTEL_GATE = init_object #ELECTRICGATE at 91.5625 -318.5625 15.25
dont_remove_object $STAUNTON_CARTEL_GATE
set_object_heading $STAUNTON_CARTEL_GATE z_angle_to 270.0
create_object_no_offset $ARMY_BASE_GATE = init_object #ELECTRICGATE at 147.1875 207.3125 10.5625
dont_remove_object $ARMY_BASE_GATE
set_object_heading $ARMY_BASE_GATE z_angle_to 270.0
create_object_no_offset $INSIDE_FENCE = init_object #FIXED_INSIDE at 362.8125 -341.875 17.125
dont_remove_object $INSIDE_FENCE
create_object_no_offset $OUTSIDE_FENCE = init_object #FIXED_OUTSIDE at 360.8125 -391.375 22.5625
dont_remove_object $OUTSIDE_FENCE
create_object_no_offset $56 = init_object #NEWTOWERDOOR1 at -664.3125 2.875 19.5
dont_remove_object $56
set_object_heading $56 z_angle_to 180.0
create_object_no_offset $CARTEL_MANSION_GATE = init_object #COLUMBIANGATE at -363.0 250.4375 61.3125
dont_remove_object $CARTEL_MANSION_GATE
set_object_heading $CARTEL_MANSION_GATE z_angle_to 180.0
create_object_no_offset $AIRPORT_DOOR1 = init_object #AIRPORTDOOR1 at -770.375 -599.25 11.8125
dont_remove_object $AIRPORT_DOOR1
create_object_no_offset $AIRPORT_DOOR2 = init_object #AIRPORTDOOR2 at -770.375 -601.3125 11.8125
dont_remove_object $AIRPORT_DOOR2
set_max_wanted_level 4
set_garage $61 = create_garage 4 from 1284.563 -100.5 13.5625 1278.0 -111.0 18.5625
set_garage $SPRAYSHOP1 = create_garage 5 from 921.0 -367.5 9.75 928.6875 -355.0625 14.75
set_garage $FRANKIE_GARAGE = create_garage 1 from 1428.75 -187.0 49.6875 1442.5 -179.875 54.6875
set_rotating_garage_door $FRANKIE_GARAGE
set_garage $GARAGE_BANK = create_garage 1 from 1440.688 -805.5625 10.875 1449.75 -782.0625 15.875
set_garage $GARAGE_LM2 = create_garage 1 from 1074.0 -578.0 13.0 1085.0 -568.0 17.0
$GARAGE_MIN_X_YD3 = 257.0
$GARAGE_MIN_Y_YD3 = -803.0
$GARAGE_MAX_X_YD3 = 263.0
$GARAGE_MAX_Y_YD3 = -795.5
set_garage $70 = create_garage 19 from 115.0625 -475.25 15.0 106.875 -487.0625 19.0
set_garage $71 = create_garage 4 from 386.0 -573.0 25.1875 376.5625 -580.0625 30.1875
set_garage $72 = create_garage 5 from 386.0 -490.0 25.1875 376.5625 -497.0 30.1875
set_rotating_garage_door $RAYS_PRIZE_GARAGE
set_garage $WITSEC_GARAGE = create_garage 11 from 375.0 -441.5 20.0625 386.0 -434.0 25.0625
set_garage $GARAGE_KM2 = create_garage 1 from 377.25 -511.375 25.0625 383.6875 -502.0 30.0
set_garage $GARAGE1_LOVE1 = create_garage 19 from 63.75 -307.875 15.1875 70.0 -316.6875 19.1875
set_garage $GARAGE2_LOVE1 = create_garage 19 from 53.0 -308.0 15.1875 60.0 -316.6875 19.1875
set_garage $GARAGE3_LOVE1 = create_garage 19 from 24.875 -344.0 15.1875 30.5625 -337.0625 19.1875
set_garage $GARAGE4_LOVE1 = create_garage 19 from 24.5 -355.0 15.1875 30.5625 -346.0 19.1875
set_garage $GARAGE5_LOVE1 = create_garage 19 from 52.5 -388.0 15.1875 42.0 -374.0625 19.1875
set_garage $GARAGE_YD3 = create_garage 1 from $GARAGE_MIN_X_YD3 $GARAGE_MIN_Y_YD3 26.75 $GARAGE_MAX_X_YD3 $GARAGE_MAX_Y_YD3 31.75
set_garage $87 = create_garage 16 from -1113.75 40.75 57.0 -1105.125 47.125 63.375
set_garage $93 = create_garage 5 from -1139.0 37.75 55.0 -1148.5 32.0625 65.0
set_garage $88 = create_garage 4 from -1078.875 58.0 56.0 -1086.0 49.0 65.0
set_garage $GARAGE_HM3 = create_garage 14 from 1346.875 -315.5 49.0 1352.5 -310.6875 53.0
set_garage $GARAGE_HM4 = create_garage 20 from -824.6875 -165.5 32.75 -843.5 -171.6875 37.0
set_garage $ESCORT_GARAGE = create_garage 19 from -1049.125 -77.4375 37.75 -1037.188 -69.125 42.75
set_rotating_garage_door $ESCORT_GARAGE
set_zone_ped_info 'CITYZON' 1 12 0 0 0 0 0 0 0 20
set_zone_ped_info 'CITYZON' 0 8 0 0 0 0 0 0 0 10
set_zone_car_info 'CITYZON' 1 10 0 0 0 0 0 0 0 20 240 240 240 240 0 0
set_zone_car_info 'CITYZON' 0 8 0 0 0 0 0 0 0 10 240 240 240 240 0 0
set_zone_group 'CITYZON' 1 0
set_zone_group 'CITYZON' 0 0
set_zone_ped_info 'IND_ZON' 1 12 0 0 0 0 0 0 0 20
set_zone_ped_info 'IND_ZON' 0 8 0 0 0 0 0 0 0 10
set_zone_car_info 'IND_ZON' 1 10 0 0 0 0 0 0 0 20 500 0 0 450 0 0
set_zone_car_info 'IND_ZON' 0 8 0 0 0 0 0 0 0 10 500 0 0 450 0 0
set_zone_group 'IND_ZON' 1 11
set_zone_group 'IND_ZON' 0 12
set_zone_ped_info 'COM_ZON' 1 12 0 0 0 0 0 0 0 20
set_zone_ped_info 'COM_ZON' 0 8 0 0 0 0 0 0 0 10
set_zone_car_info 'COM_ZON' 1 10 0 0 0 0 0 0 0 20 0 300 450 150 0 0
set_zone_car_info 'COM_ZON' 0 8 0 0 0 0 0 0 0 10 0 300 450 150 0 0
set_zone_group 'COM_ZON' 1 0
set_zone_group 'COM_ZON' 0 0
set_zone_ped_info 'SUB_ZON' 1 12 0 0 0 0 0 0 0 20
set_zone_ped_info 'SUB_ZON' 0 8 0 0 0 0 0 0 0 10
set_zone_car_info 'SUB_ZON' 1 10 0 0 0 0 0 0 0 20 0 500 450 0 0 0
set_zone_car_info 'SUB_ZON' 0 8 0 0 0 0 0 0 0 10 0 500 450 0 0 0
set_zone_group 'SUB_ZON' 1 0
set_zone_group 'SUB_ZON' 0 0
set_zone_ped_info 'LITTLEI' 1 17 300 0 0 0 0 0 0 20
set_zone_ped_info 'LITTLEI' 0 11 4 0 0 0 0 0 0 0
set_zone_car_info 'LITTLEI' 1 10 100 0 0 0 0 0 0 20 400 0 0 350 20 0
set_zone_car_info 'LITTLEI' 0 8 150 0 0 0 0 0 0 10 550 0 0 150 0 0
set_zone_group 'LITTLEI' 1 3
set_zone_group 'LITTLEI' 0 4
set_zone_ped_info 'CHINA' 1 20 0 300 0 0 0 0 0 20
set_zone_ped_info 'CHINA' 0 12 0 400 0 0 0 0 0 10
set_zone_car_info 'CHINA' 1 10 0 100 0 0 0 0 0 10 400 0 0 350 0 0
set_zone_car_info 'CHINA' 0 8 0 150 0 0 0 0 0 20 550 0 0 200 0 0
set_zone_group 'CHINA' 1 5
set_zone_group 'CHINA' 0 6
set_zone_ped_info 'TOWERS' 1 15 0 0 300 10 0 0 0 0
set_zone_ped_info 'TOWERS' 0 10 0 0 400 10 0 0 0 0
set_zone_car_info 'TOWERS' 1 8 0 0 100 0 0 0 0 20 400 0 0 350 0 0
set_zone_car_info 'TOWERS' 0 6 0 0 150 0 0 0 0 10 550 0 0 200 0 0
set_zone_group 'TOWERS' 1 9
set_zone_group 'TOWERS' 0 10
set_zone_ped_info 'REDLIGH' 1 6 0 0 0 0 0 0 0 20
set_zone_ped_info 'REDLIGH' 0 13 0 0 0 0 0 0 0 10
set_zone_car_info 'REDLIGH' 1 5 0 0 0 0 0 0 0 10 550 0 0 350 0 0
set_zone_car_info 'REDLIGH' 0 7 0 0 0 0 0 0 0 20 600 0 0 200 0 0
set_zone_group 'REDLIGH' 1 1
set_zone_group 'REDLIGH' 0 2
set_zone_ped_info 'PORT_I' 1 10 0 0 0 0 0 0 400 0
set_zone_ped_info 'PORT_I' 0 7 0 0 0 0 0 0 300 0
set_zone_car_info 'PORT_I' 1 8 0 0 0 0 0 0 100 20 300 0 0 400 20 0
set_zone_car_info 'PORT_I' 0 6 0 0 0 0 0 0 50 10 500 0 0 400 0 0
set_zone_group 'PORT_I' 1 11
set_zone_group 'PORT_I' 0 12
set_zone_ped_info 'PORT_E' 1 10 10 0 0 0 0 0 0 0
set_zone_ped_info 'PORT_E' 0 8 10 0 0 0 0 0 0 0
set_zone_car_info 'PORT_E' 1 8 0 0 0 0 0 0 0 20 300 0 0 400 20 0
set_zone_car_info 'PORT_E' 0 6 0 0 0 0 0 0 0 10 500 0 0 400 0 0
set_zone_group 'PORT_E' 1 7
set_zone_group 'PORT_E' 0 8
set_zone_ped_info 'PORT_S' 1 10 0 0 0 0 0 10 0 0
set_zone_ped_info 'PORT_S' 0 8 0 0 0 0 0 10 0 0
set_zone_car_info 'PORT_S' 1 8 0 0 0 0 0 0 100 20 300 0 0 500 20 0
set_zone_car_info 'PORT_S' 0 6 0 0 0 0 0 0 50 10 500 0 0 400 0 0
set_zone_group 'PORT_S' 1 11
set_zone_group 'PORT_S' 0 12
set_zone_ped_info 'PORT_W' 1 10 0 10 0 0 0 10 0 0
set_zone_ped_info 'PORT_W' 0 5 0 10 0 0 0 10 0 0
set_zone_car_info 'PORT_W' 1 8 0 0 0 0 0 0 0 20 300 0 0 400 0 0
set_zone_car_info 'PORT_W' 0 6 0 0 0 0 0 0 0 10 500 0 0 400 0 0
set_zone_group 'PORT_W' 1 11
set_zone_group 'PORT_W' 0 12
set_zone_ped_info 'HARWOOD' 1 10 0 0 200 0 0 0 0 0
set_zone_ped_info 'HARWOOD' 0 8 0 0 300 0 0 0 0 0
set_zone_car_info 'HARWOOD' 1 8 0 0 100 0 0 0 0 20 400 0 0 300 0 0
set_zone_car_info 'HARWOOD' 0 6 0 0 100 0 0 0 0 10 600 0 0 200 0 0
set_zone_group 'HARWOOD' 1 11
set_zone_group 'HARWOOD' 0 12
set_zone_ped_info 'EASTBAY' 1 10 0 0 0 0 0 0 0 0
set_zone_ped_info 'EASTBAY' 0 5 0 0 0 0 0 0 0 0
set_zone_car_info 'EASTBAY' 1 5 0 0 0 0 0 0 0 20 500 0 0 480 0 0
set_zone_car_info 'EASTBAY' 0 4 0 0 0 0 0 0 0 10 500 0 0 490 0 0
set_zone_group 'EASTBAY' 1 11
set_zone_group 'EASTBAY' 0 12
set_zone_ped_info 'S_VIEW' 1 10 0 0 0 0 0 0 0 30
set_zone_ped_info 'S_VIEW' 0 8 0 0 0 0 0 0 0 20
set_zone_car_info 'S_VIEW' 1 10 0 0 0 0 0 0 0 30 400 0 0 300 100 0
set_zone_car_info 'S_VIEW' 0 8 0 0 0 0 0 0 0 20 500 0 0 200 100 0
set_zone_group 'S_VIEW' 1 11
set_zone_group 'S_VIEW' 0 12
set_zone_ped_info 'COPS_1' 1 10 0 0 0 0 0 0 0 60
set_zone_ped_info 'COPS_1' 0 8 0 0 0 0 0 0 0 60
set_zone_car_info 'COPS_1' 1 10 0 0 0 0 0 0 0 90 400 0 0 400 0 0
set_zone_car_info 'COPS_1' 0 8 0 0 0 0 0 0 0 90 400 0 0 400 0 0
set_zone_group 'COPS_1' 1 11
set_zone_group 'COPS_1' 0 12
set_zone_ped_info 'HOSPI_1' 1 10 0 0 0 0 0 0 0 60
set_zone_ped_info 'HOSPI_1' 0 8 0 0 0 0 0 0 0 60
set_zone_car_info 'HOSPI_1' 1 10 0 0 0 0 0 0 0 90 400 0 0 400 0 0
set_zone_car_info 'HOSPI_1' 0 8 0 0 0 0 0 0 0 90 400 0 0 400 0 0
set_zone_group 'HOSPI_1' 1 17
set_zone_group 'HOSPI_1' 0 18
set_zone_ped_info 'ROADBR1' 1 30 0 0 0 0 0 0 0 0
set_zone_ped_info 'ROADBR1' 0 20 0 0 0 0 0 0 0 0
set_zone_car_info 'ROADBR1' 1 12 0 0 0 0 0 0 0 20 400 0 0 400 0 100
set_zone_car_info 'ROADBR1' 0 10 0 0 0 0 0 0 0 10 400 0 0 400 0 100
set_zone_group 'ROADBR1' 1 11
set_zone_group 'ROADBR1' 0 12
set_zone_ped_info 'FISHFAC' 1 2 0 1000 0 0 0 0 0 0
set_zone_ped_info 'FISHFAC' 0 2 0 1000 0 0 0 0 0 0
set_zone_car_info 'FISHFAC' 1 6 0 0 0 0 0 0 0 20 200 0 0 600 0 0
set_zone_car_info 'FISHFAC' 0 4 0 0 0 0 0 0 0 10 200 0 0 600 0 0
set_zone_group 'FISHFAC' 1 11
set_zone_group 'FISHFAC' 0 12
set_zone_ped_info 'FILLIN1' 1 10 0 0 0 0 0 0 0 0
set_zone_ped_info 'FILLIN1' 0 8 0 0 0 0 0 0 0 0
set_zone_car_info 'FILLIN1' 1 8 0 0 0 0 0 0 0 20 500 0 0 400 0 0
set_zone_car_info 'FILLIN1' 0 6 0 0 0 0 0 0 0 10 400 0 0 400 0 0
set_zone_group 'FILLIN1' 1 11
set_zone_group 'FILLIN1' 0 12
set_zone_ped_info 'MAIN_D1' 1 15 0 300 0 0 0 0 0 20
set_zone_ped_info 'MAIN_D1' 0 10 0 500 0 0 0 0 0 10
set_zone_car_info 'MAIN_D1' 1 24 0 100 0 0 0 0 0 20 300 0 0 300 20 100
set_zone_car_info 'MAIN_D1' 0 18 0 150 0 0 0 0 0 10 300 0 0 300 20 100
set_zone_group 'MAIN_D1' 1 5
set_zone_group 'MAIN_D1' 0 6
set_zone_ped_info 'MAIN_D2' 1 15 0 300 0 0 0 0 0 20
set_zone_ped_info 'MAIN_D2' 0 10 0 400 0 0 0 0 0 10
set_zone_car_info 'MAIN_D2' 1 24 0 100 0 0 0 0 0 20 300 0 0 300 20 100
set_zone_car_info 'MAIN_D2' 0 18 0 150 0 0 0 0 0 10 300 0 0 300 20 100
set_zone_group 'MAIN_D2' 1 5
set_zone_group 'MAIN_D2' 0 6
set_zone_ped_info 'MAIN_D3' 1 15 0 300 0 0 0 0 0 20
set_zone_ped_info 'MAIN_D3' 0 10 0 400 0 0 0 0 0 10
set_zone_car_info 'MAIN_D3' 1 24 0 100 0 0 0 0 0 20 300 0 0 300 20 100
set_zone_car_info 'MAIN_D3' 0 18 0 150 0 0 0 0 0 10 300 0 0 300 20 100
set_zone_group 'MAIN_D3' 1 5
set_zone_group 'MAIN_D3' 0 6
set_zone_ped_info 'MAIN_D4' 1 15 0 300 0 0 0 0 0 20
set_zone_ped_info 'MAIN_D4' 0 10 0 400 0 0 0 0 0 10
set_zone_car_info 'MAIN_D4' 1 24 0 100 0 0 0 0 0 20 300 0 0 300 20 100
set_zone_car_info 'MAIN_D4' 0 18 0 150 0 0 0 0 0 10 300 0 0 300 20 100
set_zone_group 'MAIN_D4' 1 5
set_zone_group 'MAIN_D4' 0 6
set_zone_ped_info 'MAIN_D5' 1 15 0 0 0 0 0 0 0 20
set_zone_ped_info 'MAIN_D5' 0 10 0 0 0 0 0 0 0 10
set_zone_car_info 'MAIN_D5' 1 24 0 0 0 0 0 0 0 20 400 0 0 300 20 100
set_zone_car_info 'MAIN_D5' 0 18 0 0 0 0 0 0 0 10 300 0 0 400 20 100
set_zone_group 'MAIN_D5' 1 1
set_zone_group 'MAIN_D5' 0 2
set_zone_ped_info 'MAIN_D6' 1 15 0 0 300 0 0 0 0 20
set_zone_ped_info 'MAIN_D6' 0 10 0 0 400 0 0 0 0 10
set_zone_car_info 'MAIN_D6' 1 24 0 0 100 0 0 0 0 20 300 0 0 300 20 100
set_zone_car_info 'MAIN_D6' 0 18 0 0 150 0 0 0 0 10 300 0 0 300 20 100
set_zone_group 'MAIN_D6' 1 9
set_zone_group 'MAIN_D6' 0 10
switch_roads_off 619.5625 -911.5 45.0 834.25 -954.5 32.0
mark_roads_between_levels 619.5625 -911.5 45.0 834.25 -954.5 32.0
switch_roads_off 1381.0 -293.6875 48.0 1435.75 -140.0625 58.0
switch_roads_off 1358.875 -901.875 10.0 1609.563 -615.0625 16.0
switch_roads_off 659.5625 200.0 -20.0 945.75 147.5 5.0
mark_roads_between_levels 659.5625 200.0 -20.0 945.75 147.5 5.0
switch_ped_roads_off 659.5625 200.0 -25.0 945.75 147.5 5.0
mark_roads_between_levels 659.5625 200.0 -25.0 945.75 147.5 5.0
switch_ped_roads_off 773.5625 191.75 -25.0 819.6875 182.75 5.0
mark_roads_between_levels 773.5625 191.75 -25.0 819.6875 182.75 5.0
switch_ped_roads_off 1609.0 -896.0 8.0 1393.688 -967.375 30.0
switch_ped_roads_off 1048.25 -1103.375 5.0 1040.0 -1074.375 30.0
switch_ped_roads_off 900.0625 -297.0 6.0 842.8125 -325.5625 15.0
switch_ped_roads_off 900.5 -427.0625 14.0 879.0625 -404.1875 17.0
switch_ped_roads_off 847.875 -640.5625 10.0 887.875 -685.75 20.0
switch_ped_roads_off_angled 1222.875 -838.375 13.5 1256.25 -804.875 16.0 angle 58.0
switch_ped_roads_off 1005.563 -880.9375 12.0 995.875 -893.3125 20.0
switch_ped_roads_off 1070.563 -401.5625 10.0 1067.75 -397.1875 25.0
set_zone_ped_info 'STADIUM' 1 30 0 0 0 0 0 200 0 0
set_zone_ped_info 'STADIUM' 0 16 0 0 0 0 0 200 0 0
set_zone_car_info 'STADIUM' 1 20 0 0 0 0 0 100 0 20 300 150 0 250 0 200
set_zone_car_info 'STADIUM' 0 17 0 0 0 0 0 100 0 10 300 150 0 250 0 200
set_zone_group 'STADIUM' 1 15
set_zone_group 'STADIUM' 0 16
set_zone_ped_info 'HOSPI_2' 1 30 0 10 0 0 0 0 0 0
set_zone_ped_info 'HOSPI_2' 0 16 0 10 0 0 0 0 0 0
set_zone_car_info 'HOSPI_2' 1 20 0 0 0 0 0 0 0 20 300 150 0 250 0 200
set_zone_car_info 'HOSPI_2' 0 17 0 0 0 0 0 0 0 10 300 150 0 250 0 200
set_zone_group 'HOSPI_2' 1 17
set_zone_group 'HOSPI_2' 0 18
set_zone_ped_info 'UNIVERS' 1 30 0 0 10 0 0 0 0 20
set_zone_ped_info 'UNIVERS' 0 16 0 0 10 0 0 0 0 10
set_zone_car_info 'UNIVERS' 1 20 0 0 0 0 0 0 0 20 300 300 300 0 20 0
set_zone_car_info 'UNIVERS' 0 17 0 0 0 0 0 0 0 10 300 300 300 0 20 0
set_zone_group 'UNIVERS' 1 23
set_zone_group 'UNIVERS' 0 24
set_zone_ped_info 'CONSTRU' 1 30 150 0 0 0 0 0 0 20
set_zone_ped_info 'CONSTRU' 0 16 100 0 0 0 0 0 0 10
set_zone_car_info 'CONSTRU' 1 20 20 0 0 0 0 0 0 20 300 100 0 250 0 150
set_zone_car_info 'CONSTRU' 0 17 10 0 0 0 0 0 0 10 300 100 0 250 0 150
set_zone_group 'CONSTRU' 1 19
set_zone_group 'CONSTRU' 0 20
set_zone_ped_info 'PARK' 1 30 0 0 0 0 0 0 0 20
set_zone_ped_info 'PARK' 0 16 0 0 0 0 0 0 0 10
set_zone_car_info 'PARK' 1 20 0 0 0 0 0 0 0 20 300 300 300 0 0 0
set_zone_car_info 'PARK' 0 17 0 0 0 0 0 0 0 10 300 300 300 0 0 0
set_zone_group 'PARK' 1 25
set_zone_group 'PARK' 0 26
set_zone_ped_info 'COM_EAS' 1 30 0 0 0 0 300 0 0 20
set_zone_ped_info 'COM_EAS' 0 16 0 0 0 0 400 0 0 10
set_zone_car_info 'COM_EAS' 1 20 0 0 0 0 100 0 0 20 400 250 0 0 0 150
set_zone_car_info 'COM_EAS' 0 17 0 0 0 0 150 0 0 10 400 250 0 0 0 100
set_zone_group 'COM_EAS' 1 21
set_zone_group 'COM_EAS' 0 22
set_zone_ped_info 'SHOPING' 1 30 0 0 0 0 0 0 0 20
set_zone_ped_info 'SHOPING' 0 16 0 0 0 0 0 0 0 10
set_zone_car_info 'SHOPING' 1 20 0 0 0 0 0 0 0 30 300 250 250 0 0 100
set_zone_car_info 'SHOPING' 0 17 0 0 0 0 0 0 0 20 300 250 250 0 0 100
set_zone_group 'SHOPING' 1 21
set_zone_group 'SHOPING' 0 22
set_zone_ped_info 'YAKUSA' 1 30 0 0 0 300 0 0 0 20
set_zone_ped_info 'YAKUSA' 0 16 0 0 0 400 0 0 0 10
set_zone_car_info 'YAKUSA' 1 20 0 0 0 100 0 0 0 40 350 200 250 0 0 0
set_zone_car_info 'YAKUSA' 0 17 0 0 0 150 0 0 0 20 350 200 200 0 0 0
set_zone_group 'YAKUSA' 1 21
set_zone_group 'YAKUSA' 0 22
set_zone_ped_info 'ROADBR2' 1 30 0 0 0 0 0 0 0 20
set_zone_ped_info 'ROADBR2' 0 20 0 0 0 0 0 0 0 10
set_zone_car_info 'ROADBR2' 1 20 0 0 0 0 0 0 0 30 300 250 250 0 0 100
set_zone_car_info 'ROADBR2' 0 17 0 0 0 0 0 0 0 20 300 250 250 0 0 100
set_zone_group 'ROADBR2' 1 21
set_zone_group 'ROADBR2' 0 22
switch_ped_roads_off 106.0625 -1278.25 24.0 96.25 -1273.5 27.0
switch_ped_roads_off 120.0 170.0 10.0 190.0 246.0 25.0
switch_ped_roads_off 31.0 -317.0 14.0 91.0 -394.0 25.0
switch_roads_off 120.0 170.0 10.0 190.0 246.0 25.0
switch_roads_off 121.8125 -46.375 14.0 363.8125 54.25 20.0
switch_ped_roads_off 121.8125 -46.375 14.0 363.8125 54.25 20.0
switch_roads_off 353.5 -459.0 18.0 397.5 -431.5625 30.0
switch_roads_off 465.6875 -634.25 10.0 429.875 -610.0625 25.0
switch_roads_off -46.75 -648.0 39.0 -69.0625 -614.0 50.0
mark_roads_between_levels -46.75 -648.0 39.0 -69.0625 -614.0 50.0
switch_ped_roads_off 56.5 -1544.188 10.0 87.875 -1556.0 30.0
switch_ped_roads_off 413.5 -480.1875 20.0 420.875 -499.0 36.0
switch_ped_roads_off 419.5 -708.0625 20.0 412.5 -717.875 36.0
switch_ped_roads_off -76.875 -985.375 20.0 -68.75 -992.5625 36.0
switch_ped_roads_off -76.5 -934.375 20.0 -70.375 -928.375 36.0
switch_ped_roads_off -55.875 -934.5625 20.0 -46.375 -927.1875 36.0
switch_ped_roads_off -76.375 -999.5625 20.0 -68.75 -628.5 36.0
switch_ped_roads_off 199.25 -935.875 20.0 134.75 -927.375 40.0
switch_roads_off 529.5625 106.5 -30.0 581.375 65.6875 0.0
set_zone_ped_info 'AIRPORT' 1 20 0 0 0 0 0 200 0 20
set_zone_ped_info 'AIRPORT' 0 10 0 0 0 0 0 200 0 10
set_zone_car_info 'AIRPORT' 1 15 0 0 0 0 0 50 0 40 300 300 300 0 0 0
set_zone_car_info 'AIRPORT' 0 13 0 0 0 0 0 50 0 20 300 300 300 0 0 0
set_zone_group 'AIRPORT' 1 27
set_zone_group 'AIRPORT' 0 28
set_zone_ped_info 'PROJECT' 1 20 0 0 0 100 0 0 300 0
set_zone_ped_info 'PROJECT' 0 10 0 0 0 100 0 0 400 0
set_zone_car_info 'PROJECT' 1 15 0 0 0 20 0 0 100 20 500 150 0 150 0 0
set_zone_car_info 'PROJECT' 0 13 0 0 0 20 0 0 150 10 500 100 0 150 0 0
set_zone_group 'PROJECT' 1 9
set_zone_group 'PROJECT' 0 10
set_zone_ped_info 'SUB_IND' 1 20 0 0 0 0 0 300 0 20
set_zone_ped_info 'SUB_IND' 0 10 0 0 0 0 0 400 0 10
set_zone_car_info 'SUB_IND' 1 15 0 0 0 0 0 100 0 20 300 300 300 0 0 0
set_zone_car_info 'SUB_IND' 0 13 0 0 0 0 0 150 0 10 300 300 300 0 0 0
set_zone_group 'SUB_IND' 1 7
set_zone_group 'SUB_IND' 0 8
set_zone_ped_info 'SWANKS' 1 20 0 0 0 0 400 0 0 30
set_zone_ped_info 'SWANKS' 0 10 0 0 0 0 300 0 0 20
set_zone_car_info 'SWANKS' 1 15 0 0 0 0 70 0 0 30 0 400 400 0 20 0
set_zone_car_info 'SWANKS' 0 13 0 0 0 0 90 0 0 20 0 400 400 0 20 0
set_zone_group 'SWANKS' 1 29
set_zone_group 'SWANKS' 0 30
set_zone_ped_info 'BIG_DAM' 1 8 0 0 0 0 0 0 0 0
set_zone_ped_info 'BIG_DAM' 0 6 0 0 0 0 0 0 0 0
set_zone_car_info 'BIG_DAM' 1 8 0 0 0 0 0 0 0 20 300 300 0 300 0 0
set_zone_car_info 'BIG_DAM' 0 6 0 0 0 0 0 0 0 10 300 300 0 300 0 0
set_zone_group 'BIG_DAM' 1 11
set_zone_group 'BIG_DAM' 0 12
set_zone_ped_info 'SUB_ZO2' 1 20 0 0 0 0 0 0 0 20
set_zone_ped_info 'SUB_ZO2' 0 10 0 0 0 0 0 0 0 10
set_zone_car_info 'SUB_ZO2' 1 15 0 0 0 0 0 0 0 20 0 500 450 0 0 0
set_zone_car_info 'SUB_ZO2' 0 13 0 0 0 0 0 0 0 10 0 500 450 0 0 0
set_zone_group 'SUB_ZO2' 1 0
set_zone_group 'SUB_ZO2' 0 0
set_zone_ped_info 'SUB_ZO3' 1 20 0 0 0 0 0 0 0 20
set_zone_ped_info 'SUB_ZO3' 0 10 0 0 0 0 0 0 0 10
set_zone_car_info 'SUB_ZO3' 1 15 0 0 0 0 0 0 0 20 0 500 450 0 0 0
set_zone_car_info 'SUB_ZO3' 0 13 0 0 0 0 0 0 0 10 0 500 450 0 0 0
set_zone_group 'SUB_ZO3' 1 0
set_zone_group 'SUB_ZO3' 0 0
set_zone_ped_info 'WEE_DAM' 1 8 0 0 100 0 0 0 0 0
set_zone_ped_info 'WEE_DAM' 0 5 0 0 100 0 0 0 0 0
set_zone_car_info 'WEE_DAM' 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
set_zone_car_info 'WEE_DAM' 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
set_zone_group 'WEE_DAM' 1 7
set_zone_group 'WEE_DAM' 0 8
switch_roads_off -1052.625 -78.0 50.0 -988.0 -67.125 30.0
switch_ped_roads_off -1052.625 -78.0 50.0 -988.0 -67.125 30.0
switch_roads_off -952.5 361.375 10.0 -939.25 374.0 30.0
switch_roads_off -241.6875 251.75 0.0 -256.1875 241.375 20.0
switch_roads_off -1367.75 -731.4375 20.0 -743.1875 -410.1875 5.0
switch_roads_off -1591.375 -931.5 10.0 -1572.875 -914.5625 25.0
switch_ped_roads_off -1310.75 -568.75 5.0 -1224.875 -483.4375 20.0
switch_roads_off 496.6875 75.5 -30.0 484.0 44.1875 0.0
mark_roads_between_levels 496.6875 75.5 -30.0 484.0 44.1875 0.0
switch_roads_off -287.75 396.5 70.0 -269.0 418.0 100.0
switch_roads_off -877.0625 545.875 60.0 -901.25 575.0 100.0
switch_roads_off -690.375 101.1875 10.0 -704.375 78.875 30.0
switch_roads_off -1194.063 98.5625 50.0 -1234.0 119.1875 80.0
set_gang_car_model 0 car_to 134
set_gang_car_model 1 car_to 132
set_gang_car_model 2 car_to 137
set_gang_weapons 0 primary_weapon_to 2 secondary_weapon_to 4
set_gang_weapons 1 primary_weapon_to 2 secondary_weapon_to 2
set_gang_weapons 2 primary_weapon_to 2 secondary_weapon_to 2
set_gang_car_model 3 car_to 136
set_gang_car_model 5 car_to 138
set_gang_car_model 4 car_to 135
set_gang_weapons 3 primary_weapon_to 3 secondary_weapon_to 2
set_gang_weapons 5 primary_weapon_to 5 secondary_weapon_to 3
set_gang_weapons 4 primary_weapon_to 5 secondary_weapon_to 5
set_gang_car_model 6 car_to 139
set_gang_weapons 6 primary_weapon_to 3 secondary_weapon_to 2
activate_crusher_crane 1119.75 51.75 1135.75 56.0625 1149.75 46.25 1143.0 59.875 5.0 180.0
gosub_file @IMPORT_3526 @IMPORT_3526
declare_mission_flag $ONMISSION
grab_phone $MA1PHONE = get_phone_at 209.0625 -391.9375
$4422 = 0
$4423 = 0
$4424 = 0
$4425 = 0
$4426 = 0
$4427 = 0
$4428 = 0
$4429 = 0
$4430 = 0
$4431 = 0
$4432 = 0
$4433 = 0
$4434 = 0
$4435 = 0
$4436 = 0
$4437 = 0
$4438 = 0
$4439 = 0
$4440 = 0
$ISAVEINT = 0
$4387 = 0
$4521 = 0
$4522 = 0
$4523 = 0
$4524 = 0
$4525 = 0
$4526 = 0
$4527 = 0
$4528 = 0
$4529 = 0
$4530 = 0
$4531 = 0
$4532 = 0
$4533 = 0
$4534 = 0
$4535 = 0
$4536 = 0
$4537 = 0
$4538 = 0
$4539 = 0
$4540 = 0
$4541 = 0
$CREATECOL = 0
$PRACE1PASS = 0
$PRACE2PASS = 0
$PRACE3PASS = 0
$ONMISSION = 0
$4388 = 0
$HOSPITAL1_OPEN = 0
$HOSPITAL2_OPEN = 0
$HOSPITAL3_OPEN = 0
$FLAG_EIGHTBALL_MISSION_PASSED = 0
$FLAG_EIGHTBALL_MISSION_LAUNCHED = 0
$247 = 0
$FLAG_LUIGI_MISSION1_PASSED = 0
$FLAG_LUIGI_MISSION2_PASSED = 0
$FLAG_LUIGI_MISSION3_PASSED = 0
$FLAG_LUIGI_MISSION4_PASSED = 0
$FLAG_LUIGI_MISSION5_PASSED = 0
$FLAG_ALL_LUIGI_MISSIONS_PASSED = 0
$FLAG_JOEY_MISSION1_PASSED = 0
$FLAG_JOEY_MISSION2_PASSED = 0
$FLAG_JOEY_MISSION3_PASSED = 0
$FLAG_JOEY_MISSION4_PASSED = 0
$FLAG_JOEY_MISSION5_PASSED = 0
$FLAG_JOEY_MISSION6_PASSED = 0
$260 = 0
$FLAG_TONI_MISSION1_PASSED = 0
$FLAG_TONI_MISSION2_PASSED = 0
$FLAG_TONI_MISSION3_PASSED = 0
$PASSED_TRIADS_AND_TRIBULATIONS = 0
$PASSED_BLOW_FISH = 0
$266 = 0
$274 = 0
$FLAG_FRANKIE_MISSION1_PASSED = 0
$FLAG_FRANKIE_MISSION2_PASSED = 0
$FLAG_FRANKIE_MISSION2_1_PASSED = 0
$FLAG_FRANKIE_MISSION3_PASSED = 0
$FLAG_FRANKIE_MISSION4_PASSED = 0
$FLAG_FRANKIE_SWITCHED_OFF = 0
$273 = 0
$FLAG_PLAYER_HAD_CUT1_FM3 = 0
$276 = 0
$277 = 0
$FLAG_DIABLO_MISSION1_PASSED = 0
$FLAG_DIABLO_MISSION2_PASSED = 0
$FLAG_DIABLO_MISSION3_PASSED = 0
$PASSED_BIG_N_VEINY = 0
$282 = 0
$283 = 0
$285 = 0
$286 = 0
$287 = 0
$288 = 0
$FLAG_MEAT_MISSION1_PASSED = 0
$FLAG_MEAT_MISSION2_PASSED = 0
$FLAG_MEAT_MISSION3_PASSED = 0
$FLAG_MEAT_MISSION4_PASSED = 0
$293 = 0
$294 = 0
$295 = 0
$296 = 0
$297 = 0
$FLAG_DIABLO1_PASSED_BEFORE = 0
$299 = 0
grab_phone $PHONE_DIABLOS = get_phone_at 937.875 -230.0625
grab_phone $PHONE_MARTY = get_phone_at 1224.438 -839.75
$303 = 0
grab_phone $PHONE_YARDIES = get_phone_at 120.0 -272.0
grab_phone $PHONE_RAY1 = get_phone_at 229.0625 -1537.563
grab_phone $PHONE_RAY2 = get_phone_at -53.5 -699.0
grab_phone $PHONE_RAY3 = get_phone_at 204.6875 -135.0625
grab_phone $PHONE_RAY4 = get_phone_at 60.1875 -964.75
$310 = 0
$311 = 0
$312 = 0
$313 = 0
$314 = 0
$315 = 0
grab_phone $PHONE_HOODS = get_phone_at -443.5 -6.5625
$FLAG_ASUKA_MISSION1_PASSED = 0
$FLAG_ASUKA_MISSION2_PASSED = 0
$FLAG_ASUKA_MISSION3_PASSED = 0
$FLAG_ASUKA_MISSION4_PASSED = 0
$FLAG_ASUKA_MISSION5_PASSED = 0
$321 = 0
$FLAG_RAY_MISSION1_PASSED = 0
$FLAG_RAY_MISSION2_PASSED = 0
$FLAG_RAY_MISSION3_PASSED = 0
$FLAG_RAY_MISSION4_PASSED = 0
$FLAG_RAY_MISSION5_PASSED = 0
$FLAG_RAY_MISSION6_PASSED = 0
$328 = 0
$FLAG_KENJI_MISSION1_PASSED = 0
$FLAG_KENJI_MISSION2_PASSED = 0
$FLAG_KENJI_MISSION3_PASSED = 0
$FLAG_KENJI_MISSION4_PASSED = 0
$FLAG_KENJI_MISSION5_PASSED = 0
$334 = 0
$338 = 0
$FLAG_LOVE_MISSION1_PASSED = 0
$FLAG_LOVE_MISSION2_PASSED = 0
$FLAG_LOVE_MISSION3_PASSED = 0
$FLAG_YARDIE_MISSION1_PASSED = 0
$FLAG_YARDIE_MISSION2_PASSED = 0
$FLAG_YARDIE_MISSION3_PASSED = 0
$PASSED_KINGDOM_COME = 0
$343 = 0
$344 = 0
$345 = 0
$346 = 0
$347 = 0
$348 = 0
$FLAG_LOVE_MISSION4_PASSED = 0
$FLAG_LOVE_MISSION5_PASSED = 0
$FLAG_LOVE_MISSION6_PASSED = 0
$FLAG_LOVE_MISSION7_PASSED = 0
$353 = 0
$FLAG_ASUKA_SUBURBAN_MISSION1_PASSED = 0
$FLAG_ASUKA_SUBURBAN_MISSION2_PASSED = 0
$FLAG_ASUKA_SUBURBAN_MISSION3_PASSED = 0
$357 = 0
$358 = 0
$FLAG_DONE_DRIVE_BY_HELP = 0
$FLAG_HOOD_MISSION1_PASSED = 0
$FLAG_HOOD_MISSION2_PASSED = 0
$FLAG_HOOD_MISSION3_PASSED = 0
$FLAG_HOOD_MISSION4_PASSED = 0
$FLAG_HOOD_MISSION5_PASSED = 0
$364 = 0
$365 = 0
$FLAG_PLAYER_ON_CAT_MISSION = 0
$FLAG_CAT_MISSION1_PASSED = 0
$369 = 0
$DISPLAYED_AMBULANCE_HELP = 0
$376 = 0
$FLAG_INTRO1_BEFORE = 0
$FLAG_INTRO2_BEFORE = 0
$FLAG_INTRO3_BEFORE = 0
$FLAG_INTRO_MAYHEM_BEFORE = 0
$FLAG_4X4_MISSION1_PASSED = 0
$FLAG_4X4_MISSION2_PASSED = 0
$FLAG_4X4_MISSION3_PASSED = 0
$FLAG_MAYHEM_MISSION1_PASSED = 0
$FLAG_4X4ONE_TRIGGER = 0
$FLAG_4X4TWO_TRIGGER = 0
$FLAG_4X4THREE_TRIGGER = 0
$FLAG_MAYHEM_TRIGGER = 0
$FLAG_TAXI1_MISSION_LAUNCHED = 0
$TAXI_HELP_DISPLAYED = 0
$CURRENT_TAXI_MISSION = 0
$TAXIMISSIONS_COMPLETED = 0
$DISPLAYED_TAXI_HELP_MESSAGE = 0
$100TAXIMISSIONS_COMPLETED = 0
$FLAG_JUST_DONE_RC_MISSION = 0
$RC1_RECORD = 0
$RC2_RECORD = 0
$RC3_RECORD = 0
$RC4_RECORD = 0
$406 = 0
$407 = 0
$FLAG_RC1_PASSED = 0
$FLAG_RC2_PASSED = 0
$FLAG_RC3_PASSED = 0
$FLAG_RC4_PASSED = 0
$AMMU2_BLIP_ADDED = 0
$FLAG_BRIDGE_CREATED_8BALL = 0
$FLAG_DONE_RADIO_8BALL = 0
$TIMER_HELP_MESSAGE_DISPLAYED = 0
$FLAG_JOEY_MISSION5_TERMINATED = 0
$FLAG_JOEY_MISSION6_TERMINATED = 0
$FLAG_LUIGI_MISSION4_TERMINATED = 0
$FLAG_LUIGI_MISSION5_TERMINATED = 0
$419 = 0
$413 = 0
$414 = 0
$NICKED_HALF_A_MIL_BEFORE = 0
$423 = 0
$BREAKOUT_TIMER = 0
$BREAKOUT_TIMER_START = 0
$BREAKOUT_DIFF = 0
$MARIA_EXISTS = 0
$DOOR_CRASH_FLAG = 0
$DOOR_POSITION_A1 = 0.0
$BARRIERS_BEEN_ADDED = 0
$MHRACE_CAR_PASS1 = 0
$MHRACE_CAR_PASS2 = 0
$MHRACE_CAR_PASS3 = 0
$MHRACE_CAR_PASS4 = 0
$MSRACE_CAR_PASS1 = 0
$MSRACE_CAR_PASS2 = 0
$MSRACE_CAR_PASS3 = 0
$MSRACE_CAR_PASS4 = 0
$MPRACE_CAR_PASS1 = 0
$MPRACE_CAR_PASS2 = 0
$MPRACE_CAR_PASS3 = 0
$MPRACE_CAR_PASS4 = 0
$MPRACE_PASS = 0
$MSRACE_PASS = 0
$MHRACE_PASS = 0
$BALL_PASS = 0
$BORGNINE_HAD = 0
$MLRACE_PASS = 0
$MLCRACE_PASS = 0
$INMLRACE_12_PASS = 0
$INMLRACE_21_PASS = 0
$INMLRACE_23_PASS = 0
$INMLRACE_32_PASS = 0
$INMLCRACE_123_PASS = 0
$INMLCRACE_321_PASS = 0
$MA8_PASS = 0
$PROGRESS_100 = 0
start_new_script @ONE 
start_new_script @GATES 
start_new_script @I_RSTRT 
start_new_script @C_RSTRT 
start_new_script @S_RSTRT 
start_new_script @AMMUDO 
start_new_script @NONAME_1 
start_new_script @NONAME_2 
start_new_script @NONAME_3 
start_new_script @NONAME_4 
start_new_script @NONAME_5 
start_new_script @LRACE 
start_new_script @LCRACE 
start_new_script @GYMGAME 
start_new_script @COM_100 
launch_mission @RAMPAGE
launch_mission @IMPORT

:GATES
$GATE_SFX1 = 0
$GATE_SFX2 = 0
$GATE2_SFX1 = 0
$GATE2_SFX2 = 0
$GATE_SFX1_FISH = 0
$GATE_SFX2_FISH = 0
$GATE_SFX1_MEAT = 0
$GATE_SFX2_MEAT = 0
$NOT_CLUNKED_YET = 0
script_name 'GATES'
set_deatharrest_state 0
start_new_script @FSH_GTE 
start_new_script @DOG_GTE 
start_new_script @POL_GT1 
start_new_script @POL_GT2 
start_new_script @COL_GTE 
start_new_script @PHL_GTE 
start_new_script @COL2GTE 
start_new_script @FORELLI 
start_new_script @BASE 
start_new_script @SAM 
terminate_this_script 

:COM_100
script_name 'COM_100'

:COM_100_10
wait 0
if 
  $PROGRESS_100 == 67
goto_if_false @COM_100_10
set_visibility_of_closest_object_of_type 27.9375 -1020.438 64.5 radius 10.0 object #B1 1
set_visibility_of_closest_object_of_type 27.9375 -1024.688 64.5 radius 10.0 object #B1 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
print_big 'GAME_1' 4000 ms 1
wait 4000
set_fixed_camera_position 44.4375 -1005.5 74.9375 rotation 0.0 0.0 0.0
point_camera_at_point 27.9375 -1024.688 64.5 switchstyle 2
print_now 'GAME_2' time 6000 1
play_mission_passed_tune 1
wait 6000
print_now 'LC00' time 6000 1
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
restore_camera_jumpcut 
terminate_this_script 

:SAM
script_name 'SAM'

:SAM_10
delete_char $SAM_CHAR
unload_special_character 4
$IN_SAM = 0

:SAM_26
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1070.813 -397.3125 14.1875 radius 80.0 80.0 80.0
goto_if_false @SAM_292
if 
  $IN_SAM == 1
goto_if_false @SAM_130
get_char_health $SAM_HEALTH = actor $SAM_CHAR
if and
  not is_char_dead $SAM_CHAR
  not $SAM_HEALTH >= 100
goto_if_false @SAM_130
set_char_obj_kill_player_on_foot $SAM_CHAR kill_player $PLAYER_CHAR
$SAMKILL = 1

:SAM_130
if 
  not has_special_character_loaded 4
goto_if_false @SAM_172
load_special_character 4 'SAM'
if 
  has_special_character_loaded 4
goto_if_false @SAM_26

:SAM_172
if and
  $IN_SAM == 0
  locate_player_any_means_3d $PLAYER_CHAR 0 1070.813 -397.3125 14.1875 radius 50.0 50.0 50.0
goto_if_false @SAM_26
delete_char $SAM_CHAR
create_char $SAM_CHAR = create_actor 21 29 at 1070.813 -397.3125 14.1875
set_char_heading $SAM_CHAR z_angle_to 129.0
give_weapon_to_char $SAM_CHAR weapon 4 ammo 999
set_char_heed_threats $SAM_CHAR heed_threats 1
set_char_stay_in_same_place $SAM_CHAR maintain_position_when_attacked 1
char_look_at_player_always $SAM_CHAR to_look_at_player $PLAYER_CHAR
$IN_SAM = 1
goto @SAM_26

:SAM_292
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 349.5625 -719.6875 26.375 radius 80.0 80.0 80.0
goto_if_false @SAM_558
if 
  $IN_SAM == 1
goto_if_false @SAM_396
get_char_health $SAM_HEALTH = actor $SAM_CHAR
if and
  not is_char_dead $SAM_CHAR
  not $SAM_HEALTH >= 100
goto_if_false @SAM_396
set_char_obj_kill_player_on_foot $SAM_CHAR kill_player $PLAYER_CHAR
$SAMKILL = 1

:SAM_396
if 
  not has_special_character_loaded 4
goto_if_false @SAM_438
load_special_character 4 'SAM'
if 
  has_special_character_loaded 4
goto_if_false @SAM_292

:SAM_438
if and
  $IN_SAM == 0
  locate_player_any_means_3d $PLAYER_CHAR 0 349.5625 -719.6875 26.375 radius 50.0 50.0 50.0
goto_if_false @SAM_292
delete_char $SAM_CHAR
create_char $SAM_CHAR = create_actor 21 29 at 349.5625 -719.6875 26.375
set_char_heading $SAM_CHAR z_angle_to 37.5
give_weapon_to_char $SAM_CHAR weapon 4 ammo 999
set_char_heed_threats $SAM_CHAR heed_threats 1
set_char_stay_in_same_place $SAM_CHAR maintain_position_when_attacked 1
char_look_at_player_always $SAM_CHAR to_look_at_player $PLAYER_CHAR
$IN_SAM = 1
goto @SAM_292

:SAM_558
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 -1178.0 128.9375 67.6875 radius 80.0 80.0 80.0
goto_if_false @SAM_10
if 
  $IN_SAM == 1
goto_if_false @SAM_662
get_char_health $SAM_HEALTH = actor $SAM_CHAR
if and
  not is_char_dead $SAM_CHAR
  not $SAM_HEALTH >= 100
goto_if_false @SAM_662
set_char_obj_kill_player_on_foot $SAM_CHAR kill_player $PLAYER_CHAR
$SAMKILL = 1

:SAM_662
if 
  not has_special_character_loaded 4
goto_if_false @SAM_704
load_special_character 4 'SAM'
if 
  has_special_character_loaded 4
goto_if_false @SAM_558

:SAM_704
if and
  $IN_SAM == 0
  locate_player_any_means_3d $PLAYER_CHAR 0 -1178.0 128.9375 67.6875 radius 50.0 50.0 50.0
goto_if_false @SAM_558
delete_char $SAM_CHAR
create_char $SAM_CHAR = create_actor 21 29 at -1178.0 128.9375 67.6875
set_char_heading $SAM_CHAR z_angle_to 222.0
give_weapon_to_char $SAM_CHAR weapon 4 ammo 999
set_char_heed_threats $SAM_CHAR heed_threats 1
set_char_stay_in_same_place $SAM_CHAR maintain_position_when_attacked 1
char_look_at_player_always $SAM_CHAR to_look_at_player $PLAYER_CHAR
$IN_SAM = 1
goto @SAM_558

:BASE
script_name 'BASE'
$IN_BASE = 0

:BASE_17
wait 0
if 
  $IN_BASE == 0
goto_if_false @BASE_153
if 
  is_player_in_area_3d $PLAYER_CHAR 0 267.625 -390.6875 20.625 441.0625 -342.3125 46.6875
goto_if_false @BASE_17
$IN_BASE = 1
if and
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 107
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 117
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 122
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 123
goto_if_false @BASE_153
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 3
goto_if_false @BASE_153
alter_wanted_level $PLAYER_CHAR wanted_level_to 3

:BASE_153
if 
  not is_player_in_area_3d $PLAYER_CHAR 0 267.625 -390.6875 20.625 441.0625 -342.3125 46.6875
goto_if_false @BASE_17
$IN_BASE = 0
goto @BASE_17

:FORELLI
script_name 'FORELLI'
$INONE = 0
$INTWO = 0
$INTHREE = 0

:FORELLI_31
wait 500
if 
  $INONE == 0
goto_if_false @FORELLI_117
if 
  is_collision_in_memory 1
goto_if_false @FORELLI_117
set_gang_ped_model_preference 0 0
set_gang_weapons 0 primary_weapon_to 2 secondary_weapon_to 4
set_gang_car_model 0 car_to 134
clear_threat_for_ped_type 7 remove_threat 1
$INONE = 1
$INTWO = 0
$INTHREE = 0

:FORELLI_117
if 
  $INTWO == 0
goto_if_false @FORELLI_216
if 
  is_collision_in_memory 2
goto_if_false @FORELLI_216
set_gang_ped_model_preference 0 1
set_gang_weapons 0 primary_weapon_to 2 secondary_weapon_to 2
set_gang_car_model 0 car_to 156
$INONE = 0
$INTWO = 1
$INTHREE = 0
if 
  $4532 == 1
goto_if_false @FORELLI_216
set_threat_for_ped_type 7 add_threat 1

:FORELLI_216
if 
  $INTHREE == 0
goto_if_false @FORELLI_31
if 
  is_collision_in_memory 3
goto_if_false @FORELLI_31
set_gang_ped_model_preference 0 1
set_gang_weapons 0 primary_weapon_to 2 secondary_weapon_to 2
set_gang_car_model 0 car_to 156
$INONE = 0
$INTWO = 0
$INTHREE = 1
goto @FORELLI_31

:FSH_GTE
script_name 'FSH_GTE'

:FSH_GTE_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FSH_GTE_490
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PORT_W'
goto_if_false @FSH_GTE_490
if 
  is_player_in_area_3d $PLAYER_CHAR 0 1025.188 -1108.375 12.0 1008.188 -1098.375 16.0
goto_if_false @FSH_GTE_304
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 132
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 98
  is_player_in_area_3d $PLAYER_CHAR 0 1015.563 -1100.5 12.0 1009.188 -1108.063 16.0
goto_if_false @FSH_GTE_297
if 
  $GATE_SFX1_FISH == 0
goto_if_false @FSH_GTE_180
add_one_off_sound 92 at 1016.0 -1107.938 12.25
$GATE_SFX1_FISH = 1

:FSH_GTE_180
if 
  not slide_object $TRIAD_FISH_FACTORY_GATE to 1016.0 -1099.438 12.25 speed 0.0 0.0625 0.0 collision_check 0
goto_if_false @FSH_GTE_227
wait 0
goto @FSH_GTE_180

:FSH_GTE_227
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @FSH_GTE_259
$GATE_SFX2_FISH = 0
$NOT_CLUNKED_YET = 0

:FSH_GTE_259
if 
  $GATE_SFX2_FISH == 0
goto_if_false @FSH_GTE_297
add_one_off_sound 93 at 1016.0 -1099.438 12.25
$GATE_SFX2_FISH = 1

:FSH_GTE_297
goto @FSH_GTE_490

:FSH_GTE_304
if 
  $GATE_SFX1_FISH == 1
goto_if_false @FSH_GTE_335
add_one_off_sound 92 at 1016.0 -1099.438 12.25

:FSH_GTE_335
if 
  not slide_object $TRIAD_FISH_FACTORY_GATE to 1016.0 -1107.938 12.25 speed 0.0 0.0625 0.0 collision_check 1
goto_if_false @FSH_GTE_382
wait 0
goto @FSH_GTE_335

:FSH_GTE_382
get_object_coordinates $TRIAD_FISH_FACTORY_GATE position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE_SFX2_FISH == 1
goto_if_false @FSH_GTE_483
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == 1016.0
  $OBJECTY == -1107.938
  $OBJECTZ == 12.25
goto_if_false @FSH_GTE_483
add_one_off_sound 93 at 1016.0 -1107.938 12.25
$GATE_SFX2_FISH = 0
$NOT_CLUNKED_YET = 0

:FSH_GTE_483
$GATE_SFX1_FISH = 0

:FSH_GTE_490
goto @FSH_GTE_10

:DOG_GTE
script_name 'DOG_GTE'

:DOG_GTE_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @DOG_GTE_442
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PORT_I'
goto_if_false @DOG_GTE_442
if 
  is_player_in_angled_area_3d $PLAYER_CHAR in_cube 1247.563 -822.0 12.0 1253.938 -815.0 18.0 radius 14.0 sphere 0
goto_if_false @DOG_GTE_256
if 
  $GATE_SFX1_MEAT == 0
goto_if_false @DOG_GTE_132
add_one_off_sound 92 at 1250.375 -812.0 13.9375
$GATE_SFX1_MEAT = 1

:DOG_GTE_132
if 
  not slide_object $DOGFOOD_FACTORY_GATE to 1244.375 -818.0 13.9375 speed 0.0625 0.0625 0.0 collision_check 0
goto_if_false @DOG_GTE_179
wait 0
goto @DOG_GTE_132

:DOG_GTE_179
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @DOG_GTE_211
$GATE_SFX2_MEAT = 0
$NOT_CLUNKED_YET = 0

:DOG_GTE_211
if 
  $GATE_SFX2_MEAT == 0
goto_if_false @DOG_GTE_249
add_one_off_sound 93 at 1244.375 -818.0 13.9375
$GATE_SFX2_MEAT = 1

:DOG_GTE_249
goto @DOG_GTE_442

:DOG_GTE_256
if 
  $GATE_SFX1_MEAT == 1
goto_if_false @DOG_GTE_287
add_one_off_sound 92 at 1244.375 -818.0 13.9375

:DOG_GTE_287
if 
  not slide_object $DOGFOOD_FACTORY_GATE to 1250.375 -812.0 13.9375 speed 0.0625 0.0625 0.0 collision_check 1
goto_if_false @DOG_GTE_334
wait 0
goto @DOG_GTE_287

:DOG_GTE_334
get_object_coordinates $DOGFOOD_FACTORY_GATE position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE_SFX2_MEAT == 1
goto_if_false @DOG_GTE_435
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == 1250.375
  $OBJECTY == -812.0
  $OBJECTZ == 13.9375
goto_if_false @DOG_GTE_435
add_one_off_sound 93 at 1250.375 -812.0 13.9375
$GATE_SFX2_MEAT = 0
$NOT_CLUNKED_YET = 0

:DOG_GTE_435
$GATE_SFX1_MEAT = 0

:DOG_GTE_442
goto @DOG_GTE_10

:POL_GT1
script_name 'POL_GT1'

:POL_GT1_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @POL_GT1_482
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'YAKUSA'
goto_if_false @POL_GT1_482
if 
  is_player_in_area_3d $PLAYER_CHAR 0 358.0 -1138.0 18.0 366.0 -1121.0 30.0
goto_if_false @POL_GT1_296
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  is_player_in_area_3d $PLAYER_CHAR 0 365.875 -1128.188 21.875 358.5 -1119.5 26.0
goto_if_false @POL_GT1_289
if 
  $GATE_SFX1 == 0
goto_if_false @POL_GT1_172
add_one_off_sound 92 at 366.125 -1128.5 21.9375
$GATE_SFX1 = 1

:POL_GT1_172
if 
  not slide_object $STAUNTON_POLICE_GATE_1 to 358.125 -1128.5 21.9375 speed 0.0625 0.0 0.0 collision_check 0
goto_if_false @POL_GT1_219
wait 0
goto @POL_GT1_172

:POL_GT1_219
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @POL_GT1_251
$GATE_SFX2 = 0
$NOT_CLUNKED_YET = 0

:POL_GT1_251
if 
  $GATE_SFX2 == 0
goto_if_false @POL_GT1_289
add_one_off_sound 93 at 358.125 -1128.5 21.9375
$GATE_SFX2 = 1

:POL_GT1_289
goto @POL_GT1_482

:POL_GT1_296
if 
  $GATE_SFX1 == 1
goto_if_false @POL_GT1_327
add_one_off_sound 92 at 358.125 -1128.5 21.9375

:POL_GT1_327
if 
  not slide_object $STAUNTON_POLICE_GATE_1 to 366.125 -1128.5 21.9375 speed 0.0625 0.0 0.0 collision_check 1
goto_if_false @POL_GT1_374
wait 0
goto @POL_GT1_327

:POL_GT1_374
get_object_coordinates $STAUNTON_POLICE_GATE_1 position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE_SFX2 == 1
goto_if_false @POL_GT1_475
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == 366.125
  $OBJECTY == -1128.5
  $OBJECTZ == 21.9375
goto_if_false @POL_GT1_475
add_one_off_sound 93 at 366.125 -1128.5 21.9375
$GATE_SFX2 = 0
$NOT_CLUNKED_YET = 0

:POL_GT1_475
$GATE_SFX1 = 0

:POL_GT1_482
goto @POL_GT1_10

:POL_GT2
script_name 'POL_GT2'

:POL_GT2_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @POL_GT2_482
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'YAKUSA'
goto_if_false @POL_GT2_482
if 
  is_player_in_area_3d $PLAYER_CHAR 0 317.8125 -1136.0 18.0 322.8125 -1119.813 30.0
goto_if_false @POL_GT2_296
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  is_player_in_area_3d $PLAYER_CHAR 0 322.6875 -1128.063 21.875 318.0 -1119.25 26.0
goto_if_false @POL_GT2_289
if 
  $GATE2_SFX1 == 0
goto_if_false @POL_GT2_172
add_one_off_sound 92 at 326.25 -1128.5 21.9375
$GATE2_SFX1 = 1

:POL_GT2_172
if 
  not slide_object $STAUNTON_POLICE_GATE_2 to 332.0 -1128.5 21.9375 speed 0.0625 0.0 0.0 collision_check 0
goto_if_false @POL_GT2_219
wait 0
goto @POL_GT2_172

:POL_GT2_219
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @POL_GT2_251
$GATE2_SFX2 = 0
$NOT_CLUNKED_YET = 0

:POL_GT2_251
if 
  $GATE2_SFX2 == 0
goto_if_false @POL_GT2_289
add_one_off_sound 93 at 332.0 -1128.5 21.9375
$GATE2_SFX2 = 1

:POL_GT2_289
goto @POL_GT2_482

:POL_GT2_296
if 
  $GATE2_SFX1 == 1
goto_if_false @POL_GT2_327
add_one_off_sound 92 at 332.0 -1128.5 21.9375

:POL_GT2_327
if 
  not slide_object $STAUNTON_POLICE_GATE_2 to 326.25 -1128.5 21.9375 speed 0.0625 0.0 0.0 collision_check 1
goto_if_false @POL_GT2_374
wait 0
goto @POL_GT2_327

:POL_GT2_374
get_object_coordinates $STAUNTON_POLICE_GATE_2 position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE2_SFX2 == 1
goto_if_false @POL_GT2_475
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == 326.25
  $OBJECTY == -1128.5
  $OBJECTZ == 21.9375
goto_if_false @POL_GT2_475
add_one_off_sound 93 at 326.25 -1128.5 21.9375
$GATE2_SFX2 = 0
$NOT_CLUNKED_YET = 0

:POL_GT2_475
$GATE2_SFX1 = 0

:POL_GT2_482
goto @POL_GT2_10

:COL_GTE
script_name 'COL_GTE'

:COL_GTE_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @COL_GTE_483
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'STADIUM'
goto_if_false @COL_GTE_483
if 
  is_player_in_area_3d $PLAYER_CHAR 0 98.5625 -337.5 14.0 81.875 -317.5 20.0
goto_if_false @COL_GTE_297
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 138
  is_player_in_area_3d $PLAYER_CHAR 0 31.0 -317.0 14.0 91.0 -394.0 25.0
goto_if_false @COL_GTE_290
if 
  $GATE2_SFX1 == 0
goto_if_false @COL_GTE_173
add_one_off_sound 92 at 91.5625 -318.5625 15.25
$GATE2_SFX1 = 1

:COL_GTE_173
if 
  not slide_object $STAUNTON_CARTEL_GATE to 91.5625 -327.3125 15.25 speed 0.0 0.0625 0.0 collision_check 0
goto_if_false @COL_GTE_220
wait 0
goto @COL_GTE_173

:COL_GTE_220
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @COL_GTE_252
$GATE_SFX2 = 0
$NOT_CLUNKED_YET = 0

:COL_GTE_252
if 
  $GATE2_SFX2 == 0
goto_if_false @COL_GTE_290
add_one_off_sound 93 at 91.5625 -327.3125 15.25
$GATE2_SFX2 = 1

:COL_GTE_290
goto @COL_GTE_483

:COL_GTE_297
if 
  $GATE2_SFX1 == 1
goto_if_false @COL_GTE_328
add_one_off_sound 92 at 91.5625 -327.3125 15.25

:COL_GTE_328
if 
  not slide_object $STAUNTON_CARTEL_GATE to 91.5625 -318.5625 15.25 speed 0.0 0.0625 0.0 collision_check 1
goto_if_false @COL_GTE_375
wait 0
goto @COL_GTE_328

:COL_GTE_375
get_object_coordinates $STAUNTON_CARTEL_GATE position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE2_SFX2 == 1
goto_if_false @COL_GTE_476
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == 91.5625
  $OBJECTY == -318.5625
  $OBJECTZ == 15.25
goto_if_false @COL_GTE_476
add_one_off_sound 93 at 91.5625 -318.5625 15.25
$GATE2_SFX2 = 0
$NOT_CLUNKED_YET = 0

:COL_GTE_476
$GATE2_SFX1 = 0

:COL_GTE_483
goto @COL_GTE_10

:PHL_GTE
script_name 'PHL_GTE'

:PHL_GTE_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @PHL_GTE_552
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'HOSPI_2'
goto_if_false @PHL_GTE_552
$OPEN_PHILS_GATE = 0
if 
  $FLAG_RAY_MISSION2_PASSED == 1
goto_if_false @PHL_GTE_124
if 
  is_player_in_area_2d $PLAYER_CHAR 0 134.0 198.0 156.0 207.0
goto_if_false @PHL_GTE_117
$OPEN_PHILS_GATE = 1

:PHL_GTE_117
goto @PHL_GTE_186

:PHL_GTE_124
if 
  $FLAG_PLAYER_ON_PHIL_MISSION == 1
goto_if_false @PHL_GTE_149
goto @PHL_GTE_10

:PHL_GTE_149
if 
  is_player_in_area_2d $PLAYER_CHAR 0 138.0 198.0 146.0 207.0
goto_if_false @PHL_GTE_186
$OPEN_PHILS_GATE = 1

:PHL_GTE_186
if 
  $OPEN_PHILS_GATE == 1
goto_if_false @PHL_GTE_366
if 
  $GATE2_SFX1 == 0
goto_if_false @PHL_GTE_242
add_one_off_sound 92 at 147.1875 207.3125 10.5625
$GATE2_SFX1 = 1

:PHL_GTE_242
if 
  not slide_object $ARMY_BASE_GATE to 147.1875 214.5 10.5625 speed 0.0 0.0625 0.0 collision_check 0
goto_if_false @PHL_GTE_289
wait 0
goto @PHL_GTE_242

:PHL_GTE_289
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @PHL_GTE_321
$GATE_SFX2 = 0
$NOT_CLUNKED_YET = 0

:PHL_GTE_321
if 
  $GATE2_SFX2 == 0
goto_if_false @PHL_GTE_359
add_one_off_sound 93 at 147.1875 214.5 10.5625
$GATE2_SFX2 = 1

:PHL_GTE_359
goto @PHL_GTE_552

:PHL_GTE_366
if 
  $GATE2_SFX1 == 1
goto_if_false @PHL_GTE_397
add_one_off_sound 92 at 147.1875 214.5 10.5625

:PHL_GTE_397
if 
  not slide_object $ARMY_BASE_GATE to 147.1875 207.3125 10.5625 speed 0.0 0.0625 0.0 collision_check 1
goto_if_false @PHL_GTE_444
wait 0
goto @PHL_GTE_397

:PHL_GTE_444
get_object_coordinates $ARMY_BASE_GATE position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE2_SFX2 == 1
goto_if_false @PHL_GTE_545
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == 147.1875
  $OBJECTY == 207.3125
  $OBJECTZ == 10.5625
goto_if_false @PHL_GTE_545
add_one_off_sound 93 at 147.1875 207.3125 10.5625
$GATE2_SFX2 = 0
$NOT_CLUNKED_YET = 0

:PHL_GTE_545
$GATE2_SFX1 = 0

:PHL_GTE_552
goto @PHL_GTE_10

:COL2GTE
script_name 'COL2GTE'

:COL2GTE_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @COL2GTE_483
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SWANKS'
goto_if_false @COL2GTE_483
if 
  is_player_in_area_3d $PLAYER_CHAR 0 -367.25 241.0 59.0 -358.75 259.5625 65.0
goto_if_false @COL2GTE_297
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 138
  is_player_in_area_3d $PLAYER_CHAR 0 -367.25 251.0 59.0 -358.75 259.5625 65.0
goto_if_false @COL2GTE_290
if 
  $GATE_SFX1 == 0
goto_if_false @COL2GTE_173
add_one_off_sound 92 at -363.0 250.4375 61.3125
$GATE_SFX1 = 1

:COL2GTE_173
if 
  not slide_object $CARTEL_MANSION_GATE to -370.0 250.4375 61.3125 speed 0.0625 0.0 0.0 collision_check 0
goto_if_false @COL2GTE_220
wait 0
goto @COL2GTE_173

:COL2GTE_220
if 
  $NOT_CLUNKED_YET == 1
goto_if_false @COL2GTE_252
$GATE_SFX2 = 0
$NOT_CLUNKED_YET = 0

:COL2GTE_252
if 
  $GATE_SFX2 == 0
goto_if_false @COL2GTE_290
add_one_off_sound 93 at -370.0 250.4375 61.3125
$GATE_SFX2 = 1

:COL2GTE_290
goto @COL2GTE_483

:COL2GTE_297
if 
  $GATE_SFX1 == 1
goto_if_false @COL2GTE_328
add_one_off_sound 92 at -370.0 250.4375 61.3125

:COL2GTE_328
if 
  not slide_object $CARTEL_MANSION_GATE to -363.0 250.4375 61.3125 speed 0.0625 0.0 0.0 collision_check 1
goto_if_false @COL2GTE_375
wait 0
goto @COL2GTE_328

:COL2GTE_375
get_object_coordinates $CARTEL_MANSION_GATE position_to $OBJECTX $OBJECTY $OBJECTZ
if 
  $GATE_SFX2 == 1
goto_if_false @COL2GTE_476
$NOT_CLUNKED_YET = 1
if and
  $OBJECTX == -363.0
  $OBJECTY == 250.4375
  $OBJECTZ == 61.3125
goto_if_false @COL2GTE_476
add_one_off_sound 93 at -363.0 250.4375 61.3125
$GATE_SFX2 = 0
$NOT_CLUNKED_YET = 0

:COL2GTE_476
$GATE_SFX1 = 0

:COL2GTE_483
goto @COL2GTE_10

:ONE
wait 0
script_name 'ONE'
if 
  $4422 == 0
goto_if_false @ONE_121
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @ONE
if 
  not is_player_dead $PLAYER_CHAR
goto_if_false @ONE
load_splash_screen '1ROAD'
do_fade 0 0
wait 1000
if 
  $ONMISSION == 0
goto_if_false @ONE
set_player_control $PLAYER_CHAR can_move 0
load_and_launch_mission_internal 0 // Intro Movie
  $ONMISSION == 1

:ONE_121
terminate_this_script 

:M7COP
script_name 'M7COP'

:M7COP_10
if 
  $ONMISSION == 1
goto_if_false @M7COP_90
wait 100
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 949.0625 -422.5625 15.125 radius 25.0 25.0 25.0
goto_if_false @M7COP_10
alter_wanted_level $PLAYER_CHAR wanted_level_to 4
print_now 'MV6_11' time 1000 1

:M7COP_90
terminate_this_script 

:JIDOOR
script_name 'JIDOOR'
add_sphere $JIDOOR_SPHERE1 = create_sphere 462.125 -1413.688 26.125 1.5
add_sphere $JIDOOR_SPHERE2 = create_sphere 475.6875 -1383.125 68.375 1.5

:JIDOOR_44
wait 0
if 
  $ONMISSION == 1
goto_if_false @JIDOOR_249
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 462.125 -1413.688 26.125 radius 1.0 1.0 1.0
goto_if_false @JIDOOR_154
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 473.25 -1383.125 68.375
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1

:JIDOOR_154
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 475.6875 -1383.125 68.375 radius 1.0 1.0 1.0
goto_if_false @JIDOOR_44
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 462.125 -1416.625 26.125
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
goto @JIDOOR_44

:JIDOOR_249
remove_sphere $JIDOOR_SPHERE1
remove_sphere $JIDOOR_SPHERE2
terminate_this_script 

:COPDOOR
script_name 'COPDOOR'
add_sphere $COPDOOR_SPHERE1 = create_sphere 340.4375 -1119.438 25.9375 1.5
add_sphere $COPDOOR_SPHERE2 = create_sphere 332.75 -1115.5 1.5 1.5

:COPDOOR_44
wait 0
if 
  $ONMISSION == 1
goto_if_false @COPDOOR_249
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 340.4375 -1119.438 25.9375 radius 1.0 1.0 1.0
goto_if_false @COPDOOR_154
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 335.0625 -1115.5 1.5
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1

:COPDOOR_154
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 332.75 -1115.5 1.5 radius 1.0 1.0 1.0
goto_if_false @COPDOOR_44
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 340.4375 -1122.75 25.9375
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
goto @COPDOOR_44

:COPDOOR_249
remove_sphere $COPDOOR_SPHERE1
remove_sphere $COPDOOR_SPHERE2
terminate_this_script 

:I_SAVE
script_name 'I_SAVE'
$PORTLAND_SAVE1 = 1

:I_SAVE_17
wait 10
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE_520
if 
  is_collision_in_memory 1
goto_if_false @I_SAVE_490
if 
  $ISAVEINT == 0
goto_if_false @I_SAVE_105
remove_blip $ISAVEHOME
add_sprite_blip_for_contact_point $ISAVEHOME = create_icon_marker_and_sphere 17 at 946.125 -422.625 14.375
change_blip_display $ISAVEHOME display 3
$ISAVEINT = 1

:I_SAVE_105
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'REDLIGH'
goto_if_false @I_SAVE_483
if 
  $ONMISSION == 0
goto_if_false @I_SAVE_147

:I_SAVE_147
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE_483
if 
  can_player_start_mission $PLAYER_CHAR
goto_if_false @I_SAVE_483
goto @I_SAVE_193

:I_SAVE_186
change_blip_display $ISAVEHOME display 0

:I_SAVE_193
wait 0
if and
  $ONMISSION == 0
  is_collision_in_memory 1
goto_if_false @I_SAVE_186
change_blip_display $ISAVEHOME display 3
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 946.125 -422.625 14.375 radius 1.0 1.0 1.0
goto_if_false @I_SAVE_483
set_player_control $PLAYER_CHAR can_move 0
wait 400
set_fixed_camera_position 957.5625 -432.0 19.9375 rotation 0.0 0.0 0.0
point_camera_at_point 951.5 -425.4375 16.0 switchstyle 1
wait 900
activate_save_menu 
wait 0

:I_SAVE_318
if 
  not has_save_game_finished 
goto_if_false @I_SAVE_342
wait 0
goto @I_SAVE_318

:I_SAVE_342
load_splash_screen 'MAINSC1'
set_fading_colour 0 0 0
do_fade 0 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE_390
set_player_control $PLAYER_CHAR can_move 0

:I_SAVE_390
clear_area 1 at 951.5 -425.4375 15.0 range 1.0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE_455
set_player_coordinates $PLAYER_CHAR at 951.5 -425.4375 14.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
do_fade 1 1000
restore_camera_jumpcut 
set_camera_in_front_of_player 

:I_SAVE_455
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE_483
set_player_control $PLAYER_CHAR can_move 1

:I_SAVE_483
goto @I_SAVE_520

:I_SAVE_490
if 
  $ISAVEINT == 1
goto_if_false @I_SAVE_520
remove_blip $ISAVEHOME
$ISAVEINT = 0

:I_SAVE_520
if 
  $4428 == 0
goto_if_false @I_SAVE_545
goto @I_SAVE_17

:I_SAVE_545
remove_blip $ISAVEHOME
start_new_script @I_SAVE1 
terminate_this_script 

:I_SAVE1
script_name 'I_SAVE1'
set_garage $CLAUDE_FIRST_GARAGE = create_garage 17 from 891.25 -311.0625 7.6875 898.375 -315.5 12.6875
$PORTLAND_SAVE1 = 1
$I_SAVE1INT = 0
set_object_heading $PLAYER_DOOR z_angle_to 240.0

:I_SAVE1_57
wait 10
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE1_576
if 
  is_collision_in_memory 1
goto_if_false @I_SAVE1_546
if 
  $I_SAVE1INT == 0
goto_if_false @I_SAVE1_145
remove_blip $ISAVE1HOME
add_sprite_blip_for_contact_point $ISAVE1HOME = create_icon_marker_and_sphere 17 at 895.5625 -307.375 8.6875
change_blip_display $ISAVE1HOME display 3
$I_SAVE1INT = 1

:I_SAVE1_145
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'REDLIGH'
goto_if_false @I_SAVE1_539
if 
  $ONMISSION == 0
goto_if_false @I_SAVE1_187

:I_SAVE1_187
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE1_539
if 
  can_player_start_mission $PLAYER_CHAR
goto_if_false @I_SAVE1_539
goto @I_SAVE1_233

:I_SAVE1_226
change_blip_display $ISAVE1HOME display 0

:I_SAVE1_233
wait 0
if and
  $ONMISSION == 0
  is_collision_in_memory 1
goto_if_false @I_SAVE1_226
change_blip_display $ISAVE1HOME display 3
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 895.5625 -307.375 8.6875 radius 1.0 1.0 1.0
goto_if_false @I_SAVE1_539
set_player_control $PLAYER_CHAR can_move 0
wait 400
set_fixed_camera_position 884.5 -305.3125 13.5 rotation 0.0 0.0 0.0
point_camera_at_point 885.25 -305.8125 13.0 switchstyle 2
set_object_heading $PLAYER_DOOR z_angle_to 0.0
wait 900
activate_save_menu 
wait 0

:I_SAVE1_366
if 
  not has_save_game_finished 
goto_if_false @I_SAVE1_390
wait 0
goto @I_SAVE1_366

:I_SAVE1_390
load_splash_screen 'MAINSC1'
set_fading_colour 0 0 0
do_fade 0 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE1_438
set_player_control $PLAYER_CHAR can_move 0

:I_SAVE1_438
clear_area 1 at 886.0 -308.375 -100.0 range 1.0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE1_511
set_player_coordinates $PLAYER_CHAR at 886.0 -308.375 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
do_fade 1 1000
restore_camera_jumpcut 
set_camera_in_front_of_player 
set_object_heading $PLAYER_DOOR z_angle_to 240.0

:I_SAVE1_511
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE1_539
set_player_control $PLAYER_CHAR can_move 1

:I_SAVE1_539
goto @I_SAVE1_576

:I_SAVE1_546
if 
  $I_SAVE1INT == 1
goto_if_false @I_SAVE1_576
remove_blip $ISAVE1HOME
$I_SAVE1INT = 0

:I_SAVE1_576
goto @I_SAVE1_57

:I_SAVE2
script_name 'I_SAVE2'
$PORTLAND_SAVE1 = 1
$I_SAVE2INT = 0
set_garage $TONY_MOM_GARAGE = create_garage 18 from 1213.625 -241.0625 23.875 1221.0 -246.25 28.0
create_pickup $GARAGE_COLT = create_pickup 173 type 14 at 1220.438 -248.125 24.9375

:I_SAVE2_68
wait 10
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE2_533
if 
  is_collision_in_memory 1
goto_if_false @I_SAVE2_503
if 
  $I_SAVE2INT == 0
goto_if_false @I_SAVE2_156
remove_blip $ISAVE2HOME
add_sprite_blip_for_contact_point $ISAVE2HOME = create_icon_marker_and_sphere 17 at 1212.688 -238.75 24.9375
change_blip_display $ISAVE2HOME display 3
$I_SAVE2INT = 1

:I_SAVE2_156
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'LITTLEI'
goto_if_false @I_SAVE2_496
if 
  $ONMISSION == 0
goto_if_false @I_SAVE2_198

:I_SAVE2_198
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE2_496
if 
  can_player_start_mission $PLAYER_CHAR
goto_if_false @I_SAVE2_496
goto @I_SAVE2_244

:I_SAVE2_237
change_blip_display $ISAVE2HOME display 0

:I_SAVE2_244
wait 0
if and
  $ONMISSION == 0
  is_collision_in_memory 1
goto_if_false @I_SAVE2_237
change_blip_display $ISAVE2HOME display 3
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1212.688 -238.75 24.9375 radius 1.0 1.0 1.0
goto_if_false @I_SAVE2_496
set_player_control $PLAYER_CHAR can_move 0
wait 400
activate_save_menu 
wait 0

:I_SAVE2_331
if 
  not has_save_game_finished 
goto_if_false @I_SAVE2_355
wait 0
goto @I_SAVE2_331

:I_SAVE2_355
load_splash_screen 'MAINSC1'
set_fading_colour 0 0 0
do_fade 0 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE2_403
set_player_control $PLAYER_CHAR can_move 0

:I_SAVE2_403
clear_area 1 at 886.0 -308.375 -100.0 range 1.0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE2_468
set_player_coordinates $PLAYER_CHAR at 1208.563 -238.6875 23.9375
set_player_heading $PLAYER_CHAR z_angle_to 270.0
do_fade 1 1000
restore_camera_jumpcut 
set_camera_in_front_of_player 

:I_SAVE2_468
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_SAVE2_496
set_player_control $PLAYER_CHAR can_move 1

:I_SAVE2_496
goto @I_SAVE2_533

:I_SAVE2_503
if 
  $I_SAVE2INT == 1
goto_if_false @I_SAVE2_533
remove_blip $ISAVE2HOME
$I_SAVE2INT = 0

:I_SAVE2_533
goto @I_SAVE2_68

:C_SAVE
script_name 'C_SAVE'
$STAUNTON_SAVE1 = 1
set_garage $RAYS_PRIZE_GARAGE = create_garage 18 from 245.375 -992.1875 20.0 233.375 -1000.5 24.0
set_rotating_garage_door $RAYS_PRIZE_GARAGE
remove_blip $CSAVEHOME

:C_SAVE_52
wait 10
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @C_SAVE_611
if 
  is_collision_in_memory 2
goto_if_false @C_SAVE_581
if 
  $4387 == 0
goto_if_false @C_SAVE_140
remove_blip $CSAVEHOME
add_sprite_blip_for_contact_point $CSAVEHOME = create_icon_marker_and_sphere 17 at 195.75 -971.375 25.125
change_blip_display $CSAVEHOME display 3
$4387 = 1

:C_SAVE_140
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PARK'
goto_if_false @C_SAVE_574
if 
  $ONMISSION == 0
goto_if_false @C_SAVE_182

:C_SAVE_182
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @C_SAVE_574
if 
  can_player_start_mission $PLAYER_CHAR
goto_if_false @C_SAVE_574
goto @C_SAVE_228

:C_SAVE_221
change_blip_display $CSAVEHOME display 0

:C_SAVE_228
wait 0
if and
  $ONMISSION == 0
  is_collision_in_memory 2
goto_if_false @C_SAVE_221
change_blip_display $CSAVEHOME display 3
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 195.75 -971.375 26.125 radius 1.0 1.0 1.0
goto_if_false @C_SAVE_574
if 
  is_score_greater $PLAYER_CHAR money > 199
goto_if_false @C_SAVE_379
set_player_control $PLAYER_CHAR can_move 0
wait 400
set_fixed_camera_position 176.375 -978.125 32.125 rotation 0.0 0.0 0.0
point_camera_at_point 195.75 -971.375 32.125 switchstyle 2
wait 900
activate_save_menu 
wait 0
goto @C_SAVE_401

:C_SAVE_379
print_now 'HOTEL_N' time 2000 1
goto @C_SAVE_574

:C_SAVE_401
if 
  not has_save_game_finished 
goto_if_false @C_SAVE_425
wait 0
goto @C_SAVE_401

:C_SAVE_425
add_score $PLAYER_CHAR money += -200
load_splash_screen 'MAINSC1'
set_fading_colour 0 0 0
do_fade 0 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @C_SAVE_481
set_player_control $PLAYER_CHAR can_move 0

:C_SAVE_481
clear_area 1 at 192.6875 -971.4375 25.125 range 1.0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @C_SAVE_546
set_player_coordinates $PLAYER_CHAR at 192.6875 -971.4375 25.125
set_player_heading $PLAYER_CHAR z_angle_to 270.0
do_fade 1 1000
restore_camera_jumpcut 
set_camera_in_front_of_player 

:C_SAVE_546
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @C_SAVE_574
set_player_control $PLAYER_CHAR can_move 1

:C_SAVE_574
goto @C_SAVE_611

:C_SAVE_581
if 
  $4387 == 1
goto_if_false @C_SAVE_611
remove_blip $CSAVEHOME
$4387 = 0

:C_SAVE_611
goto @C_SAVE_52

:S_SAVE
script_name 'S_SAVE'
$SHORESIDEVALE_SAVE = 1

:S_SAVE_17
wait 10
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @S_SAVE_520
if 
  is_collision_in_memory 3
goto_if_false @S_SAVE_490
if 
  $4388 == 0
goto_if_false @S_SAVE_105
remove_blip $SSAVEHOME
add_sprite_blip_for_contact_point $SSAVEHOME = create_icon_marker_and_sphere 17 at -1115.0 53.125 57.625
change_blip_display $SSAVEHOME display 3
$4388 = 1

:S_SAVE_105
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SUB_IND'
goto_if_false @S_SAVE_483
if 
  $ONMISSION == 0
goto_if_false @S_SAVE_147

:S_SAVE_147
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @S_SAVE_483
if 
  can_player_start_mission $PLAYER_CHAR
goto_if_false @S_SAVE_483
goto @S_SAVE_193

:S_SAVE_186
change_blip_display $SSAVEHOME display 0

:S_SAVE_193
wait 0
if and
  $ONMISSION == 0
  is_collision_in_memory 3
goto_if_false @S_SAVE_186
change_blip_display $SSAVEHOME display 3
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -1115.0 53.125 58.625 radius 1.0 1.0 1.0
goto_if_false @S_SAVE_483
set_player_control $PLAYER_CHAR can_move 0
wait 400
set_fixed_camera_position -1126.063 43.25 60.6875 rotation 0.0 0.0 0.0
point_camera_at_point -1115.0 53.125 58.625 switchstyle 2
wait 900
activate_save_menu 
wait 0

:S_SAVE_318
if 
  not has_save_game_finished 
goto_if_false @S_SAVE_342
wait 0
goto @S_SAVE_318

:S_SAVE_342
set_fading_colour 0 0 0
do_fade 0 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @S_SAVE_380
set_player_control $PLAYER_CHAR can_move 0

:S_SAVE_380
clear_area 1 at -1115.0 53.125 58.625 range 1.0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @S_SAVE_455
set_player_coordinates $PLAYER_CHAR at -1119.438 53.125 57.6875
set_player_heading $PLAYER_CHAR z_angle_to 270.0
restore_camera_jumpcut 
set_camera_in_front_of_player 
load_splash_screen 'MAINSC1'
do_fade 1 1000

:S_SAVE_455
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @S_SAVE_483
set_player_control $PLAYER_CHAR can_move 1

:S_SAVE_483
goto @S_SAVE_520

:S_SAVE_490
if 
  $4388 == 1
goto_if_false @S_SAVE_520
remove_blip $SSAVEHOME
$4388 = 0

:S_SAVE_520
goto @S_SAVE_17

:PHOME
script_name 'PHOME'
wait 4000
create_pickup $ISAVE2BUY = create_pickup #INFO type 2 at 1210.313 -238.6875 24.9375
goto @PHOME_57

:PHOME_40
print_help 'BUY_M'
set_player_control $PLAYER_CHAR can_move 1

:PHOME_57
wait 0
if 
  has_pickup_been_collected $ISAVE2BUY
goto_if_false @PHOME_57
set_player_control $PLAYER_CHAR can_move 0
restore_camera_jumpcut 
print_help 'BUY_B1'

:PHOME_96
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @PHOME_201
if 
  is_score_greater $PLAYER_CHAR money > 5999
goto_if_false @PHOME_40
start_new_script @I_SAVE2 
add_score $PLAYER_CHAR money += -6000
switch_widescreen 1
print_big 'BUY_P' 3000 ms 1
wait 4000
restore_camera_jumpcut 
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
remove_pickup $ISAVE2BUY
goto @PHOME_247

:PHOME_201
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @PHOME_96
set_player_control $PLAYER_CHAR can_move 1
print_big 'BUY_F' 3000 ms 1
goto @PHOME_57

:PHOME_247
terminate_this_script 

:I_RSTRT
script_name 'I_RSTRT'

:I_RSTRT_10
wait 100
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @I_RSTRT_93
if 
  is_collision_in_memory 1
goto_if_false @I_RSTRT_93
if 
  $HOSPITAL1_OPEN == 1
goto_if_false @I_RSTRT_93
add_hospital_restart 1144.25 -596.875 13.875 angle 270.0
add_police_restart 1143.875 -675.1875 -100.0 angle 270.0
terminate_this_script 

:I_RSTRT_93
goto @I_RSTRT_10

:C_RSTRT
script_name 'C_RSTRT'

:C_RSTRT_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @C_RSTRT_98
if 
  is_collision_in_memory 2
goto_if_false @C_RSTRT_98
if 
  $HOSPITAL2_OPEN == 1
goto_if_false @C_RSTRT_98
add_hospital_restart 183.5 -17.75 15.1875 angle 180.0
add_police_restart 340.25 -1123.375 25.0 angle 180.0
set_max_wanted_level 5
terminate_this_script 

:C_RSTRT_98
goto @C_RSTRT_10

:S_RSTRT
script_name 'S_RSTRT'

:S_RSTRT_10
wait 1000
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @S_RSTRT_98
if 
  is_collision_in_memory 3
goto_if_false @S_RSTRT_98
if 
  $HOSPITAL3_OPEN == 1
goto_if_false @S_RSTRT_98
add_hospital_restart -1253.0 -138.1875 57.75 angle 90.0
add_police_restart -1259.5 -44.5 57.75 angle 90.0
set_max_wanted_level 6
terminate_this_script 

:S_RSTRT_98
goto @S_RSTRT_10

:AMMUDO
script_name 'AMMUDO'

:AMMUDO_10
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -864.5625 -184.75 33.8125 radius 1.5 1.5 1.5
goto_if_false @AMMUDO_121
do_fade 0 500
wait 500
set_player_control $PLAYER_CHAR can_move 0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
wait 100
set_player_coordinates $PLAYER_CHAR at -870.6875 -178.25 32.8125
set_player_control $PLAYER_CHAR can_move 0
do_fade 1 500
wait 500
set_player_control $PLAYER_CHAR can_move 1

:AMMUDO_121
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -864.5625 -181.5625 33.8125 radius 1.5 1.5 1.5
goto_if_false @AMMUDO_10
do_fade 0 500
wait 500
set_player_heading $PLAYER_CHAR z_angle_to 180.0
wait 100
set_player_coordinates $PLAYER_CHAR at -863.625 -188.375 32.8125
set_player_control $PLAYER_CHAR can_move 0
do_fade 1 500
wait 500
set_player_control $PLAYER_CHAR can_move 1
goto @AMMUDO_10

:MAPMARK
script_name 'MAPMARK'
$ISLAND1 = 0
$ISLAND2 = 0
$ISLAND3 = 0

:MAPMARK_31
wait 0
if and
  $ISLAND1 == 0
  is_collision_in_memory 1
goto_if_false @MAPMARK_145
$ISLAND1 = 1
$ISLAND2 = 0
$ISLAND3 = 0
remove_blip $SPRAY
remove_blip $AMMU
remove_blip $BOMB
wait 100
add_sprite_blip_for_coord $SPRAY = create_marker 18 at 925.25 -359.1875 11.0
add_sprite_blip_for_coord $AMMU = create_marker 20 at 1071.25 -400.0625 15.1875
add_sprite_blip_for_coord $BOMB = create_marker 2 at 1282.063 -103.5625 14.75

:MAPMARK_145
wait 0
if and
  $ISLAND2 == 0
  is_collision_in_memory 2
goto_if_false @MAPMARK_259
$ISLAND1 = 0
$ISLAND2 = 1
$ISLAND3 = 0
remove_blip $SPRAY
remove_blip $AMMU
remove_blip $BOMB
wait 100
add_sprite_blip_for_coord $SPRAY = create_marker 18 at 380.375 -493.75 26.1875
add_sprite_blip_for_coord $AMMU = create_marker 20 at 345.5 -713.5 26.0625
add_sprite_blip_for_coord $BOMB = create_marker 2 at 379.25 -576.5625 26.125

:MAPMARK_259
wait 0
if and
  $ISLAND3 == 0
  is_collision_in_memory 3
goto_if_false @MAPMARK_31
$ISLAND1 = 0
$ISLAND2 = 0
$ISLAND3 = 1
remove_blip $SPRAY
remove_blip $AMMU
remove_blip $BOMB
wait 100
add_sprite_blip_for_coord $SPRAY = create_marker 18 at -1142.063 34.0 59.0
add_sprite_blip_for_coord $BOMB = create_marker 2 at -1082.5 55.0 58.5
add_sprite_blip_for_coord $AMMU = create_marker 20 at -1171.875 133.1875 68.75
goto @MAPMARK_31

:LRMARK
script_name 'LRMARK'
add_sprite_blip_for_contact_point $RACE1_TWO = create_icon_marker_and_sphere 15 at 1191.063 -869.625 14.125
add_sprite_blip_for_contact_point $RACE2_TWO = create_icon_marker_and_sphere 15 at 167.3125 -1260.625 31.25
add_sprite_blip_for_contact_point $RACE3_TWO = create_icon_marker_and_sphere 15 at -833.25 300.375 39.25

:LRMARK_58
wait 0
if 
  is_collision_in_memory 1
goto_if_false @LRMARK_98
change_blip_display $RACE1_TWO display 2
change_blip_display $RACE2_TWO display 0
change_blip_display $RACE3_TWO display 0

:LRMARK_98
if 
  is_collision_in_memory 2
goto_if_false @LRMARK_134
change_blip_display $RACE1_TWO display 0
change_blip_display $RACE2_TWO display 2
change_blip_display $RACE3_TWO display 0

:LRMARK_134
if 
  is_collision_in_memory 3
goto_if_false @LRMARK_170
change_blip_display $RACE1_TWO display 0
change_blip_display $RACE2_TWO display 0
change_blip_display $RACE3_TWO display 2

:LRMARK_170
if 
  $INMLRACE_12_PASS == 1
goto_if_false @LRMARK_193
remove_blip $RACE1_TWO

:LRMARK_193
if and
  $INMLRACE_21_PASS == 1
  $INMLRACE_23_PASS == 1
goto_if_false @LRMARK_223
remove_blip $RACE2_TWO

:LRMARK_223
if 
  $INMLRACE_32_PASS == 1
goto_if_false @LRMARK_246
remove_blip $RACE3_TWO

:LRMARK_246
if and
  $INMLRACE_12_PASS == 1
  $INMLRACE_21_PASS == 1
  $INMLRACE_23_PASS == 1
  $INMLRACE_32_PASS == 1
goto_if_false @LRMARK_58
remove_blip $RACE1_TWO
remove_blip $RACE2_TWO
remove_blip $RACE3_TWO
start_new_script @LCRMARK 
terminate_this_script 

:LCRMARK
script_name 'LCRMARK'
add_sprite_blip_for_contact_point $RACE1_LC3 = create_icon_marker_and_sphere 15 at 1191.063 -869.625 14.125
add_sprite_blip_for_contact_point $RACE3_LC3 = create_icon_marker_and_sphere 15 at -833.25 300.375 39.25

:LCRMARK_42
wait 0
if 
  is_collision_in_memory 1
goto_if_false @LCRMARK_75
change_blip_display $RACE1_LC3 display 2
change_blip_display $RACE3_LC3 display 0

:LCRMARK_75
if 
  is_collision_in_memory 2
goto_if_false @LCRMARK_104
change_blip_display $RACE1_LC3 display 0
change_blip_display $RACE3_LC3 display 0

:LCRMARK_104
if 
  is_collision_in_memory 3
goto_if_false @LCRMARK_133
change_blip_display $RACE1_LC3 display 0
change_blip_display $RACE3_LC3 display 2

:LCRMARK_133
if 
  $INMLCRACE_123_PASS == 1
goto_if_false @LCRMARK_156
remove_blip $RACE1_LC3

:LCRMARK_156
if 
  $INMLCRACE_321_PASS == 1
goto_if_false @LCRMARK_179
remove_blip $RACE3_LC3

:LCRMARK_179
if and
  $INMLCRACE_123_PASS == 1
  $INMLCRACE_321_PASS == 1
goto_if_false @LCRMARK_42
remove_blip $RACE1_LC3
remove_blip $RACE3_LC3
terminate_this_script 

:TWO
script_name 'TWO'
wait 10000
add_pager_message 'MV1_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $VINI = create_icon_marker_and_sphere 13 at 1203.688 -320.75 24.9375
wait 100
change_blip_display $VINI display 3

:TWO_64
wait 1000
if 
  $4423 == 0
goto_if_false @TWO_182
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWO_64
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1203.688 -320.75 24.9375 radius 1.0 1.0 2.0
goto_if_false @TWO_64
if 
  $ONMISSION == 0
goto_if_false @TWO_64
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $VINI display 0
load_and_launch_mission_internal 1 // Hospital Info Scene
goto @TWO_64

:TWO_182
terminate_this_script 

:THREE
script_name 'THREE'
wait 10000
add_pager_message 'MV2_1' 140 10 2
wait 6000
change_blip_display $VINI display 3

:THREE_44
wait 100
if 
  $4424 == 0
goto_if_false @THREE_161
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THREE_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1203.688 -320.75 24.9375 radius 1.0 1.0 2.0
goto_if_false @THREE_44
if 
  $ONMISSION == 0
goto_if_false @THREE_44
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $VINI display 0
load_and_launch_mission_internal 2 // Police Station Info Scene
goto @THREE_44

:THREE_161
terminate_this_script 

:FOUR
script_name 'FOUR'
wait 10000
add_pager_message 'MV3_1' 140 10 2
wait 6000
change_blip_display $VINI display 3

:FOUR_44
wait 100
if 
  $4425 == 0
goto_if_false @FOUR_161
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FOUR_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1203.688 -320.75 24.9375 radius 1.0 1.0 2.0
goto_if_false @FOUR_44
if 
  $ONMISSION == 0
goto_if_false @FOUR_44
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $VINI display 0
load_and_launch_mission_internal 3 // RC Diablo Destruction
goto @FOUR_44

:FOUR_161
terminate_this_script 

:FIVE
script_name 'FIVE'
wait 10000
add_pager_message 'MV4_1' 140 10 2
wait 6000
change_blip_display $VINI display 3

:FIVE_44
wait 100
if 
  $4426 == 0
goto_if_false @FIVE_161
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FIVE_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1203.688 -320.75 24.9375 radius 1.0 1.0 2.0
goto_if_false @FIVE_44
if 
  $ONMISSION == 0
goto_if_false @FIVE_44
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $VINI display 0
load_and_launch_mission_internal 4 // RC Mafia Massacre
goto @FIVE_44

:FIVE_161
terminate_this_script 

:SIX
script_name 'SIX'
wait 10000
add_pager_message 'MV5_1' 140 10 2
wait 6000
change_blip_display $VINI display 3

:SIX_44
wait 100
if 
  $4427 == 0
goto_if_false @SIX_161
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @SIX_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1203.688 -320.75 24.9375 radius 1.0 1.0 2.0
goto_if_false @SIX_44
if 
  $ONMISSION == 0
goto_if_false @SIX_44
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $VINI display 0
load_and_launch_mission_internal 5 // RC Rumpo Rampage
goto @SIX_44

:SIX_161
remove_blip $VINI
terminate_this_script 

:SEVEN
script_name 'SEVEN'
wait 10000
add_sprite_blip_for_contact_point $VINI = create_icon_marker_and_sphere 13 at 1011.813 -678.75 14.9375
wait 100
add_pager_message 'MV6_1' 140 10 2
wait 6000
change_blip_display $VINI display 3

:SEVEN_64
wait 100
if 
  $4428 == 0
goto_if_false @SEVEN_181
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @SEVEN_64
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1011.813 -678.75 14.9375 radius 1.0 1.0 2.0
goto_if_false @SEVEN_64
if 
  $ONMISSION == 0
goto_if_false @SEVEN_64
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $VINI display 0
load_and_launch_mission_internal 6 // RC Casino Calamity
goto @SEVEN_64

:SEVEN_181
remove_blip $VINI
terminate_this_script 

:EIGHT
script_name 'EIGHT'
wait 10000
add_sprite_blip_for_contact_point $8BALL = create_icon_marker_and_sphere 7 at 1272.0 -92.25 14.875
wait 100
add_pager_message 'M81_1' 140 10 2
wait 6000
change_blip_display $8BALL display 3

:EIGHT_64
wait 100
if 
  $4429 == 0
goto_if_false @EIGHT_229
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @EIGHT_64
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 1.0 1.0 2.0
goto_if_false @EIGHT_64
if 
  $ONMISSION == 0
goto_if_false @EIGHT_64
get_time_of_day $HOURS = current_time_hours, $MINUTES
if or
  $HOURS >= 20
  not $HOURS >= 6
goto_if_false @EIGHT_207
change_blip_display $8BALL display 0
load_and_launch_mission_internal 7 // Patriot Playground
goto @EIGHT_64

:EIGHT_207
print_now 'M81_10' time 4000 1
goto @EIGHT_64

:EIGHT_229
terminate_this_script 

:NINE
script_name 'NINE'
wait 10000
add_pager_message 'M82_1' 140 10 2
wait 6000
change_blip_display $8BALL display 3

:NINE_44
wait 100
if 
  $4430 == 0
goto_if_false @NINE_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @NINE_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 1.0 1.0 2.0
goto_if_false @NINE_44
if 
  $ONMISSION == 0
goto_if_false @NINE_44
change_blip_display $8BALL display 0
load_and_launch_mission_internal 8 // A Ride In The Park
goto @NINE_44

:NINE_154
terminate_this_script 

:TEN
script_name 'TEN'
wait 10000
add_pager_message 'M83_1' 140 10 2
wait 6000
change_blip_display $8BALL display 3

:TEN_44
wait 100
if 
  $4431 == 0
goto_if_false @TEN_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TEN_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 1.0 1.0 2.0
goto_if_false @TEN_44
if 
  $ONMISSION == 0
goto_if_false @TEN_44
change_blip_display $8BALL display 0
load_and_launch_mission_internal 9 // Gripped!
goto @TEN_44

:TEN_154
terminate_this_script 

:ELEV
script_name 'ELEV'
wait 10000
add_pager_message 'M84_1' 140 10 2
wait 6000
change_blip_display $8BALL display 3

:ELEV_44
wait 100
if 
  $4432 == 0
goto_if_false @ELEV_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @ELEV_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 1.0 1.0 2.0
goto_if_false @ELEV_44
if 
  $ONMISSION == 0
goto_if_false @ELEV_44
change_blip_display $8BALL display 0
load_and_launch_mission_internal 10 // Multistorey Mayhem
goto @ELEV_44

:ELEV_154
terminate_this_script 

:TWEL
script_name 'TWEL'
wait 10000
add_pager_message 'M85_1' 140 10 2
wait 6000
change_blip_display $8BALL display 3

:TWEL_44
wait 100
if 
  $4433 == 0
goto_if_false @TWEL_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWEL_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 1.0 1.0 2.0
goto_if_false @TWEL_44
if 
  $ONMISSION == 0
goto_if_false @TWEL_44
change_blip_display $8BALL display 0
load_and_launch_mission_internal 11 // Paramedic
goto @TWEL_44

:TWEL_154
remove_blip $8BALL
terminate_this_script 

:THIRT
script_name 'THIRT'
wait 10000
add_pager_message 'MJ1_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $JONI = create_icon_marker_and_sphere 10 at 942.875 -345.0 9.9375

:THIRT_53
wait 100
if 
  $4434 == 0
goto_if_false @THIRT_163
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRT_53
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @THIRT_53
if 
  $ONMISSION == 0
goto_if_false @THIRT_53
change_blip_display $JONI display 0
load_and_launch_mission_internal 12 // Firefighter
goto @THIRT_53

:THIRT_163
terminate_this_script 

:FORT
script_name 'FORT'
wait 10000
add_pager_message 'MJ2_1' 140 10 2
wait 6000
change_blip_display $JONI display 3

:FORT_44
wait 100
if 
  $4435 == 0
goto_if_false @FORT_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FORT_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @FORT_44
if 
  $ONMISSION == 0
goto_if_false @FORT_44
change_blip_display $JONI display 0
load_and_launch_mission_internal 13 // Vigilante
goto @FORT_44

:FORT_154
terminate_this_script 

:FIFT
script_name 'FIFT'
wait 10000
add_pager_message 'MJ3_1' 140 10 2
wait 6000
change_blip_display $JONI display 3

:FIFT_44
wait 100
if 
  $4436 == 0
goto_if_false @FIFT_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FIFT_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @FIFT_44
if 
  $ONMISSION == 0
goto_if_false @FIFT_44
change_blip_display $JONI display 0
load_and_launch_mission_internal 14 // Taxi Driver
goto @FIFT_44

:FIFT_154
terminate_this_script 

:SIXT
script_name 'SIXT'
wait 10000
add_pager_message 'MJ4_1' 140 10 2
wait 6000
change_blip_display $JONI display 3

:SIXT_44
wait 100
if 
  $4437 == 0
goto_if_false @SIXT_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @SIXT_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @SIXT_44
if 
  $ONMISSION == 0
goto_if_false @SIXT_44
change_blip_display $JONI display 0
load_and_launch_mission_internal 15 // The Crook
goto @SIXT_44

:SIXT_154
terminate_this_script 

:SEVENT
script_name 'SEVENT'
wait 10000
add_pager_message 'MJ5_1' 140 10 2
wait 6000
change_blip_display $JONI display 3

:SEVENT_44
wait 100
if 
  $4438 == 0
goto_if_false @SEVENT_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @SEVENT_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @SEVENT_44
if 
  $ONMISSION == 0
goto_if_false @SEVENT_44
change_blip_display $JONI display 0
load_and_launch_mission_internal 16 // The Thieves
goto @SEVENT_44

:SEVENT_154
terminate_this_script 

:EIGHTT
script_name 'EIGHTT'
wait 10000
add_pager_message 'MJ6_1' 140 10 2
wait 6000
change_blip_display $JONI display 3

:EIGHTT_44
wait 100
if 
  $4439 == 0
goto_if_false @EIGHTT_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @EIGHTT_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @EIGHTT_44
if 
  $ONMISSION == 0
goto_if_false @EIGHTT_44
change_blip_display $JONI display 0
load_and_launch_mission_internal 17 // The Wife
goto @EIGHTT_44

:EIGHTT_154
terminate_this_script 

:NINT
script_name 'NINT'
wait 10000
add_pager_message 'MJ7_1' 140 10 2
wait 6000
change_blip_display $JONI display 3

:NINT_44
wait 100
if 
  $4440 == 0
goto_if_false @NINT_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @NINT_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.875 -345.0 9.9375 radius 1.0 1.0 2.0
goto_if_false @NINT_44
if 
  $ONMISSION == 0
goto_if_false @NINT_44
change_blip_display $JONI display 0
load_and_launch_mission_internal 18 // Her Lover
goto @NINT_44

:NINT_154
remove_blip $JONI
terminate_this_script 

:TWENT
script_name 'TWENT'
wait 10000
print_now 'MK1_1' time 6000 1
wait 6000
add_sprite_blip_for_contact_point $KEN = create_icon_marker_and_sphere 11 at 560.4375 -777.0 1.75
change_blip_display $KEN display 3

:TWENT_58
wait 100
if 
  $4520 == 0
goto_if_false @TWENT_168
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT_58
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 560.4375 -777.0 1.75 radius 1.0 1.0 2.0
goto_if_false @TWENT_58
if 
  $ONMISSION == 0
goto_if_false @TWENT_58
change_blip_display $KEN display 0
load_and_launch_mission_internal 19 // Give Me Liberty and Luigi's Girls
goto @TWENT_58

:TWENT_168
terminate_this_script 

:TWENT1
script_name 'TWENT1'
wait 10000
add_pager_message 'MK2_1' 140 10 2
wait 6000
change_blip_display $KEN display 3

:TWENT1_44
wait 100
if 
  $4521 == 0
goto_if_false @TWENT1_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT1_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 560.4375 -777.0 1.75 radius 1.0 1.0 2.0
goto_if_false @TWENT1_44
if 
  $ONMISSION == 0
goto_if_false @TWENT1_44
change_blip_display $KEN display 0
load_and_launch_mission_internal 20 // Don't Spank My Bitch Up
goto @TWENT1_44

:TWENT1_154
terminate_this_script 

:TWENT2
script_name 'TWENT2'
wait 10000
add_pager_message 'MK3_1' 140 10 2
wait 6000
change_blip_display $KEN display 3

:TWENT2_44
wait 100
if 
  $4522 == 0
goto_if_false @TWENT2_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT2_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 560.4375 -777.0 1.75 radius 1.0 1.0 2.0
goto_if_false @TWENT2_44
if 
  $ONMISSION == 0
goto_if_false @TWENT2_44
change_blip_display $KEN display 0
load_and_launch_mission_internal 21 // Drive Misty For Me
goto @TWENT2_44

:TWENT2_154
terminate_this_script 

:TWENT3
script_name 'TWENT3'
wait 10000
add_pager_message 'MK4_1' 140 10 2
wait 6000
change_blip_display $KEN display 3

:TWENT3_44
wait 100
if 
  $4523 == 0
goto_if_false @TWENT3_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT3_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 560.4375 -777.0 1.75 radius 1.0 1.0 2.0
goto_if_false @TWENT3_44
if 
  $ONMISSION == 0
goto_if_false @TWENT3_44
change_blip_display $KEN display 0
load_and_launch_mission_internal 22 // Pump-Action Pimp
goto @TWENT3_44

:TWENT3_154
remove_blip $KEN
terminate_this_script 

:TWENT4
script_name 'TWENT4'
wait 10000
add_pager_message 'MC1_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $CSK = create_icon_marker_and_sphere 3 at 13.75 -298.5 16.125
change_blip_display $CSK display 3

:TWENT4_60
wait 100
if 
  $4524 == 0
goto_if_false @TWENT4_170
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT4_60
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 13.75 -298.5 16.125 radius 1.0 1.0 2.0
goto_if_false @TWENT4_60
if 
  $ONMISSION == 0
goto_if_false @TWENT4_60
change_blip_display $CSK display 0
load_and_launch_mission_internal 23 // The Fuzz Ball
goto @TWENT4_60

:TWENT4_170
terminate_this_script 

:TWENT5
script_name 'TWENT5'
wait 10000
add_pager_message 'MC2_1' 140 10 2
wait 6000
change_blip_display $CSK display 3

:TWENT5_44
wait 100
if 
  $4525 == 0
goto_if_false @TWENT5_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT5_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 13.75 -298.5 16.125 radius 1.0 1.0 2.0
goto_if_false @TWENT5_44
if 
  $ONMISSION == 0
goto_if_false @TWENT5_44
change_blip_display $CSK display 0
load_and_launch_mission_internal 24 // Mike Lips Last Lunch
goto @TWENT5_44

:TWENT5_154
terminate_this_script 

:TWENT6
script_name 'TWENT6'
wait 10000
add_pager_message 'MC3_1' 140 10 2
wait 6000
change_blip_display $CSK display 3

:TWENT6_44
wait 100
if 
  $4526 == 0
goto_if_false @TWENT6_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT6_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 13.75 -298.5 16.125 radius 1.0 1.0 2.0
goto_if_false @TWENT6_44
if 
  $ONMISSION == 0
goto_if_false @TWENT6_44
change_blip_display $CSK display 0
load_and_launch_mission_internal 25 // Farewell 'Chunky' Lee Chong
goto @TWENT6_44

:TWENT6_154
remove_blip $CSK
terminate_this_script 

:TWENT7
script_name 'TWENT7'
wait 10000
add_pager_message 'MA1_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $ASUKA = create_icon_marker_and_sphere 1 at 107.5625 -1275.563 26.125
change_blip_display $ASUKA display 3

:TWENT7_60
wait 100
if 
  $4527 == 0
goto_if_false @TWENT7_170
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT7_60
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @TWENT7_60
if 
  $ONMISSION == 0
goto_if_false @TWENT7_60
change_blip_display $ASUKA display 0
load_and_launch_mission_internal 26 // Van Heist
goto @TWENT7_60

:TWENT7_170
terminate_this_script 

:TWENT8
script_name 'TWENT8'
wait 10000
add_pager_message 'MA2_1' 140 10 2
wait 6000
change_blip_display $ASUKA display 3

:TWENT8_44
wait 100
if 
  $4528 == 0
goto_if_false @TWENT8_147
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT8_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @TWENT8_44
if 
  $ONMISSION == 0
goto_if_false @TWENT8_44
load_and_launch_mission_internal 27 // Cipriani's Chauffeur
goto @TWENT8_44

:TWENT8_147
terminate_this_script 

:TWENT9
script_name 'TWENT9'
wait 10000
add_pager_message 'MA3_1' 140 10 2
wait 6000
change_blip_display $ASUKA display 3

:TWENT9_44
wait 100
if 
  $4529 == 0
goto_if_false @TWENT9_147
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TWENT9_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @TWENT9_44
if 
  $ONMISSION == 0
goto_if_false @TWENT9_44
load_and_launch_mission_internal 28 // Dead Skunk In The Trunk
goto @TWENT9_44

:TWENT9_147
terminate_this_script 

:THIRTY
script_name 'THIRTY'
wait 10000
add_pager_message 'MA4_1' 140 10 2
wait 6000
change_blip_display $ASUKA display 3

:THIRTY_44
wait 100
if 
  $4530 == 0
goto_if_false @THIRTY_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @THIRTY_44
if 
  $ONMISSION == 0
goto_if_false @THIRTY_44
change_blip_display $ASUKA display 0
load_and_launch_mission_internal 29 // The Getaway
goto @THIRTY_44

:THIRTY_154
terminate_this_script 

:THIRTY1
script_name 'THIRTY1'
wait 10000
add_pager_message 'MA5_1' 140 10 2
wait 6000
change_blip_display $ASUKA display 3

:THIRTY1_44
wait 100
if 
  $4531 == 0
goto_if_false @THIRTY1_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY1_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @THIRTY1_44
if 
  $ONMISSION == 0
goto_if_false @THIRTY1_44
change_blip_display $ASUKA display 0
load_and_launch_mission_internal 30 // Taking Out The Laundry
goto @THIRTY1_44

:THIRTY1_154
terminate_this_script 

:THIRTY2
script_name 'THIRTY2'
wait 10000
add_pager_message 'MA6_1' 140 10 2
wait 6000
change_blip_display $ASUKA display 3

:THIRTY2_44
wait 100
if 
  $4532 == 0
goto_if_false @THIRTY2_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY2_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @THIRTY2_44
if 
  $ONMISSION == 0
goto_if_false @THIRTY2_44
change_blip_display $ASUKA display 0
load_and_launch_mission_internal 31 // The Pick-Up
goto @THIRTY2_44

:THIRTY2_154
terminate_this_script 

:THIRTY3
script_name 'THIRTY3'
wait 10000
add_pager_message 'MA7_1' 140 10 2
wait 6000
change_blip_display $ASUKA display 3

:THIRTY3_44
wait 100
if 
  $4533 == 0
goto_if_false @THIRTY3_154
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY3_44
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 1.0 1.0 2.0
goto_if_false @THIRTY3_44
if 
  $ONMISSION == 0
goto_if_false @THIRTY3_44
change_blip_display $ASUKA display 0
load_and_launch_mission_internal 32 // Salvatore's Called A Meeting
goto @THIRTY3_44

:THIRTY3_154
remove_blip $ASUKA
terminate_this_script 

:THIRTY4
script_name 'THIRTY4'
wait 10000
add_pager_message 'MXOX_1' 140 10 2
add_sprite_blip_for_contact_point $XOX_PICKUP1 = create_icon_marker_and_sphere 0 at -484.125 -61.8125 3.8125
change_blip_scale $XOX_PICKUP1 size 3
change_blip_colour $XOX_PICKUP1 color_to 5
$THIRTY4TIME = 0

:THIRTY4_69
wait 10
$THIRTY4TIME += 10
if 
  $THIRTY4TIME == 20000
goto_if_false @THIRTY4_142
add_pager_message 'MXOX_3' 140 10 2
add_sprite_blip_for_contact_point $XOX_PICKUP2 = create_icon_marker_and_sphere 3 at -1116.125 -598.8125 11.0625
$THIRTY4TIME = 40000

:THIRTY4_142
if 
  $4534 == 0
goto_if_false @THIRTY4_280
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY4_69
if or
  locate_player_on_foot_3d $PLAYER_CHAR 0 -483.875 -61.875 3.8125 radius 1.0 1.0 2.0
  locate_player_on_foot_3d $PLAYER_CHAR 0 -1116.125 -598.8125 11.0625 radius 1.0 1.0 2.0
goto_if_false @THIRTY4_69
if 
  $ONMISSION == 0
goto_if_false @THIRTY4_69
change_blip_display $XOX_PICKUP1 display 0
change_blip_display $XOX_PICKUP2 display 0
load_and_launch_mission_internal 33 // Triads And Tribulations
goto @THIRTY4_69

:THIRTY4_280
remove_blip $XOX_PICKUP1
remove_blip $XOX_PICKUP2
terminate_this_script 

:THIRTY5
script_name 'THIRTY5'
wait 10000
add_pager_message 'MC4_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $CSK = create_icon_marker_and_sphere 3 at -1116.125 -598.8125 11.0625
change_blip_display $CSK display 3

:THIRTY5_60
wait 100
if 
  $4535 == 0
goto_if_false @THIRTY5_170
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY5_60
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -1116.125 -598.8125 11.0625 radius 1.0 1.0 2.0
goto_if_false @THIRTY5_60
if 
  $ONMISSION == 0
goto_if_false @THIRTY5_60
change_blip_display $CSK display 0
load_and_launch_mission_internal 34 // Blow Fish
goto @THIRTY5_60

:THIRTY5_170
remove_blip $CSK
terminate_this_script 

:THIRTY6
script_name 'THIRTY6'
wait 10000
print_now 'MC5_1' time 6000 1
wait 6000
add_sprite_blip_for_contact_point $CSK = create_icon_marker_and_sphere 3 at -1116.125 -598.8125 10.0625
change_blip_display $CSK display 3

:THIRTY6_58
wait 100
if 
  $4536 == 0
goto_if_false @THIRTY6_168
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY6_58
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -1116.125 -598.8125 11.0625 radius 1.0 1.0 2.0
goto_if_false @THIRTY6_58
if 
  $ONMISSION == 0
goto_if_false @THIRTY6_58
change_blip_display $CSK display 0
load_and_launch_mission_internal 35 // Chaperone
goto @THIRTY6_58

:THIRTY6_168
remove_blip $CSK
terminate_this_script 

:THIRTY7
script_name 'THIRTY7'
wait 10000
add_pager_message 'M86_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $8BALL = create_icon_marker_and_sphere 7 at 1319.375 -453.5 53.5
change_blip_display $8BALL display 3

:THIRTY7_60
wait 100
if 
  $4537 == 0
goto_if_false @THIRTY7_170
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY7_60
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1319.375 -453.5 54.5 radius 1.0 1.0 2.0
goto_if_false @THIRTY7_60
if 
  $ONMISSION == 0
goto_if_false @THIRTY7_60
change_blip_display $8BALL display 0
load_and_launch_mission_internal 36 // Cutting The Grass
goto @THIRTY7_60

:THIRTY7_170
remove_blip $8BALL
terminate_this_script 

:THIRTY8
script_name 'THIRTY8'
wait 10000
add_pager_message 'MC6_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $CSK = create_icon_marker_and_sphere 3 at -460.0625 214.5625 67.8125
goto @THIRTY8_75
print_now 'NCAR' time 3000 1

:THIRTY8_75
wait 100
if 
  $4538 == 0
goto_if_false @THIRTY8_187
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY8_75
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -460.0625 214.5625 68.8125 radius 1.0 1.0 2.0
goto_if_false @THIRTY8_75
if 
  $ONMISSION == 0
goto_if_false @THIRTY8_75
clear_prints 
change_blip_display $CSK display 0
load_and_launch_mission_internal 37 // Bomb Da Base: Act I
goto @THIRTY8_75

:THIRTY8_187
remove_blip $CSK
terminate_this_script 

:THIRTY9
script_name 'THIRTY9'
wait 10000
print_now 'MK5_1' time 5000 1
wait 6000
add_sprite_blip_for_contact_point $KEN = create_icon_marker_and_sphere 11 at -455.5 -85.625 3.8125
change_blip_display $KEN display 3

:THIRTY9_58
wait 100
if 
  $4539 == 0
goto_if_false @THIRTY9_168
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @THIRTY9_58
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -455.5 -85.625 3.8125 radius 1.0 1.0 2.0
goto_if_false @THIRTY9_58
if 
  $ONMISSION == 0
goto_if_false @THIRTY9_58
change_blip_display $KEN display 0
load_and_launch_mission_internal 38 // Bomb Da Base: Act II
goto @THIRTY9_58

:THIRTY9_168
remove_blip $KEN
terminate_this_script 

:FORTY
script_name 'FORTY'
wait 10000
add_pager_message 'MA8_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $ASUKA = create_icon_marker_and_sphere 1 at -652.125 -50.1875 18.8125
change_blip_display $ASUKA display 3

:FORTY_60
wait 100
if 
  $4540 == 0
goto_if_false @FORTY_170
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FORTY_60
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -652.125 -50.1875 18.8125 radius 1.0 1.0 2.0
goto_if_false @FORTY_60
if 
  $ONMISSION == 0
goto_if_false @FORTY_60
change_blip_display $ASUKA display 0
load_and_launch_mission_internal 39 // Last Requests
goto @FORTY_60

:FORTY_170
remove_blip $ASUKA
terminate_this_script 

:FORTY1
script_name 'FORTY1'

:FORTY1_10
wait 0
if 
  $MISSION44 == 1
goto_if_false @FORTY1_106
if 
  $4541 == 0
goto_if_false @FORTY1_123
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @FORTY1_10
if 
  $ONMISSION == 0
goto_if_false @FORTY1_10
if 
  not is_player_dead $PLAYER_CHAR
goto_if_false @FORTY1_10
load_and_launch_mission_internal 40 // Turismo
terminate_this_script 

:FORTY1_106
$4540 = 0
start_new_script @FORTY 
terminate_this_script 

:FORTY1_123
terminate_this_script 

:PRACE3
wait 0
script_name 'PRACE3'
wait 30000
if and
  $MSRACE_PASS == 1
  $ONMISSION == 0
goto_if_false @PRACE3
add_pager_message 'MHR_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $RACE3 = create_icon_marker_and_sphere 15 at -833.25 300.375 39.25
change_blip_display $RACE3 display 2

:PRACE3_89
wait 0
if 
  $MHRACE_PASS == 0
goto_if_false @PRACE3_210
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @PRACE3_89
if 
  $ONMISSION == 0
goto_if_false @PRACE3_89
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 -833.25 300.375 39.25 radius 1.0 1.0 2.0
goto_if_false @PRACE3_89
if 
  $ONMISSION == 0
goto_if_false @PRACE3_89
load_and_launch_mission_internal 45 // Under Surveillance
goto @PRACE3_89

:PRACE3_210
terminate_this_script 

:PRACE2
script_name 'PRACE2'
wait 30000
if and
  $MPRACE_PASS == 1
  $ONMISSION == 0
goto_if_false @PRACE2
add_pager_message 'MSR_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $RACE2 = create_icon_marker_and_sphere 15 at 167.3125 -1260.625 31.25
change_blip_display $RACE2 display 2

:PRACE2_85
wait 0
if 
  $MSRACE_PASS == 0
goto_if_false @PRACE2_206
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @PRACE2_85
if 
  $ONMISSION == 0
goto_if_false @PRACE2_85
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 167.3125 -1260.625 31.25 radius 1.0 1.0 2.0
goto_if_false @PRACE2_85
if 
  $ONMISSION == 0
goto_if_false @PRACE2_85
load_and_launch_mission_internal 46 // Paparazzi Purge
goto @PRACE2_85

:PRACE2_206
terminate_this_script 

:PRACE1
script_name 'PRACE1'
wait 30000
if 
  $ONMISSION == 0
goto_if_false @PRACE1
add_pager_message 'MPR_1' 140 10 2
wait 6000
add_sprite_blip_for_contact_point $RACE1 = create_icon_marker_and_sphere 15 at 1191.063 -869.625 14.125
change_blip_display $RACE1 display 2

:PRACE1_78
wait 0
if 
  $MPRACE_PASS == 0
goto_if_false @PRACE1_199
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @PRACE1_78
if 
  $ONMISSION == 0
goto_if_false @PRACE1_78
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 1191.063 -869.625 15.125 radius 1.0 1.0 2.0
goto_if_false @PRACE1_78
if 
  $ONMISSION == 0
goto_if_false @PRACE1_78
load_and_launch_mission_internal 47 // Payday For Ray
goto @PRACE1_78

:PRACE1_199
remove_blip $RACE1
terminate_this_script 

:LRACE
script_name 'LRACE'
wait 30000
if and
  $MPRACE_PASS == 1
  $MSRACE_PASS == 1
  $MHRACE_PASS == 1
  $ONMISSION == 0
goto_if_false @LRACE
add_pager_message 'MLR_1' 140 10 2
wait 6000

:LRACE_76
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @LRACE_76
if 
  $ONMISSION == 0
goto_if_false @LRACE_76
if and
  $INMLRACE_12_PASS == 1
  $INMLRACE_21_PASS == 1
  $INMLRACE_23_PASS == 1
  $INMLRACE_32_PASS == 1
goto_if_false @LRACE_160
goto @LRACE_475

:LRACE_160
if 
  $INMLRACE_12_PASS == 0
goto_if_false @LRACE_228
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 1191.063 -869.625 15.125 radius 1.0 1.0 2.0
goto_if_false @LRACE_228
$INMLRACE_12 = 1
goto @LRACE_432

:LRACE_228
if 
  $INMLRACE_21_PASS == 0
goto_if_false @LRACE_296
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 167.3125 -1260.625 31.25 radius 1.0 1.0 2.0
goto_if_false @LRACE_296
$INMLRACE_21 = 1
goto @LRACE_432

:LRACE_296
if 
  $INMLRACE_23_PASS == 0
goto_if_false @LRACE_364
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 169.8125 -1261.0 31.25 radius 1.0 1.0 2.0
goto_if_false @LRACE_364
$INMLRACE_23 = 1
goto @LRACE_432

:LRACE_364
if 
  $INMLRACE_32_PASS == 0
goto_if_false @LRACE_76
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 -833.25 300.375 39.25 radius 1.0 1.0 2.0
goto_if_false @LRACE_76
$INMLRACE_32 = 1
goto @LRACE_432

:LRACE_432
if 
  $ONMISSION == 0
goto_if_false @LRACE_76
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $LRACE display 0
load_and_launch_mission_internal 49 // Kanbu Bust-Out
goto @LRACE_76

:LRACE_475
terminate_this_script 

:LCRACE
script_name 'LCRACE'
wait 30000
if and
  $MLRACE_PASS == 1
  $ONMISSION == 0
goto_if_false @LCRACE
add_pager_message 'MLCR_1' 140 10 2
wait 6000

:LCRACE_62
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @LCRACE_62
if 
  $ONMISSION == 0
goto_if_false @LCRACE_62
if and
  $INMLCRACE_123_PASS == 1
  $INMLCRACE_321_PASS == 1
goto_if_false @LCRACE_132
goto @LCRACE_297

:LCRACE_132
if 
  $INMLCRACE_123_PASS == 0
goto_if_false @LCRACE_200
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 1191.063 -869.625 15.125 radius 1.0 1.0 2.0
goto_if_false @LCRACE_200
$INMLCRACE_123 = 1
goto @LCRACE_268

:LCRACE_200
if 
  $INMLCRACE_321_PASS == 0
goto_if_false @LCRACE_62
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 -837.125 304.0625 39.3125 radius 1.0 1.0 2.0
goto_if_false @LCRACE_62
$INMLCRACE_321 = 1
goto @LCRACE_268

:LCRACE_268
if 
  $ONMISSION == 0
goto_if_false @LCRACE_62
load_and_launch_mission_internal 50 // Grand Theft Auto
goto @LCRACE_62

:LCRACE_297
terminate_this_script 

:RACEMON
script_name 'RACEMON'

:RACEMON_10
wait 600000
create_pickup $RACE_MONEY = create_pickup #BRIEFCASE type 3 at 1286.063 -568.0 14.25

:RACEMON_35
wait 0
if 
  has_pickup_been_collected $RACE_MONEY
goto_if_false @RACEMON_35
add_score $PLAYER_CHAR money += 10000
goto @RACEMON_10

:GYMGAME
script_name 'GYMGAME'

:GYMGAME_10
wait 0
if and
  $MPRACE_PASS == 1
  $MSRACE_PASS == 1
  $MHRACE_PASS == 1
goto_if_false @GYMGAME_10
add_pager_message 'BALL_1' 140 10 2
add_sprite_blip_for_contact_point $GYM = create_icon_marker_and_sphere 12 at -18.625 -234.6875 29.8125
wait 6000
change_blip_display $GYM display 3

:GYMGAME_91
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @GYMGAME_91
if 
  $BALL_PASS == 0
goto_if_false @GYMGAME_194
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -18.625 -234.6875 29.8125 radius 1.0 1.0 2.0
goto_if_false @GYMGAME_91
if 
  $ONMISSION == 0
goto_if_false @GYMGAME_91
load_and_launch_mission_internal 48 // Two-Faced Tanner
goto @GYMGAME_91

:GYMGAME_194
remove_blip $GYM
terminate_this_script 

:NONAME_1
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_1_393
if 
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 106
goto_if_false @NONAME_1_366
if and
  $ONMISSION == 0
  $FLAG_PLAYER_ON_AMBULANCE_MISSION == 0
goto_if_false @NONAME_1_359
get_controller_mode $CURRENT_CONTROLS
if 
  $DISPLAYED_PARAMEDIC_HELP == 0
goto_if_false @NONAME_1_138
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_1_121
print_help 'ATUTOR'
goto @NONAME_1_131

:NONAME_1_121
print_help 'ATUTOR3'

:NONAME_1_131
$DISPLAYED_PARAMEDIC_HELP = 1

:NONAME_1_138
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_1_261
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_1_254

:NONAME_1_173
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_1_224
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_1_217
goto @NONAME_1

:NONAME_1_217
goto @NONAME_1_173

:NONAME_1_224
print_big 'AMBUL_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 41 // I Scream, You Scream
$DISPLAYED_PARAMEDIC_HELP = 1

:NONAME_1_254
goto @NONAME_1_359

:NONAME_1_261
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_1_359

:NONAME_1_278
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_1_329
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_1_322
goto @NONAME_1

:NONAME_1_322
goto @NONAME_1_278

:NONAME_1_329
print_big 'AMBUL_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 41 // I Scream, You Scream
$DISPLAYED_PARAMEDIC_HELP = 1

:NONAME_1_359
goto @NONAME_1_393

:NONAME_1_366
if 
  $DISPLAYED_PARAMEDIC_HELP == 1
goto_if_false @NONAME_1_393
clear_help 
$DISPLAYED_PARAMEDIC_HELP = 0

:NONAME_1_393
goto @NONAME_1

:NONAME_2
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_2_393
if 
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 97
goto_if_false @NONAME_2_366
if and
  $ONMISSION == 0
  $FLAG_PLAYER_ON_FIRE_MISSION == 0
goto_if_false @NONAME_2_359
get_controller_mode $CURRENT_CONTROLS
if 
  $FIRETRUCK_HELP_DISPLAYED == 0
goto_if_false @NONAME_2_138
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_2_121
print_help 'FTUTOR'
goto @NONAME_2_131

:NONAME_2_121
print_help 'FTUTOR2'

:NONAME_2_131
$FIRETRUCK_HELP_DISPLAYED = 1

:NONAME_2_138
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_2_261
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_2_254

:NONAME_2_173
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_2_224
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_2_217
goto @NONAME_2

:NONAME_2_217
goto @NONAME_2_173

:NONAME_2_224
print_big 'FIRE_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 42 // Trial By Fire
$FIRETRUCK_HELP_DISPLAYED = 1

:NONAME_2_254
goto @NONAME_2_359

:NONAME_2_261
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_2_359

:NONAME_2_278
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_2_329
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_2_322
goto @NONAME_2

:NONAME_2_322
goto @NONAME_2_278

:NONAME_2_329
print_big 'FIRE_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 42 // Trial By Fire
$FIRETRUCK_HELP_DISPLAYED = 1

:NONAME_2_359
goto @NONAME_2_393

:NONAME_2_366
if 
  $FIRETRUCK_HELP_DISPLAYED == 1
goto_if_false @NONAME_2_393
clear_help 
$FIRETRUCK_HELP_DISPLAYED = 0

:NONAME_2_393
goto @NONAME_2

:NONAME_3
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_3_414
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 117
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 122
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 107
goto_if_false @NONAME_3_387
if and
  $ONMISSION == 0
  $FLAG_PLAYER_ON_COP_MISSION == 0
goto_if_false @NONAME_3_380
get_controller_mode $CURRENT_CONTROLS
if 
  $VIGILANTE_HELP_DISPLAYED == 0
goto_if_false @NONAME_3_159
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_3_142
print_help 'CTUTOR'
goto @NONAME_3_152

:NONAME_3_142
print_help 'CTUTOR2'

:NONAME_3_152
$VIGILANTE_HELP_DISPLAYED = 1

:NONAME_3_159
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_3_282
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_3_275

:NONAME_3_194
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_3_245
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_3_238
goto @NONAME_3

:NONAME_3_238
goto @NONAME_3_194

:NONAME_3_245
print_big 'COP_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 43 // Big'N'Veiny
$VIGILANTE_HELP_DISPLAYED = 1

:NONAME_3_275
goto @NONAME_3_380

:NONAME_3_282
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_3_380

:NONAME_3_299
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_3_350
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_3_343
goto @NONAME_3

:NONAME_3_343
goto @NONAME_3_299

:NONAME_3_350
print_big 'COP_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 43 // Big'N'Veiny
$VIGILANTE_HELP_DISPLAYED = 1

:NONAME_3_380
goto @NONAME_3_414

:NONAME_3_387
if 
  $VIGILANTE_HELP_DISPLAYED == 1
goto_if_false @NONAME_3_414
clear_help 
$VIGILANTE_HELP_DISPLAYED = 0

:NONAME_3_414
goto @NONAME_3

:NONAME_4
wait 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_4_391
if 
  is_player_in_taxi $PLAYER_CHAR
goto_if_false @NONAME_4_364
if and
  $ONMISSION == 0
  $FLAG_TAXI1_MISSION_LAUNCHED == 0
goto_if_false @NONAME_4_357
get_controller_mode $CURRENT_CONTROLS
if 
  $TAXI_HELP_DISPLAYED == 0
goto_if_false @NONAME_4_136
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_4_119
print_help 'TTUTOR'
goto @NONAME_4_129

:NONAME_4_119
print_help 'TTUTOR2'

:NONAME_4_129
$TAXI_HELP_DISPLAYED = 1

:NONAME_4_136
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @NONAME_4_259
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_4_252

:NONAME_4_171
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @NONAME_4_222
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_4_215
goto @NONAME_4

:NONAME_4_215
goto @NONAME_4_171

:NONAME_4_222
print_big 'TAXI_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 44 // Sayonara Salvatore
$FLAG_TAXI1_MISSION_LAUNCHED = 1

:NONAME_4_252
goto @NONAME_4_357

:NONAME_4_259
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_4_357

:NONAME_4_276
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @NONAME_4_327
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @NONAME_4_320
goto @NONAME_4

:NONAME_4_320
goto @NONAME_4_276

:NONAME_4_327
print_big 'TAXI_M' 4000 ms 5
wait 0
load_and_launch_mission_internal 44 // Sayonara Salvatore
$FLAG_TAXI1_MISSION_LAUNCHED = 1

:NONAME_4_357
goto @NONAME_4_391

:NONAME_4_364
if 
  $TAXI_HELP_DISPLAYED == 1
goto_if_false @NONAME_4_391
clear_help 
$TAXI_HELP_DISPLAYED = 0

:NONAME_4_391
goto @NONAME_4

:NONAME_5
wait 100
11@ = 0
$MISTY_DOOR1 = 0
$DOGGY_DOOR = 4

:NONAME_5_25
wait 0
if 
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 113
goto_if_false @NONAME_5_558
store_car_player_is_in_no_save 3@ = player $PLAYER_CHAR
if and
  is_car_stopped 3@
  is_icecream_jingle_on 3@
goto_if_false @NONAME_5_558
10@ = 0
if or
  is_icecream_jingle_on 3@
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 113
goto_if_false @NONAME_5
if 
  is_collision_in_memory 1
goto_if_false @NONAME_5_134
get_random_char_in_zone 1@ in_zone 'IND_ZON'

:NONAME_5_134
if 
  is_collision_in_memory 2
goto_if_false @NONAME_5_162
get_random_char_in_zone 1@ in_zone 'COM_ZON'

:NONAME_5_162
if 
  is_collision_in_memory 3
goto_if_false @NONAME_5_190
get_random_char_in_zone 1@ in_zone 'SUB_ZON'

:NONAME_5_190
if 
  1@ == -1
goto_if_false @NONAME_5_219
wait 0
goto @NONAME_5_548

:NONAME_5_219
wait 0
if 
  not is_char_dead 1@
goto_if_false @NONAME_5_548
add_blip_for_char 2@ = create_marker_above_actor 1@
set_char_obj_goto_char_on_foot 1@ follow_actor $PLAYER_ACTOR
clear_char_threat_search 1@
set_char_heed_threats 1@ heed_threats 0

:NONAME_5_267
wait 0
if and
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 113
  is_car_stopped 3@
  is_icecream_jingle_on 3@
goto_if_false @NONAME_5_548
if and
  is_char_stopped 1@
  locate_char_any_means_car_2d 1@ near_car 3@ radius 3.0 3.0 unknown 0
goto_if_false @NONAME_5_267
wait 100
set_char_wait_state 1@ anim 19 wait_state_time 10000

:NONAME_5_345
wait 0
10@ += 1
if and
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 113
  is_car_stopped 3@
  is_icecream_jingle_on 3@
goto_if_false @NONAME_5_548
if 
  not is_char_dead 1@
goto_if_false @NONAME_5_548
if 
  10@ >= 300
goto_if_false @NONAME_5_345
add_score $PLAYER_CHAR money += 35
11@ += 1
$MISTY_DOOR1 += 1
set_char_obj_flee_on_foot_till_safe 1@
if 
  11@ >= 50
goto_if_false @NONAME_5_470
goto @NONAME_5_565

:NONAME_5_470
if 
  $MISTY_DOOR1 == 1
goto_if_false @NONAME_5_497
generate_random_int_in_range $DOGGY_DOOR = random_int 3 5

:NONAME_5_497
if 
  is_int_var_equal_to_int_var $MISTY_DOOR1 == $DOGGY_DOOR
goto_if_false @NONAME_5_548
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @NONAME_5_548
alter_wanted_level $PLAYER_CHAR wanted_level_to 1
$MISTY_DOOR1 = 0

:NONAME_5_548
remove_blip 2@
mark_char_as_no_longer_needed 1@

:NONAME_5_558
goto @NONAME_5_25

:NONAME_5_565
remove_blip 2@
mark_char_as_no_longer_needed 1@
play_mission_passed_tune 1
print_big 'O_PASS' 5000 ms 1
terminate_this_script 

:PACKAGE
script_name 'PACKAGE'
wait 300
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND

:PACKAGE_20
if 
  10 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_55
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_20

:PACKAGE_55
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB1' 140 2 0
$FLAG_10_HIDDEN_PACKAGES = 1

:PACKAGE_90
if 
  20 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_125
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_90

:PACKAGE_125
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB2' 140 2 0
$FLAG_20_HIDDEN_PACKAGES = 1

:PACKAGE_160
if 
  30 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_195
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_160

:PACKAGE_195
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB5' 140 2 0
$FLAG_30_HIDDEN_PACKAGES = 1

:PACKAGE_230
if 
  40 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_265
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_230

:PACKAGE_265
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB4' 140 2 0
$FLAG_40_HIDDEN_PACKAGES = 1

:PACKAGE_300
if 
  50 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_335
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_300

:PACKAGE_335
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB3' 140 2 0
$FLAG_50_HIDDEN_PACKAGES = 1

:PACKAGE_370
if 
  60 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_405
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_370

:PACKAGE_405
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB6' 140 2 0
$FLAG_60_HIDDEN_PACKAGES = 1

:PACKAGE_440
if 
  70 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_475
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_440

:PACKAGE_475
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB7' 140 2 0
$FLAG_70_HIDDEN_PACKAGES = 1

:PACKAGE_510
if 
  80 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_545
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_510

:PACKAGE_545
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB8' 140 2 0
$FLAG_80_HIDDEN_PACKAGES = 1

:PACKAGE_580
if 
  90 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_615
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_580

:PACKAGE_615
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB9' 140 2 0
$FLAG_90_HIDDEN_PACKAGES = 1

:PACKAGE_650
if 
  100 > $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto_if_false @PACKAGE_685
wait 500
get_collectable1s_collected $VAR_NUM_HIDDEN_PACKAGES_FOUND
goto @PACKAGE_650

:PACKAGE_685
player_made_progress 1
$PROGRESS_100 += 1
add_pager_message 'PAGEB10' 140 2 0
$FLAG_100_HIDDEN_PACKAGES = 1
add_score $PLAYER_CHAR money += 1000000
terminate_this_script 
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_1
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_2
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_3
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_4
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_5
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_6
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_7
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_8
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_9
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_10
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_11
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_12
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_13
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_14
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_15
remove_pickup $PORTLAND_IE_GARAGE_PICKUP_16
return 
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_1
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_2
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_3
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_4
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_5
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_6
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_7
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_8
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_9
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_10
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_11
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_12
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_13
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_14
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_15
remove_pickup $SHORESIDE_IE_GARAGE_PICKUP_16
return 
remove_pickup $PICKUP_EV_CRANE_CAR1
remove_pickup $PICKUP_EV_CRANE_CAR2
remove_pickup $PICKUP_EV_CRANE_CAR3
remove_pickup $PICKUP_EV_CRANE_CAR4
remove_pickup $PICKUP_EV_CRANE_CAR7
remove_pickup $PICKUP_EV_CRANE_CAR6
remove_pickup $PICKUP_EV_CRANE_CAR5
return 

:PACKAGE_933
remove_pickup $HIDEOUT_COLT
remove_pickup $HIDEOUT_UZI
remove_pickup $HIDEOUT_GRENADE
remove_pickup $HIDEOUT_SHOTGUN
remove_pickup $HIDEOUT_ARMOUR
remove_pickup $HIDEOUT_MOLOTOV
remove_pickup $HIDEOUT_AK47
remove_pickup $HIDEOUT_SNIPER
remove_pickup $HIDEOUT_M16
remove_pickup $HIDEOUT_FLAME
remove_pickup $HIDEOUT_ROCKET
remove_pickup $HIDEOUT_BRIBE1
remove_pickup $HIDEOUT_BRIBE2
remove_pickup $HIDEOUT_BRIBE3
remove_pickup $HIDEOUT_BRIBE4
remove_pickup $HIDEOUT_BRIBE5
remove_pickup $HIDEOUT_BRIBE6
remove_pickup $HIDEOUT_HEALTH
remove_pickup $HIDEOUT_ADRENALINE
return 

:RAMPAGE
set_deatharrest_state 0
script_name 'RAMPAGE'
$RAMPAGE_REWARD = 1000
$RAMPAGE_REWARD1 = 1000
$FLAG_RAMPAGE_STATUS = 0
$VAR_NUM_RAMPAGES_COMPLETE = 0
$RAMPAGE_01_FLAG = 0
$RAMPAGE_02_FLAG = 0
$RAMPAGE_03_FLAG = 0
$RAMPAGE_04_FLAG = 0
$RAMPAGE_05_FLAG = 0
$RAMPAGE_06_FLAG = 0
$RAMPAGE_07_FLAG = 0
$RAMPAGE_08_FLAG = 0
$RAMPAGE_09_FLAG = 0
$RAMPAGE_10_FLAG = 0
$RAMPAGE_11_FLAG = 0
$RAMPAGE_12_FLAG = 0
$RAMPAGE_13_FLAG = 0
$RAMPAGE_14_FLAG = 0
$RAMPAGE_15_FLAG = 0
$RAMPAGE_16_FLAG = 0
$RAMPAGE_17_FLAG = 0
$RAMPAGE_18_FLAG = 0
$RAMPAGE_19_FLAG = 0
$RAMPAGE_20_FLAG = 0
$RAMPAGE_21_FLAG = 0
$FLAG_RAMPAGE1_LOCATION1 = 0
$FLAG_RAMPAGE2_LOCATION1 = 0
$FLAG_RAMPAGE3_LOCATION1 = 0
$FLAG_RAMPAGE4_LOCATION1 = 0
$FLAG_RAMPAGE5_LOCATION1 = 0
$FLAG_RAMPAGE6_LOCATION1 = 0
$FLAG_RAMPAGE7_LOCATION1 = 0
$FLAG_RAMPAGE8_LOCATION1 = 0
$FLAG_RAMPAGE9_LOCATION1 = 0
$FLAG_RAMPAGE10_LOCATION1 = 0
$FLAG_RAMPAGE11_LOCATION1 = 0
$FLAG_RAMPAGE12_LOCATION1 = 0
$FLAG_RAMPAGE13_LOCATION1 = 0
$FLAG_RAMPAGE14_LOCATION1 = 0
$FLAG_RAMPAGE15_LOCATION1 = 0
$FLAG_RAMPAGE16_LOCATION1 = 0
$FLAG_RAMPAGE17_LOCATION1 = 0
$FLAG_RAMPAGE18_LOCATION1 = 0
$FLAG_RAMPAGE19_LOCATION1 = 0
$FLAG_RAMPAGE20_LOCATION1 = 0
$FLAG_RAMPAGE21_LOCATION1 = 0
create_pickup $PICKUP_RAMPAGE1 = create_pickup #KILLFRENZY type 3 at 1075.5 -71.4375 7.5
create_pickup $PICKUP_RAMPAGE2 = create_pickup #KILLFRENZY type 3 at 1067.063 -296.625 11.1875
create_pickup $PICKUP_RAMPAGE3 = create_pickup #KILLFRENZY type 3 at 971.9375 -432.0625 14.9375
create_pickup $PICKUP_RAMPAGE4 = create_pickup #KILLFRENZY type 3 at 883.1875 -527.0625 16.5625
create_pickup $PICKUP_RAMPAGE5 = create_pickup #KILLFRENZY type 3 at 893.375 -892.8125 14.9375
create_pickup $PICKUP_RAMPAGE6 = create_pickup #KILLFRENZY type 3 at 1008.5 -733.1875 14.9375
create_pickup $PICKUP_RAMPAGE7 = create_pickup #KILLFRENZY type 3 at 1000.188 -855.8125 15.3125
create_pickup $PICKUP_RAMPAGE8 = create_pickup #KILLFRENZY type 3 at 106.1875 -1396.5 21.8125
create_pickup $PICKUP_RAMPAGE9 = create_pickup #KILLFRENZY type 3 at 69.625 -1573.5 28.25
create_pickup $PICKUP_RAMPAGE10 = create_pickup #KILLFRENZY type 3 at -163.875 -1406.375 26.125
create_pickup $PICKUP_RAMPAGE11 = create_pickup #KILLFRENZY type 3 at -57.5 -1070.75 26.25
create_pickup $PICKUP_RAMPAGE12 = create_pickup #KILLFRENZY type 3 at 212.375 -895.25 23.125
create_pickup $PICKUP_RAMPAGE13 = create_pickup #KILLFRENZY type 3 at 409.875 -154.8125 21.25
create_pickup $PICKUP_RAMPAGE14 = create_pickup #KILLFRENZY type 3 at -245.4375 -74.5625 6.0625
create_pickup $PICKUP_RAMPAGE15 = create_pickup #KILLFRENZY type 3 at -1556.188 -851.3125 11.0625
create_pickup $PICKUP_RAMPAGE16 = create_pickup #KILLFRENZY type 3 at -898.375 -370.9375 11.0625
create_pickup $PICKUP_RAMPAGE17 = create_pickup #KILLFRENZY type 3 at -1191.563 -248.9375 45.3125
create_pickup $PICKUP_RAMPAGE18 = create_pickup #KILLFRENZY type 3 at -1208.5 -8.75 53.1875
create_pickup $PICKUP_RAMPAGE19 = create_pickup #KILLFRENZY type 3 at -1124.25 138.9375 58.75
create_pickup $PICKUP_RAMPAGE20 = create_pickup #KILLFRENZY type 3 at -864.9375 380.75 40.875
create_pickup $PICKUP_RAMPAGE21 = create_pickup #KILLFRENZY type 3 at -872.25 265.0 41.3125
set_total_number_of_kill_frenzies 21
$VAR_RAMPAGE_AMOUNT1 = 15
$VAR_RAMPAGE_AMOUNT2 = 15
$VAR_RAMPAGE_AMOUNT3 = 10
$VAR_RAMPAGE_AMOUNT4 = 20
$VAR_RAMPAGE_AMOUNT5 = 10
$VAR_RAMPAGE_AMOUNT6 = 10
$VAR_RAMPAGE_AMOUNT7 = 20
$VAR_RAMPAGE_AMOUNT8 = 8
$VAR_RAMPAGE_AMOUNT9 = 8
$VAR_RAMPAGE_AMOUNT10 = 25
$VAR_RAMPAGE_AMOUNT11 = 20
$VAR_RAMPAGE_AMOUNT12 = 30
$VAR_RAMPAGE_AMOUNT13 = 20
$VAR_RAMPAGE_AMOUNT14 = 15
$VAR_RAMPAGE_AMOUNT15 = 15
$VAR_RAMPAGE_AMOUNT16 = 10
$VAR_RAMPAGE_AMOUNT17 = 25
$VAR_RAMPAGE_AMOUNT18 = 8
$VAR_RAMPAGE_AMOUNT19 = 10
$VAR_RAMPAGE_AMOUNT20 = 25
$VAR_RAMPAGE_AMOUNT20 = 15
$VAR_RAMPAGE_AMOUNT21 = 30

:RAMPAGE_874
wait 500
if 
  $RAMPAGE_01_FLAG == 0
goto_if_false @RAMPAGE_1198
if 
  has_pickup_been_collected $PICKUP_RAMPAGE1
goto_if_false @RAMPAGE_1198
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 5 120000 $VAR_RAMPAGE_AMOUNT1 14 15 -1 -1 0
request_model 14
request_model 15
force_random_ped_type 9
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_01' $VAR_RAMPAGE_AMOUNT1 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_1000
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_1034
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_1000

:RAMPAGE_1034
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_1066
$RAMPAGE_01_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_1066
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_1179
print_big 'RAMP_F' 5000 ms 5
remove_pickup $PICKUP_RAMPAGE1
if 
  $FLAG_RAMPAGE1_LOCATION1 == 0
goto_if_false @RAMPAGE_1154
create_pickup $PICKUP_RAMPAGE1 = create_pickup #KILLFRENZY type 3 at 1253.5 -394.875 30.25
$FLAG_RAMPAGE1_LOCATION1 = 1
goto @RAMPAGE_1179

:RAMPAGE_1154
create_pickup $PICKUP_RAMPAGE1 = create_pickup #KILLFRENZY type 3 at 1075.5 -71.4375 7.5
$FLAG_RAMPAGE1_LOCATION1 = 0

:RAMPAGE_1179
force_random_ped_type -1
mark_model_as_no_longer_needed 14
mark_model_as_no_longer_needed 15
$ONMISSION = 0

:RAMPAGE_1198
if 
  $RAMPAGE_02_FLAG == 0
goto_if_false @RAMPAGE_1517
if 
  has_pickup_been_collected $PICKUP_RAMPAGE2
goto_if_false @RAMPAGE_1517
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 3 120000 $VAR_RAMPAGE_AMOUNT2 18 19 -1 -1 0
request_model 18
request_model 19
force_random_ped_type 11
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_02' $VAR_RAMPAGE_AMOUNT2 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_1319
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_1353
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_1319

:RAMPAGE_1353
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_1385
$RAMPAGE_02_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_1385
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_1498
print_big 'RAMP_F' 5000 ms 5
remove_pickup $PICKUP_RAMPAGE2
if 
  $FLAG_RAMPAGE2_LOCATION1 == 0
goto_if_false @RAMPAGE_1473
create_pickup $PICKUP_RAMPAGE2 = create_pickup #KILLFRENZY type 3 at 1148.0 -398.75 26.9375
$FLAG_RAMPAGE2_LOCATION1 = 1
goto @RAMPAGE_1498

:RAMPAGE_1473
create_pickup $PICKUP_RAMPAGE2 = create_pickup #KILLFRENZY type 3 at 1067.063 -296.625 11.1875
$FLAG_RAMPAGE2_LOCATION1 = 0

:RAMPAGE_1498
force_random_ped_type -1
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 19
$ONMISSION = 0

:RAMPAGE_1517
if 
  $RAMPAGE_03_FLAG == 0
goto_if_false @RAMPAGE_1823
if 
  has_pickup_been_collected $PICKUP_RAMPAGE3
goto_if_false @RAMPAGE_1823
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 17 120000 $VAR_RAMPAGE_AMOUNT3 10 -1 -1 -1 0
request_model 10
force_random_ped_type 7
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_03' $VAR_RAMPAGE_AMOUNT3 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_1634
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_1668
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_1634

:RAMPAGE_1668
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_1700
$RAMPAGE_03_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_1700
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_1808
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE3_LOCATION1 == 0
goto_if_false @RAMPAGE_1783
create_pickup $PICKUP_RAMPAGE3 = create_pickup #KILLFRENZY type 3 at 1066.688 28.625 14.9375
$FLAG_RAMPAGE3_LOCATION1 = 1
goto @RAMPAGE_1808

:RAMPAGE_1783
create_pickup $PICKUP_RAMPAGE3 = create_pickup #KILLFRENZY type 3 at 971.9375 -432.0625 14.9375
$FLAG_RAMPAGE3_LOCATION1 = 0

:RAMPAGE_1808
force_random_ped_type -1
mark_model_as_no_longer_needed 10
$ONMISSION = 0

:RAMPAGE_1823
if 
  $RAMPAGE_04_FLAG == 0
goto_if_false @RAMPAGE_2137
if 
  has_pickup_been_collected $PICKUP_RAMPAGE4
goto_if_false @RAMPAGE_2137
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 9 120000 $VAR_RAMPAGE_AMOUNT4 12 13 -1 -1 0
request_model 12
request_model 13
force_random_ped_type 8
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_04' $VAR_RAMPAGE_AMOUNT4 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_1944
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_1978
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_1944

:RAMPAGE_1978
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_2010
$RAMPAGE_04_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_2010
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_2118
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE4_LOCATION1 == 0
goto_if_false @RAMPAGE_2093
create_pickup $PICKUP_RAMPAGE4 = create_pickup #KILLFRENZY type 3 at 1167.0 -547.25 21.5625
$FLAG_RAMPAGE4_LOCATION1 = 1
goto @RAMPAGE_2118

:RAMPAGE_2093
create_pickup $PICKUP_RAMPAGE4 = create_pickup #KILLFRENZY type 3 at 883.1875 -527.0625 16.5625
$FLAG_RAMPAGE4_LOCATION1 = 0

:RAMPAGE_2118
force_random_ped_type -1
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 13
$ONMISSION = 0

:RAMPAGE_2137
if 
  $RAMPAGE_05_FLAG == 0
goto_if_false @RAMPAGE_2451
if 
  has_pickup_been_collected $PICKUP_RAMPAGE5
goto_if_false @RAMPAGE_2451
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 1 120000 $VAR_RAMPAGE_AMOUNT5 12 13 -1 -1 0
request_model 12
request_model 13
force_random_ped_type 8
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_05' $VAR_RAMPAGE_AMOUNT5 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_2258
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_2292
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_2258

:RAMPAGE_2292
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_2324
$RAMPAGE_05_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_2324
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_2432
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE5_LOCATION1 == 0
goto_if_false @RAMPAGE_2407
create_pickup $PICKUP_RAMPAGE5 = create_pickup #KILLFRENZY type 3 at 1108.813 -880.75 14.9375
$FLAG_RAMPAGE5_LOCATION1 = 1
goto @RAMPAGE_2432

:RAMPAGE_2407
create_pickup $PICKUP_RAMPAGE5 = create_pickup #KILLFRENZY type 3 at 893.375 -892.8125 14.9375
$FLAG_RAMPAGE5_LOCATION1 = 0

:RAMPAGE_2432
force_random_ped_type -1
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 13
$ONMISSION = 0

:RAMPAGE_2451
if 
  $RAMPAGE_06_FLAG == 0
goto_if_false @RAMPAGE_2765
if 
  has_pickup_been_collected $PICKUP_RAMPAGE6
goto_if_false @RAMPAGE_2765
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 10 120000 $VAR_RAMPAGE_AMOUNT6 22 23 -1 -1 0
request_model 22
request_model 23
force_random_ped_type 13
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_06' $VAR_RAMPAGE_AMOUNT6 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_2572
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_2606
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_2572

:RAMPAGE_2606
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_2638
$RAMPAGE_06_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_2638
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_2746
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE6_LOCATION1 == 0
goto_if_false @RAMPAGE_2721
create_pickup $PICKUP_RAMPAGE6 = create_pickup #KILLFRENZY type 3 at 1212.75 -1078.75 13.6875
$FLAG_RAMPAGE6_LOCATION1 = 1
goto @RAMPAGE_2746

:RAMPAGE_2721
create_pickup $PICKUP_RAMPAGE6 = create_pickup #KILLFRENZY type 3 at 1008.5 -733.1875 14.9375
$FLAG_RAMPAGE6_LOCATION1 = 0

:RAMPAGE_2746
force_random_ped_type -1
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
$ONMISSION = 0

:RAMPAGE_2765
if 
  $RAMPAGE_07_FLAG == 0
goto_if_false @RAMPAGE_3079
if 
  has_pickup_been_collected $PICKUP_RAMPAGE7
goto_if_false @RAMPAGE_3079
$ONMISSION = 1
request_model 22
request_model 23
force_random_ped_type 13
start_kill_frenzy 'PAGE_00' 4 120000 $VAR_RAMPAGE_AMOUNT7 22 23 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_07' $VAR_RAMPAGE_AMOUNT7 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_2886
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_2920
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_2886

:RAMPAGE_2920
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_2952
$RAMPAGE_07_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_2952
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_3060
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE7_LOCATION1 == 0
goto_if_false @RAMPAGE_3035
create_pickup $PICKUP_RAMPAGE7 = create_pickup #KILLFRENZY type 3 at 1179.5 30.625 -0.125
$FLAG_RAMPAGE7_LOCATION1 = 1
goto @RAMPAGE_3060

:RAMPAGE_3035
create_pickup $PICKUP_RAMPAGE7 = create_pickup #KILLFRENZY type 3 at 1000.188 -855.8125 15.3125
$FLAG_RAMPAGE7_LOCATION1 = 0

:RAMPAGE_3060
force_random_ped_type -1
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
$ONMISSION = 0

:RAMPAGE_3079
if 
  $RAMPAGE_08_FLAG == 0
goto_if_false @RAMPAGE_3369
if 
  has_pickup_been_collected $PICKUP_RAMPAGE8
goto_if_false @RAMPAGE_3369
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 11 120000 $VAR_RAMPAGE_AMOUNT8 -2 -1 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_08' $VAR_RAMPAGE_AMOUNT8 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_3188
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_3222
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_3188

:RAMPAGE_3222
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_3254
$RAMPAGE_08_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_3254
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_3362
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE8_LOCATION1 == 0
goto_if_false @RAMPAGE_3337
create_pickup $PICKUP_RAMPAGE8 = create_pickup #KILLFRENZY type 3 at 179.4375 -290.5 16.4375
$FLAG_RAMPAGE8_LOCATION1 = 1
goto @RAMPAGE_3362

:RAMPAGE_3337
create_pickup $PICKUP_RAMPAGE8 = create_pickup #KILLFRENZY type 3 at 106.1875 -1396.5 21.8125
$FLAG_RAMPAGE8_LOCATION1 = 0

:RAMPAGE_3362
$ONMISSION = 0

:RAMPAGE_3369
if 
  $RAMPAGE_09_FLAG == 0
goto_if_false @RAMPAGE_3659
if 
  has_pickup_been_collected $PICKUP_RAMPAGE9
goto_if_false @RAMPAGE_3659
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 4 120000 $VAR_RAMPAGE_AMOUNT9 -2 -1 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_09' $VAR_RAMPAGE_AMOUNT9 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_3478
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_3512
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_3478

:RAMPAGE_3512
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_3544
$RAMPAGE_09_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_3544
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_3652
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE9_LOCATION1 == 0
goto_if_false @RAMPAGE_3627
create_pickup $PICKUP_RAMPAGE9 = create_pickup #KILLFRENZY type 3 at 111.9375 -1226.375 26.125
$FLAG_RAMPAGE9_LOCATION1 = 1
goto @RAMPAGE_3652

:RAMPAGE_3627
create_pickup $PICKUP_RAMPAGE9 = create_pickup #KILLFRENZY type 3 at 69.625 -1573.5 28.25
$FLAG_RAMPAGE9_LOCATION1 = 0

:RAMPAGE_3652
$ONMISSION = 0

:RAMPAGE_3659
if 
  $RAMPAGE_10_FLAG == 0
goto_if_false @RAMPAGE_3973
if 
  has_pickup_been_collected $PICKUP_RAMPAGE10
goto_if_false @RAMPAGE_3973
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 8 120000 $VAR_RAMPAGE_AMOUNT10 16 17 -1 -1 0
request_model 16
request_model 17
force_random_ped_type 10
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_10' $VAR_RAMPAGE_AMOUNT10 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_3780
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_3814
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_3780

:RAMPAGE_3814
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_3846
$RAMPAGE_10_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_3846
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_3954
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE10_LOCATION1 == 0
goto_if_false @RAMPAGE_3929
create_pickup $PICKUP_RAMPAGE10 = create_pickup #KILLFRENZY type 3 at 176.875 -78.3125 20.125
$FLAG_RAMPAGE10_LOCATION1 = 1
goto @RAMPAGE_3954

:RAMPAGE_3929
create_pickup $PICKUP_RAMPAGE10 = create_pickup #KILLFRENZY type 3 at -163.875 -1406.375 26.125
$FLAG_RAMPAGE10_LOCATION1 = 0

:RAMPAGE_3954
$ONMISSION = 0
force_random_ped_type -1
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 17

:RAMPAGE_3973
if 
  $RAMPAGE_11_FLAG == 0
goto_if_false @RAMPAGE_4287
if 
  has_pickup_been_collected $PICKUP_RAMPAGE11
goto_if_false @RAMPAGE_4287
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 11 120000 $VAR_RAMPAGE_AMOUNT11 16 17 -1 -1 0
request_model 16
request_model 17
force_random_ped_type 10
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_11' $VAR_RAMPAGE_AMOUNT11 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_4094
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_4128
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_4094

:RAMPAGE_4128
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_4160
$RAMPAGE_11_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_4160
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_4268
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE11_LOCATION1 == 0
goto_if_false @RAMPAGE_4243
create_pickup $PICKUP_RAMPAGE11 = create_pickup #KILLFRENZY type 3 at 350.1875 -1329.0 27.625
$FLAG_RAMPAGE11_LOCATION1 = 1
goto @RAMPAGE_4268

:RAMPAGE_4243
create_pickup $PICKUP_RAMPAGE11 = create_pickup #KILLFRENZY type 3 at -57.5 -1070.75 26.25
$FLAG_RAMPAGE11_LOCATION1 = 0

:RAMPAGE_4268
force_random_ped_type -1
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 17
$ONMISSION = 0

:RAMPAGE_4287
if 
  $RAMPAGE_12_FLAG == 0
goto_if_false @RAMPAGE_4601
if 
  has_pickup_been_collected $PICKUP_RAMPAGE12
goto_if_false @RAMPAGE_4601
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 6 120000 $VAR_RAMPAGE_AMOUNT12 18 19 -1 -1 0
request_model 18
request_model 19
force_random_ped_type 11
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_12' $VAR_RAMPAGE_AMOUNT12 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_4408
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_4442
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_4408

:RAMPAGE_4442
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_4474
$RAMPAGE_12_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_4474
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_4582
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE12_LOCATION1 == 0
goto_if_false @RAMPAGE_4557
create_pickup $PICKUP_RAMPAGE12 = create_pickup #KILLFRENZY type 3 at 379.0 -1489.0 20.375
$FLAG_RAMPAGE12_LOCATION1 = 1
goto @RAMPAGE_4582

:RAMPAGE_4557
create_pickup $PICKUP_RAMPAGE12 = create_pickup #KILLFRENZY type 3 at 212.375 -895.25 23.125
$FLAG_RAMPAGE12_LOCATION1 = 0

:RAMPAGE_4582
force_random_ped_type -1
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 19
$ONMISSION = 0

:RAMPAGE_4601
if 
  $RAMPAGE_13_FLAG == 0
goto_if_false @RAMPAGE_4907
if 
  has_pickup_been_collected $PICKUP_RAMPAGE13
goto_if_false @RAMPAGE_4907
$ONMISSION = 1
start_kill_frenzy_headshot 'PAGE_00' 6 120000 $VAR_RAMPAGE_AMOUNT13 11 -1 -1 -1 0
request_model 11
force_random_ped_type 7
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_13' $VAR_RAMPAGE_AMOUNT13 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_4718
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_4752
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_4718

:RAMPAGE_4752
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_4784
$RAMPAGE_13_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_4784
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_4892
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE13_LOCATION1 == 0
goto_if_false @RAMPAGE_4867
create_pickup $PICKUP_RAMPAGE13 = create_pickup #KILLFRENZY type 3 at 476.25 -1460.5 44.3125
$FLAG_RAMPAGE13_LOCATION1 = 1
goto @RAMPAGE_4892

:RAMPAGE_4867
create_pickup $PICKUP_RAMPAGE13 = create_pickup #KILLFRENZY type 3 at 409.875 -154.8125 21.25
$FLAG_RAMPAGE13_LOCATION1 = 0

:RAMPAGE_4892
force_random_ped_type -1
mark_model_as_no_longer_needed 11
$ONMISSION = 0

:RAMPAGE_4907
if 
  $RAMPAGE_14_FLAG == 0
goto_if_false @RAMPAGE_5221
if 
  has_pickup_been_collected $PICKUP_RAMPAGE14
goto_if_false @RAMPAGE_5221
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 19 120000 $VAR_RAMPAGE_AMOUNT14 20 21 -1 -1 0
request_model 20
request_model 21
force_random_ped_type 12
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_14' $VAR_RAMPAGE_AMOUNT14 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_5028
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_5062
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_5028

:RAMPAGE_5062
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_5094
$RAMPAGE_14_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_5094
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_5202
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE14_LOCATION1 == 0
goto_if_false @RAMPAGE_5177
create_pickup $PICKUP_RAMPAGE14 = create_pickup #KILLFRENZY type 3 at 198.125 -546.8125 28.1875
$FLAG_RAMPAGE14_LOCATION1 = 1
goto @RAMPAGE_5202

:RAMPAGE_5177
create_pickup $PICKUP_RAMPAGE14 = create_pickup #KILLFRENZY type 3 at -245.4375 -74.5625 6.0625
$FLAG_RAMPAGE14_LOCATION1 = 0

:RAMPAGE_5202
force_random_ped_type -1
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
$ONMISSION = 0

:RAMPAGE_5221
if 
  $RAMPAGE_15_FLAG == 0
goto_if_false @RAMPAGE_5511
if 
  has_pickup_been_collected $PICKUP_RAMPAGE15
goto_if_false @RAMPAGE_5511
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 19 120000 $VAR_RAMPAGE_AMOUNT18 -2 -1 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_18' $VAR_RAMPAGE_AMOUNT18 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_5330
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_5364
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_5330

:RAMPAGE_5364
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_5396
$RAMPAGE_15_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_5396
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_5504
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE15_LOCATION1 == 0
goto_if_false @RAMPAGE_5479
create_pickup $PICKUP_RAMPAGE15 = create_pickup #KILLFRENZY type 3 at -1292.938 -10.875 58.6875
$FLAG_RAMPAGE15_LOCATION1 = 1
goto @RAMPAGE_5504

:RAMPAGE_5479
create_pickup $PICKUP_RAMPAGE15 = create_pickup #KILLFRENZY type 3 at -1556.188 -851.3125 11.0625
$FLAG_RAMPAGE15_LOCATION1 = 0

:RAMPAGE_5504
$ONMISSION = 0

:RAMPAGE_5511
if 
  $RAMPAGE_16_FLAG == 0
goto_if_false @RAMPAGE_5801
if 
  has_pickup_been_collected $PICKUP_RAMPAGE16
goto_if_false @RAMPAGE_5801
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 6 120000 $VAR_RAMPAGE_AMOUNT16 -2 -1 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_16' $VAR_RAMPAGE_AMOUNT16 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_5620
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_5654
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_5620

:RAMPAGE_5654
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_5686
$RAMPAGE_16_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_5686
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_5794
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE16_LOCATION1 == 0
goto_if_false @RAMPAGE_5769
create_pickup $PICKUP_RAMPAGE16 = create_pickup #KILLFRENZY type 3 at -945.9375 -9.375 25.9375
$FLAG_RAMPAGE16_LOCATION1 = 1
goto @RAMPAGE_5794

:RAMPAGE_5769
create_pickup $PICKUP_RAMPAGE16 = create_pickup #KILLFRENZY type 3 at -898.375 -370.9375 11.0625
$FLAG_RAMPAGE16_LOCATION1 = 0

:RAMPAGE_5794
$ONMISSION = 0

:RAMPAGE_5801
if 
  $RAMPAGE_17_FLAG == 0
goto_if_false @RAMPAGE_6115
if 
  has_pickup_been_collected $PICKUP_RAMPAGE17
goto_if_false @RAMPAGE_6115
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 2 120000 $VAR_RAMPAGE_AMOUNT17 20 21 -1 -1 0
request_model 20
request_model 21
force_random_ped_type 12
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_17' $VAR_RAMPAGE_AMOUNT17 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_5922
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_5956
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_5922

:RAMPAGE_5956
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_5988
$RAMPAGE_17_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_5988
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_6096
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE17_LOCATION1 == 0
goto_if_false @RAMPAGE_6071
create_pickup $PICKUP_RAMPAGE17 = create_pickup #KILLFRENZY type 3 at -1061.563 54.75 48.9375
$FLAG_RAMPAGE17_LOCATION1 = 1
goto @RAMPAGE_6096

:RAMPAGE_6071
create_pickup $PICKUP_RAMPAGE17 = create_pickup #KILLFRENZY type 3 at -1191.563 -248.9375 45.3125
$FLAG_RAMPAGE17_LOCATION1 = 0

:RAMPAGE_6096
force_random_ped_type -1
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
$ONMISSION = 0

:RAMPAGE_6115
if 
  $RAMPAGE_18_FLAG == 0
goto_if_false @RAMPAGE_6429
if 
  has_pickup_been_collected $PICKUP_RAMPAGE18
goto_if_false @RAMPAGE_6429
$ONMISSION = 1
start_kill_frenzy_headshot 'PAGE_00' 7 120000 $VAR_RAMPAGE_AMOUNT15 22 23 -1 -1 0
request_model 22
request_model 23
force_random_ped_type 13
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_15' $VAR_RAMPAGE_AMOUNT15 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_6236
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_6270
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_6236

:RAMPAGE_6270
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_6302
$RAMPAGE_18_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_6302
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_6410
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE18_LOCATION1 == 0
goto_if_false @RAMPAGE_6385
create_pickup $PICKUP_RAMPAGE18 = create_pickup #KILLFRENZY type 3 at -709.3125 181.0 28.6875
$FLAG_RAMPAGE18_LOCATION1 = 1
goto @RAMPAGE_6410

:RAMPAGE_6385
create_pickup $PICKUP_RAMPAGE18 = create_pickup #KILLFRENZY type 3 at -1208.5 -8.75 53.1875
$FLAG_RAMPAGE18_LOCATION1 = 0

:RAMPAGE_6410
force_random_ped_type -1
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
$ONMISSION = 0

:RAMPAGE_6429
if 
  $RAMPAGE_19_FLAG == 0
goto_if_false @RAMPAGE_6719
if 
  has_pickup_been_collected $PICKUP_RAMPAGE19
goto_if_false @RAMPAGE_6719
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 8 120000 $VAR_RAMPAGE_AMOUNT19 -2 -1 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_19' $VAR_RAMPAGE_AMOUNT19 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_6538
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_6572
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_6538

:RAMPAGE_6572
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_6604
$RAMPAGE_19_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_6604
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_6712
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE19_LOCATION1 == 0
goto_if_false @RAMPAGE_6687
create_pickup $PICKUP_RAMPAGE19 = create_pickup #KILLFRENZY type 3 at -230.8125 324.8125 3.4375
$FLAG_RAMPAGE19_LOCATION1 = 1
goto @RAMPAGE_6712

:RAMPAGE_6687
create_pickup $PICKUP_RAMPAGE19 = create_pickup #KILLFRENZY type 3 at -1124.25 138.9375 58.75
$FLAG_RAMPAGE19_LOCATION1 = 0

:RAMPAGE_6712
$ONMISSION = 0

:RAMPAGE_6719
if 
  $RAMPAGE_20_FLAG == 0
goto_if_false @RAMPAGE_7033
if 
  has_pickup_been_collected $PICKUP_RAMPAGE20
goto_if_false @RAMPAGE_7033
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 9 120000 $VAR_RAMPAGE_AMOUNT20 20 21 -1 -1 0
request_model 20
request_model 21
force_random_ped_type 12
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_20' $VAR_RAMPAGE_AMOUNT20 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_6840
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_6874
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_6840

:RAMPAGE_6874
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_6906
$RAMPAGE_20_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_6906
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_7014
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE20_LOCATION1 == 0
goto_if_false @RAMPAGE_6989
create_pickup $PICKUP_RAMPAGE20 = create_pickup #KILLFRENZY type 3 at -681.0 -743.0625 18.875
$FLAG_RAMPAGE20_LOCATION1 = 1
goto @RAMPAGE_7014

:RAMPAGE_6989
create_pickup $PICKUP_RAMPAGE20 = create_pickup #KILLFRENZY type 3 at -864.9375 380.75 40.875
$FLAG_RAMPAGE20_LOCATION1 = 0

:RAMPAGE_7014
force_random_ped_type -1
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
$ONMISSION = 0

:RAMPAGE_7033
if 
  $RAMPAGE_21_FLAG == 0
goto_if_false @RAMPAGE_7323
if 
  has_pickup_been_collected $PICKUP_RAMPAGE21
goto_if_false @RAMPAGE_7323
$ONMISSION = 1
start_kill_frenzy 'PAGE_00' 17 120000 $VAR_RAMPAGE_AMOUNT21 -1 -1 -1 -1 0
print_big 'RAMPAGE' 5000 ms 5
print_with_number_big 'PAGE_21' $VAR_RAMPAGE_AMOUNT21 6000 ms 6
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS

:RAMPAGE_7142
if 
  $FLAG_RAMPAGE_STATUS == 1
goto_if_false @RAMPAGE_7176
wait 0
read_kill_frenzy_status $FLAG_RAMPAGE_STATUS
goto @RAMPAGE_7142

:RAMPAGE_7176
if 
  $FLAG_RAMPAGE_STATUS == 2
goto_if_false @RAMPAGE_7208
$RAMPAGE_21_FLAG = 1
RAMPAGE_7370()

:RAMPAGE_7208
if 
  $FLAG_RAMPAGE_STATUS == 3
goto_if_false @RAMPAGE_7316
print_big 'RAMP_F' 5000 ms 5
if 
  $FLAG_RAMPAGE21_LOCATION1 == 0
goto_if_false @RAMPAGE_7291
create_pickup $PICKUP_RAMPAGE21 = create_pickup #KILLFRENZY type 3 at -822.9375 -139.4375 33.8125
$FLAG_RAMPAGE21_LOCATION1 = 1
goto @RAMPAGE_7316

:RAMPAGE_7291
create_pickup $PICKUP_RAMPAGE21 = create_pickup #KILLFRENZY type 3 at -872.25 265.0 41.3125
$FLAG_RAMPAGE21_LOCATION1 = 0

:RAMPAGE_7316
$ONMISSION = 0

:RAMPAGE_7323
if 
  $VAR_NUM_RAMPAGES_COMPLETE == 21
goto_if_false @RAMPAGE_7348
goto @RAMPAGE_7355

:RAMPAGE_7348
goto @RAMPAGE_874

:RAMPAGE_7355
mission_has_finished 
player_made_progress 1
$PROGRESS_100 += 1
terminate_this_script 

:RAMPAGE_7370
$VAR_NUM_RAMPAGES_COMPLETE += 1
set_var_int_to_var_int $RAMPAGE_REWARD = $VAR_NUM_RAMPAGES_COMPLETE
$RAMPAGE_REWARD *= 5000
clear_wanted_level $PLAYER_CHAR
if 
  21 > $VAR_NUM_RAMPAGES_COMPLETE
goto_if_false @RAMPAGE_7464
add_score $PLAYER_CHAR money += $RAMPAGE_REWARD
print_big 'RAMP_P' 5000 ms 5
print_with_number_big 'REWARD' $RAMPAGE_REWARD1 6000 ms 6
goto @RAMPAGE_7509

:RAMPAGE_7464
add_score $PLAYER_CHAR money += 1000000
print_big 'RAMP_A' 5000 ms 5
print_with_number_big 'REWARD' 1000000 6000 ms 6

:RAMPAGE_7509
return 

:IMPORT
$FLAG_10_HIDDEN_PACKAGES = 0
$FLAG_20_HIDDEN_PACKAGES = 0
$FLAG_50_HIDDEN_PACKAGES = 0
$FLAG_40_HIDDEN_PACKAGES = 0
$FLAG_30_HIDDEN_PACKAGES = 0
$FLAG_60_HIDDEN_PACKAGES = 0
$FLAG_70_HIDDEN_PACKAGES = 0
$FLAG_80_HIDDEN_PACKAGES = 0
$FLAG_90_HIDDEN_PACKAGES = 0
$FLAG_100_HIDDEN_PACKAGES = 0
$ALL_FIRE_MISSIONS_DONE = 0
$PORTLAND_VIGILANTES_DONE = 0
$STAUNTON_VIGILANTES_DONE = 0
$SHORESIDE_VIGILANTES_DONE = 0
$PORTLAND_FIRE_MISSIONS = 0
$STAUNTON_FIRE_MISSIONS = 0
$SHORESIDE_FIRE_MISSIONS = 0
$PARAMEDIC_MISSIONS_DONE = 0
$NUM_PORTLAND_POLICE_BRIBES_AT_HIDEOUT = 0
$NUM_STAUNTON_POLICE_BRIBES_AT_HIDEOUT = 0
$NUM_SHORESIDE_POLICE_BRIBES_AT_HIDEOUT = 0
$AMBULANCE_PAGER_FLAG = 0
$BONUS_WEAPONS_CREATED = 0
$IMPORT_CAR_BEEN_CREATED_BEFORE = 0
$IMPORT_CAR_BEEN_CREATED_BEFORE2 = 0
$MILITARY_CAR_BEEN_CREATED_BEFORE = 0
$PORTLAND_IE_GARAGE_CARS_DELIVERED = 0
$SHORESIDE_IE_GARAGE_CARS_DELIVERED = 0
$MILITARY_SLOTS_FILLED = 0
$CREATE_CAR_PICKUPS_INDUSTRIAL = 0
$CREATE_CAR_PICKUPS_SUBURBAN = 0
$CREATED_EV_CRANE_PICKUPS = 0
$CHANGED_SUBURBAN_GARAGE_BEFORE = 0
$CHANGED_INDUSTRIAL_GARAGE_BEFORE = 0
$CRAN_ACTIVATED_BEFORE = 0
$REDLIGH10_X = 959.5
$REDLIGH10_Y = -405.0
$REDLIGH10_Z = 15.0
$REDLIGH20_X = 959.5
$REDLIGH20_Y = -407.0
$REDLIGH20_Z = 15.0
$REDLIGH30_X = 959.5
$REDLIGH30_Y = -409.0
$REDLIGH30_Z = 15.0
$REDLIGH40_X = 959.5
$REDLIGH40_Y = -411.0
$REDLIGH40_Z = 15.0
$REDLIGH50_X = 959.5
$REDLIGH50_Y = -413.0
$REDLIGH50_Z = 15.0
$REDLIGH60_X = 959.5
$REDLIGH60_Y = -415.0
$REDLIGH60_Z = 15.0
$REDLIGH70_X = 959.5
$REDLIGH70_Y = -417.0
$REDLIGH70_Z = 15.0
$REDLIGH80_X = 959.5
$REDLIGH80_Y = -419.0
$REDLIGH80_Z = 15.0
$REDLIGH90_X = 959.5
$REDLIGH90_Y = -421.0
$REDLIGH90_Z = 15.0
$REDLIGH100_X = 959.5
$REDLIGH100_Y = -423.0
$REDLIGH100_Z = 15.0
$REDLIGHFIRE_X = 959.5
$REDLIGHFIRE_Y = -425.0
$REDLIGHFIRE_Z = 15.0
$REDLIGHBRIBE1_X = 955.0
$REDLIGHBRIBE1_Y = -400.0
$REDLIGHBRIBE1_Z = 25.5
$REDLIGHBRIBE2_X = 955.0
$REDLIGHBRIBE2_Y = -401.5
$REDLIGHBRIBE2_Z = 25.5
$REDLIGHBRIBE3_X = 955.0
$REDLIGHBRIBE3_Y = -403.0
$REDLIGHBRIBE3_Z = 25.5
$REDLIGHBRIBE4_X = 955.0
$REDLIGHBRIBE4_Y = -404.5
$REDLIGHBRIBE4_Z = 25.5
$REDLIGHBRIBE5_X = 955.0
$REDLIGHBRIBE5_Y = -406.0
$REDLIGHBRIBE5_Z = 25.5
$REDLIGHBRIBE6_X = 955.0
$REDLIGHBRIBE6_Y = -407.5
$REDLIGHBRIBE6_Z = 25.5
$REDLIGHHEALTH_X = 948.5
$REDLIGHHEALTH_Y = -419.0
$REDLIGHHEALTH_Z = 15.0
$REDLIGH_ADRENALINE_X = 959.5
$REDLIGH_ADRENALINE_Y = -427.0
$REDLIGH_ADRENALINE_Z = 15.0
$BORGNINE_CAR_X = 953.5625
$BORGNINE_CAR_Y = -428.75
$BORGNINE_CAR_Z = 15.0
$IMPORT_REDLIGH_X = 1033.125
$IMPORT_REDLIGH_Y = -460.5
$IMPORT_REDLIGH_Z = 0.0
$IMPORT_REDLIGH_X1 = 906.9375
$IMPORT_REDLIGH_Y1 = -347.0625
$IMPORT_REDLIGH_Z1 = 26.0
script_name 'IMPORT'
wait 100
start_new_script @PACKAGE 

:IMPORT_795
wait 500
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @IMPORT_3517
if 
  is_collision_in_memory 1
goto_if_false @IMPORT_1712
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'REDLIGH'
goto_if_false @IMPORT_1680
if 
  is_player_in_area_3d $PLAYER_CHAR 0 $IMPORT_REDLIGH_X $IMPORT_REDLIGH_Y $IMPORT_REDLIGH_Z $IMPORT_REDLIGH_X1 $IMPORT_REDLIGH_Y1 $IMPORT_REDLIGH_Z1
goto_if_false @IMPORT_1641
if 
  $BONUS_WEAPONS_CREATED == 0
goto_if_false @IMPORT_1634
if 
  $FLAG_10_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_948
create_pickup_with_ammo $HIDEOUT_COLT = create_weapon_pickup 173 14 ammo 90 at $REDLIGH10_X $REDLIGH10_Y $REDLIGH10_Z

:IMPORT_948
if 
  $FLAG_20_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_988
create_pickup_with_ammo $HIDEOUT_UZI = create_weapon_pickup 178 14 ammo 250 at $REDLIGH20_X $REDLIGH20_Y $REDLIGH20_Z

:IMPORT_988
if 
  $FLAG_30_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1024
create_pickup $HIDEOUT_ARMOUR = create_pickup #BODYARMOUR type 14 at $REDLIGH30_X $REDLIGH30_Y $REDLIGH30_Z

:IMPORT_1024
if 
  $FLAG_40_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1063
create_pickup_with_ammo $HIDEOUT_SHOTGUN = create_weapon_pickup 176 14 ammo 50 at $REDLIGH40_X $REDLIGH40_Y $REDLIGH40_Z

:IMPORT_1063
if 
  $FLAG_50_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1102
create_pickup_with_ammo $HIDEOUT_GRENADE = create_weapon_pickup 170 14 ammo 10 at $REDLIGH50_X $REDLIGH50_Y $REDLIGH50_Z

:IMPORT_1102
if 
  $FLAG_60_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1141
create_pickup_with_ammo $HIDEOUT_MOLOTOV = create_weapon_pickup 174 14 ammo 10 at $REDLIGH60_X $REDLIGH60_Y $REDLIGH60_Z

:IMPORT_1141
if 
  $FLAG_70_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1181
create_pickup_with_ammo $HIDEOUT_AK47 = create_weapon_pickup 171 14 ammo 300 at $REDLIGH70_X $REDLIGH70_Y $REDLIGH70_Z

:IMPORT_1181
if 
  $FLAG_80_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1221
create_pickup_with_ammo $HIDEOUT_M16 = create_weapon_pickup 180 14 ammo 600 at $REDLIGH80_X $REDLIGH80_Y $REDLIGH80_Z

:IMPORT_1221
if 
  $FLAG_90_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1260
create_pickup_with_ammo $HIDEOUT_ROCKET = create_weapon_pickup 175 14 ammo 50 at $REDLIGH90_X $REDLIGH90_Y $REDLIGH90_Z

:IMPORT_1260
if 
  $ALL_FIRE_MISSIONS_DONE == 1
goto_if_false @IMPORT_1300
create_pickup_with_ammo $HIDEOUT_FLAME = create_weapon_pickup 181 14 ammo 2000 at $REDLIGHFIRE_X $REDLIGHFIRE_Y $REDLIGHFIRE_Z

:IMPORT_1300
if 
  $FLAG_100_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1339
create_pickup_with_ammo $HIDEOUT_SNIPER = create_weapon_pickup 177 14 ammo 50 at $REDLIGH100_X $REDLIGH100_Y $REDLIGH100_Z

:IMPORT_1339
if 
  $PORTLAND_VIGILANTES_DONE > 9
goto_if_false @IMPORT_1375
create_pickup $HIDEOUT_BRIBE1 = create_pickup #BRIBE type 14 at $REDLIGHBRIBE1_X $REDLIGHBRIBE1_Y $REDLIGHBRIBE1_Z

:IMPORT_1375
if 
  $PORTLAND_VIGILANTES_DONE > 19
goto_if_false @IMPORT_1411
create_pickup $HIDEOUT_BRIBE2 = create_pickup #BRIBE type 14 at $REDLIGHBRIBE2_X $REDLIGHBRIBE2_Y $REDLIGHBRIBE2_Z

:IMPORT_1411
if 
  $STAUNTON_VIGILANTES_DONE > 9
goto_if_false @IMPORT_1447
create_pickup $HIDEOUT_BRIBE3 = create_pickup #BRIBE type 14 at $REDLIGHBRIBE3_X $REDLIGHBRIBE3_Y $REDLIGHBRIBE3_Z

:IMPORT_1447
if 
  $STAUNTON_VIGILANTES_DONE > 19
goto_if_false @IMPORT_1483
create_pickup $HIDEOUT_BRIBE4 = create_pickup #BRIBE type 14 at $REDLIGHBRIBE4_X $REDLIGHBRIBE4_Y $REDLIGHBRIBE4_Z

:IMPORT_1483
if 
  $SHORESIDE_VIGILANTES_DONE > 9
goto_if_false @IMPORT_1519
create_pickup $HIDEOUT_BRIBE5 = create_pickup #BRIBE type 14 at $REDLIGHBRIBE5_X $REDLIGHBRIBE5_Y $REDLIGHBRIBE5_Z

:IMPORT_1519
if 
  $SHORESIDE_VIGILANTES_DONE > 19
goto_if_false @IMPORT_1555
create_pickup $HIDEOUT_BRIBE6 = create_pickup #BRIBE type 14 at $REDLIGHBRIBE6_X $REDLIGHBRIBE6_Y $REDLIGHBRIBE6_Z

:IMPORT_1555
if 
  $PARAMEDIC_MISSIONS_DONE > 34
goto_if_false @IMPORT_1591
create_pickup $HIDEOUT_HEALTH = create_pickup #HEALTH type 14 at $REDLIGHHEALTH_X $REDLIGHHEALTH_Y $REDLIGHHEALTH_Z

:IMPORT_1591
if 
  $PARAMEDIC_MISSIONS_DONE > 69
goto_if_false @IMPORT_1627
create_pickup $HIDEOUT_ADRENALINE = create_pickup #ADRENALINE type 14 at $REDLIGH_ADRENALINE_X $REDLIGH_ADRENALINE_Y $REDLIGH_ADRENALINE_Z

:IMPORT_1627
$BONUS_WEAPONS_CREATED = 1

:IMPORT_1634
goto @IMPORT_1673

:IMPORT_1641
if 
  $BONUS_WEAPONS_CREATED == 1
goto_if_false @IMPORT_1673
PACKAGE_933()
$BONUS_WEAPONS_CREATED = 0

:IMPORT_1673
goto @IMPORT_1712

:IMPORT_1680
if 
  $BONUS_WEAPONS_CREATED == 1
goto_if_false @IMPORT_1712
PACKAGE_933()
$BONUS_WEAPONS_CREATED = 0

:IMPORT_1712
if 
  is_collision_in_memory 2
goto_if_false @IMPORT_2621
if or
  is_player_in_zone $PLAYER_CHAR in_zone 'COM_EAS'
  is_player_in_zone $PLAYER_CHAR in_zone 'PARK'
goto_if_false @IMPORT_2589
if 
  is_player_in_area_3d $PLAYER_CHAR 0 174.5 -947.0 50.0 281.0 -1051.5 20.0
goto_if_false @IMPORT_2550
if 
  $BONUS_WEAPONS_CREATED == 0
goto_if_false @IMPORT_2543
if 
  $FLAG_10_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1857
create_pickup_with_ammo $HIDEOUT_COLT = create_weapon_pickup 173 14 ammo 90 at 237.75 -988.5 26.0

:IMPORT_1857
if 
  $FLAG_20_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1897
create_pickup_with_ammo $HIDEOUT_UZI = create_weapon_pickup 178 14 ammo 250 at 237.75 -986.5 26.0

:IMPORT_1897
if 
  $FLAG_30_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1933
create_pickup $HIDEOUT_ARMOUR = create_pickup #BODYARMOUR type 14 at 237.75 -984.5 26.0

:IMPORT_1933
if 
  $FLAG_40_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_1972
create_pickup_with_ammo $HIDEOUT_SHOTGUN = create_weapon_pickup 176 14 ammo 50 at 237.75 -982.5 26.0

:IMPORT_1972
if 
  $FLAG_50_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2011
create_pickup_with_ammo $HIDEOUT_GRENADE = create_weapon_pickup 170 14 ammo 10 at 237.75 -980.5 26.0

:IMPORT_2011
if 
  $FLAG_60_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2050
create_pickup_with_ammo $HIDEOUT_MOLOTOV = create_weapon_pickup 174 14 ammo 10 at 237.75 -978.5 26.0

:IMPORT_2050
if 
  $FLAG_70_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2090
create_pickup_with_ammo $HIDEOUT_AK47 = create_weapon_pickup 171 14 ammo 300 at 237.75 -976.5 26.0

:IMPORT_2090
if 
  $FLAG_80_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2130
create_pickup_with_ammo $HIDEOUT_M16 = create_weapon_pickup 180 14 ammo 600 at 237.75 -974.5 26.0

:IMPORT_2130
if 
  $FLAG_90_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2169
create_pickup_with_ammo $HIDEOUT_ROCKET = create_weapon_pickup 175 14 ammo 50 at 237.75 -972.5 26.0

:IMPORT_2169
if 
  $ALL_FIRE_MISSIONS_DONE == 1
goto_if_false @IMPORT_2209
create_pickup_with_ammo $HIDEOUT_FLAME = create_weapon_pickup 181 14 ammo 2000 at 237.75 -968.5 26.0

:IMPORT_2209
if 
  $FLAG_100_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2248
create_pickup_with_ammo $HIDEOUT_SNIPER = create_weapon_pickup 177 14 ammo 50 at 237.75 -970.5 26.0

:IMPORT_2248
if 
  $PORTLAND_VIGILANTES_DONE > 9
goto_if_false @IMPORT_2284
create_pickup $HIDEOUT_BRIBE1 = create_pickup #BRIBE type 14 at 237.75 -966.5 26.0

:IMPORT_2284
if 
  $PORTLAND_VIGILANTES_DONE > 19
goto_if_false @IMPORT_2320
create_pickup $HIDEOUT_BRIBE2 = create_pickup #BRIBE type 14 at 237.75 -964.5 26.0

:IMPORT_2320
if 
  $STAUNTON_VIGILANTES_DONE > 9
goto_if_false @IMPORT_2356
create_pickup $HIDEOUT_BRIBE3 = create_pickup #BRIBE type 14 at 237.75 -962.5 26.0

:IMPORT_2356
if 
  $STAUNTON_VIGILANTES_DONE > 19
goto_if_false @IMPORT_2392
create_pickup $HIDEOUT_BRIBE4 = create_pickup #BRIBE type 14 at 237.75 -960.5 26.0

:IMPORT_2392
if 
  $SHORESIDE_VIGILANTES_DONE > 9
goto_if_false @IMPORT_2428
create_pickup $HIDEOUT_BRIBE5 = create_pickup #BRIBE type 14 at 237.75 -958.5 26.0

:IMPORT_2428
if 
  $SHORESIDE_VIGILANTES_DONE > 19
goto_if_false @IMPORT_2464
create_pickup $HIDEOUT_BRIBE6 = create_pickup #BRIBE type 14 at 237.75 -956.5 26.0

:IMPORT_2464
if 
  $PARAMEDIC_MISSIONS_DONE > 34
goto_if_false @IMPORT_2500
create_pickup $HIDEOUT_HEALTH = create_pickup #HEALTH type 14 at 195.6875 -974.75 26.0

:IMPORT_2500
if 
  $PARAMEDIC_MISSIONS_DONE > 69
goto_if_false @IMPORT_2536
create_pickup $HIDEOUT_ADRENALINE = create_pickup #ADRENALINE type 14 at 237.75 -954.5 26.0

:IMPORT_2536
$BONUS_WEAPONS_CREATED = 1

:IMPORT_2543
goto @IMPORT_2582

:IMPORT_2550
if 
  $BONUS_WEAPONS_CREATED == 1
goto_if_false @IMPORT_2582
PACKAGE_933()
$BONUS_WEAPONS_CREATED = 0

:IMPORT_2582
goto @IMPORT_2621

:IMPORT_2589
if 
  $BONUS_WEAPONS_CREATED == 1
goto_if_false @IMPORT_2621
PACKAGE_933()
$BONUS_WEAPONS_CREATED = 0

:IMPORT_2621
if 
  is_collision_in_memory 3
goto_if_false @IMPORT_3517
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SUB_IND'
goto_if_false @IMPORT_3485
if 
  is_player_in_area_3d $PLAYER_CHAR 0 -1057.5 110.0 40.0 -1178.5 5.0 70.0
goto_if_false @IMPORT_3446
if 
  $BONUS_WEAPONS_CREATED == 0
goto_if_false @IMPORT_3439
if 
  $FLAG_10_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2753
create_pickup_with_ammo $HIDEOUT_COLT = create_weapon_pickup 173 14 ammo 90 at -1115.0 24.0 58.5

:IMPORT_2753
if 
  $FLAG_20_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2793
create_pickup_with_ammo $HIDEOUT_UZI = create_weapon_pickup 178 14 ammo 250 at -1117.0 24.0 58.5

:IMPORT_2793
if 
  $FLAG_30_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2829
create_pickup $HIDEOUT_ARMOUR = create_pickup #BODYARMOUR type 14 at -1119.0 24.0 58.5

:IMPORT_2829
if 
  $FLAG_40_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2868
create_pickup_with_ammo $HIDEOUT_SHOTGUN = create_weapon_pickup 176 14 ammo 50 at -1121.0 24.0 58.5

:IMPORT_2868
if 
  $FLAG_50_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2907
create_pickup_with_ammo $HIDEOUT_GRENADE = create_weapon_pickup 170 14 ammo 10 at -1123.0 24.0 58.5

:IMPORT_2907
if 
  $FLAG_60_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2946
create_pickup_with_ammo $HIDEOUT_MOLOTOV = create_weapon_pickup 174 14 ammo 10 at -1125.0 24.0 58.5

:IMPORT_2946
if 
  $FLAG_70_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_2986
create_pickup_with_ammo $HIDEOUT_AK47 = create_weapon_pickup 171 14 ammo 300 at -1127.0 24.0 58.5

:IMPORT_2986
if 
  $FLAG_80_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_3026
create_pickup_with_ammo $HIDEOUT_M16 = create_weapon_pickup 180 14 ammo 600 at -1129.0 24.0 58.5

:IMPORT_3026
if 
  $FLAG_90_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_3065
create_pickup_with_ammo $HIDEOUT_ROCKET = create_weapon_pickup 175 14 ammo 20 at -1131.0 24.0 58.5

:IMPORT_3065
if 
  $ALL_FIRE_MISSIONS_DONE == 1
goto_if_false @IMPORT_3105
create_pickup_with_ammo $HIDEOUT_FLAME = create_weapon_pickup 181 14 ammo 2000 at -1115.0 56.5 58.5

:IMPORT_3105
if 
  $FLAG_100_HIDDEN_PACKAGES == 1
goto_if_false @IMPORT_3144
create_pickup_with_ammo $HIDEOUT_SNIPER = create_weapon_pickup 177 14 ammo 50 at -1133.0 24.0 58.5

:IMPORT_3144
if 
  $PORTLAND_VIGILANTES_DONE > 9
goto_if_false @IMPORT_3180
create_pickup $HIDEOUT_BRIBE1 = create_pickup #BRIBE type 14 at -1112.0 60.0 58.5

:IMPORT_3180
if 
  $PORTLAND_VIGILANTES_DONE > 19
goto_if_false @IMPORT_3216
create_pickup $HIDEOUT_BRIBE2 = create_pickup #BRIBE type 14 at -1110.0 60.0 58.5

:IMPORT_3216
if 
  $STAUNTON_VIGILANTES_DONE > 9
goto_if_false @IMPORT_3252
create_pickup $HIDEOUT_BRIBE3 = create_pickup #BRIBE type 14 at -1108.0 60.0 58.5

:IMPORT_3252
if 
  $STAUNTON_VIGILANTES_DONE > 19
goto_if_false @IMPORT_3288
create_pickup $HIDEOUT_BRIBE4 = create_pickup #BRIBE type 14 at -1106.0 60.0 58.5

:IMPORT_3288
if 
  $SHORESIDE_VIGILANTES_DONE > 9
goto_if_false @IMPORT_3324
create_pickup $HIDEOUT_BRIBE5 = create_pickup #BRIBE type 14 at -1104.0 60.0 58.5

:IMPORT_3324
if 
  $SHORESIDE_VIGILANTES_DONE > 19
goto_if_false @IMPORT_3360
create_pickup $HIDEOUT_BRIBE6 = create_pickup #BRIBE type 14 at -1102.0 60.0 58.5

:IMPORT_3360
if 
  $PARAMEDIC_MISSIONS_DONE > 34
goto_if_false @IMPORT_3396
create_pickup $HIDEOUT_HEALTH = create_pickup #HEALTH type 14 at -1115.0 49.5 58.5

:IMPORT_3396
if 
  $PARAMEDIC_MISSIONS_DONE > 69
goto_if_false @IMPORT_3432
create_pickup $HIDEOUT_ADRENALINE = create_pickup #ADRENALINE type 14 at -1115.0 47.5 58.5

:IMPORT_3432
$BONUS_WEAPONS_CREATED = 1

:IMPORT_3439
goto @IMPORT_3478

:IMPORT_3446
if 
  $BONUS_WEAPONS_CREATED == 1
goto_if_false @IMPORT_3478
PACKAGE_933()
$BONUS_WEAPONS_CREATED = 0

:IMPORT_3478
goto @IMPORT_3517

:IMPORT_3485
if 
  $BONUS_WEAPONS_CREATED == 1
goto_if_false @IMPORT_3517
PACKAGE_933()
$BONUS_WEAPONS_CREATED = 0

:IMPORT_3517
goto @IMPORT_795
terminate_this_script 

:IMPORT_3526
create_car_generator $GEN_CAR1 = init_parked_car_generator 134 -1 -1 0 alarm 40 door_lock 0 0 10000 at 1150.0 -850.1875 -100.0 angle 90.0
create_car_generator $GEN_CAR2 = init_parked_car_generator 96 -1 -1 0 alarm 40 door_lock 0 0 10000 at 1299.0 -641.75 11.6875 angle 0.0
create_car_generator $GEN_CAR3 = init_parked_car_generator 91 -1 -1 0 alarm 40 door_lock 0 0 10000 at 1263.563 -625.8125 -100.0 angle 90.0
create_car_generator $GEN_CAR4 = init_parked_car_generator 149 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1207.563 -1119.5 -100.0 angle 0.0
create_car_generator $GEN_CAR5 = init_parked_car_generator 95 -1 -1 0 alarm 10 door_lock 0 0 10000 at 971.0 -803.5 -100.0 angle 180.0
create_car_generator $GEN_CAR6 = init_parked_car_generator 103 -1 -1 0 alarm 30 door_lock 0 0 10000 at 1094.875 -1168.063 -100.0 angle 270.0
create_car_generator $GEN_CAR7 = init_parked_car_generator 110 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1242.813 -711.5 -100.0 angle 136.0
create_car_generator $GEN_CAR8 = init_parked_car_generator 156 -1 -1 0 alarm 30 door_lock 0 0 10000 at 1336.0 -452.1875 49.25 angle 90.0
create_car_generator $GEN_CAR9 = init_parked_car_generator 154 -1 -1 0 alarm 10 door_lock 0 0 10000 at 303.1875 -566.3125 36.25 angle 270.0
create_car_generator $GEN_CAR10 = init_parked_car_generator 100 -1 -1 0 alarm 50 door_lock 0 0 10000 at 1143.5 -95.5625 7.0 angle 180.0
create_car_generator $GEN_CAR11 = init_parked_car_generator 92 -1 -1 0 alarm 50 door_lock 0 0 10000 at 1237.688 -127.1875 15.0 angle 38.0
create_car_generator $GEN_CAR12 = init_parked_car_generator 157 -1 -1 0 alarm 0 door_lock 0 0 10000 at 898.0 -905.125 14.9375 angle 270.0
create_car_generator $GEN_CAR13 = init_parked_car_generator 146 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1200.688 87.1875 15.0 angle 90.0
create_car_generator $GEN_CAR14 = init_parked_car_generator 94 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1222.5 -879.125 -100.0 angle 134.0
create_car_generator $GEN_CAR15 = init_parked_car_generator 151 -1 -1 0 alarm 60 door_lock 0 0 10000 at 1215.25 -128.1875 15.0 angle 38.0
create_car_generator $GEN_CAR16 = init_parked_car_generator 98 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1210.688 30.75 -100.0 angle 180.0
create_car_generator $GEN_CAR17 = init_parked_car_generator 130 -1 -1 0 alarm 10 door_lock 0 0 10000 at 1321.25 -876.3125 -100.0 angle 135.0
create_car_generator $GEN_CAR18 = init_parked_car_generator 134 -1 -1 0 alarm 40 door_lock 0 0 10000 at 1161.313 -259.625 -100.0 angle 0.0
create_car_generator $GEN_CAR19 = init_parked_car_generator 128 -1 -1 0 alarm 0 door_lock 0 0 10000 at 189.9375 -1536.688 26.125 angle 290.0
create_car_generator $GEN_CAR20 = init_parked_car_generator 111 -1 -1 0 alarm 40 door_lock 0 0 10000 at 861.6875 -311.1875 -100.0 angle 0.0
create_car_generator $GEN_CAR21 = init_parked_car_generator 132 -1 -1 0 alarm 0 door_lock 0 0 10000 at 861.4375 -546.4375 -100.0 angle 180.0
create_car_generator $GEN_CAR23 = init_parked_car_generator 138 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1090.063 -229.5625 -100.0 angle 0.0
create_car_generator $GEN_CAR24 = init_parked_car_generator 96 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1545.063 -845.5625 -100.0 angle 90.0
create_car_generator $GEN_CAR25 = init_parked_car_generator 110 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1495.813 -811.25 21.0 angle 360.0
create_car_generator $GEN_CAR26 = init_parked_car_generator 93 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1598.875 -707.0625 -100.0 angle 0.0
create_car_generator $GEN_CAR27 = init_parked_car_generator 132 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1007.625 -750.25 -100.0 angle 180.0
create_car_generator $GEN_CAR28 = init_parked_car_generator 95 -1 -1 0 alarm 0 door_lock 0 0 10000 at 972.9375 -412.9375 -100.0 angle 180.0
create_car_generator $GEN_CAR29 = init_parked_car_generator 105 -1 -1 0 alarm 50 door_lock 0 0 10000 at 849.1875 -379.5625 -100.0 angle 90.0
create_car_generator $GEN_CAR30 = init_parked_car_generator 139 -1 -1 0 alarm 30 door_lock 0 0 10000 at 1111.375 -592.6875 -100.0 angle -90.0
create_car_generator $GEN_CAR31 = init_parked_car_generator 137 0 0 0 alarm 0 door_lock 0 0 10000 at 863.375 -194.0 -100.0 angle 178.5
create_car_generator $GEN_CAR32 = init_parked_car_generator 135 -1 -1 0 alarm 30 door_lock 0 0 10000 at 1087.438 -882.375 -100.0 angle 90.0
create_car_generator $GEN_CAR33 = init_parked_car_generator 114 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1486.75 -209.4375 -100.0 angle 230.0
create_car_generator $GEN_CAR34 = init_parked_car_generator 155 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1006.813 -853.5625 -100.0 angle 90.0
create_car_generator $GEN_CAR35 = init_parked_car_generator 112 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1159.375 -947.0 14.75 angle -45.0
create_car_generator $GEN_CAR36 = init_parked_car_generator 145 -1 -1 0 alarm 10 door_lock 0 0 10000 at 1393.0 -923.6875 -100.0 angle 90.0
create_car_generator $GEN_CAR37 = init_parked_car_generator 135 -1 -1 0 alarm 10 door_lock 0 0 10000 at 1270.063 -381.5 -100.0 angle 180.0
create_car_generator $GEN_CAR38 = init_parked_car_generator 127 -1 -1 0 alarm 10 door_lock 0 0 10000 at 1277.5 -990.0 14.1875 angle 225.0
create_car_generator $GEN_CAR39 = init_parked_car_generator 121 70 1 0 alarm 0 door_lock 0 0 10000 at 139.5 -125.75 -100.0 angle 90.0
create_car_generator $GEN_CAR40 = init_parked_car_generator 118 -1 -1 0 alarm 10 door_lock 0 0 10000 at 1039.438 -712.125 -100.0 angle 0.0
create_car_generator $GEN_CAR41 = init_parked_car_generator 132 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1011.063 -1082.75 -100.0 angle 180.0
create_car_generator $GEN_CAR42 = init_parked_car_generator 130 -1 -1 0 alarm 20 door_lock 0 0 10000 at 948.625 -1082.0 -100.0 angle 270.0
create_car_generator $GEN_CAR43 = init_parked_car_generator 132 -1 -1 0 alarm 30 door_lock 0 0 10000 at 965.125 -1117.875 -100.0 angle 90.0
create_car_generator $GEN_CAR44 = init_parked_car_generator 137 62 62 0 alarm 0 door_lock 0 0 10000 at 1011.25 -139.8125 -100.0 angle 270.0
create_car_generator $GEN_CAR45 = init_parked_car_generator 155 -1 -1 0 alarm 0 door_lock 0 0 10000 at 21.5625 -1141.188 26.125 angle 230.0
create_car_generator $GEN_CAR46 = init_parked_car_generator 138 -1 -1 0 alarm 0 door_lock 0 0 10000 at 876.25 -983.6875 4.5625 angle -90.0
create_car_generator $COM_CAR5 = init_parked_car_generator 99 -1 -1 0 alarm 50 door_lock 0 0 10000 at 114.75 -957.375 -100.0 angle 360.0
create_car_generator $COM_CAR6 = init_parked_car_generator 136 71 70 0 alarm 0 door_lock 0 0 10000 at 114.125 -1283.125 -100.0 angle 180.0
create_car_generator $COM_CAR7 = init_parked_car_generator 154 -1 -1 0 alarm 50 door_lock 0 0 10000 at 340.0 3.6875 16.1875 angle 270.0
create_car_generator $COM_CAR8 = init_parked_car_generator 135 -1 -1 0 alarm 50 door_lock 0 0 10000 at 288.25 -668.5625 -100.0 angle 270.0
create_car_generator $COM_CAR9 = init_parked_car_generator 134 -1 -1 0 alarm 50 door_lock 0 0 10000 at 298.9375 -435.6875 -100.0 angle 45.0
create_car_generator $COM_CAR10 = init_parked_car_generator 113 -1 -1 0 alarm 30 door_lock 30 0 10000 at -62.25 -344.0625 -100.0 angle 90.0
create_car_generator $COM_CAR11 = init_parked_car_generator 95 -1 -1 0 alarm 0 door_lock 0 0 10000 at 372.3125 -434.5 -100.0 angle 180.0
create_car_generator $COM_CAR12 = init_parked_car_generator 135 -1 -1 0 alarm 40 door_lock 0 0 10000 at 186.1875 63.8125 -100.0 angle -90.0
create_car_generator $COM_CAR13 = init_parked_car_generator 142 -1 -1 0 alarm 0 door_lock 0 0 10000 at 593.25 -664.0 0.0 angle 0.0
create_car_generator $COM_CAR14 = init_parked_car_generator 143 -1 -1 0 alarm 0 door_lock 0 0 10000 at 592.375 -766.6875 0.0 angle 0.0
create_car_generator $COM_CAR15 = init_parked_car_generator 111 -1 -1 0 alarm 0 door_lock 0 0 10000 at 329.4375 -1370.313 -100.0 angle 90.0
create_car_generator $COM_CAR16 = init_parked_car_generator 130 -1 -1 0 alarm 10 door_lock 0 0 10000 at 302.375 -562.5 25.875 angle 88.1875
create_car_generator $COM_CAR17 = init_parked_car_generator 129 -1 -1 0 alarm 10 door_lock 0 0 10000 at 283.1875 -566.4375 25.875 angle 91.8125
create_car_generator $COM_CAR18 = init_parked_car_generator 101 -1 -1 0 alarm 0 door_lock 0 0 10000 at 205.3125 -1466.313 25.5 angle 90.0
create_car_generator $COM_CAR19 = init_parked_car_generator 102 -1 -1 0 alarm 10 door_lock 0 0 10000 at 302.1875 -510.375 25.875 angle 269.5
create_car_generator $COM_CAR20 = init_parked_car_generator 145 -1 -1 0 alarm 0 door_lock 0 0 10000 at 174.5625 206.0 -100.0 angle 180.0
create_car_generator $COM_CAR21 = init_parked_car_generator 95 -1 -1 0 alarm 0 door_lock 0 0 10000 at 142.375 -747.125 -100.0 angle 90.0
create_car_generator $COM_CAR22 = init_parked_car_generator 120 -1 -1 0 alarm 0 door_lock 0 0 10000 at 554.75 -767.5625 0.0 angle 0.0
create_car_generator $COM_CAR23 = init_parked_car_generator 136 -1 -1 0 alarm 30 door_lock 30 0 10000 at 488.6875 -615.375 -100.0 angle 270.0
create_car_generator $COM_CAR24 = init_parked_car_generator 91 -1 -1 0 alarm 30 door_lock 20 0 10000 at -40.5 -346.75 -100.0 angle 270.0
create_car_generator $COM_CAR25 = init_parked_car_generator 130 -1 -1 0 alarm 0 door_lock 20 0 10000 at 9.5 -1475.688 19.6875 angle 0.0
create_car_generator $COM_CAR26 = init_parked_car_generator 108 -1 -1 0 alarm 20 door_lock 0 0 10000 at -52.25 -1458.25 26.125 angle 90.0
create_car_generator $COM_CAR27 = init_parked_car_generator 111 -1 -1 0 alarm 20 door_lock 20 0 10000 at -77.5 -1485.0 26.0 angle 90.0
create_car_generator $COM_CAR28 = init_parked_car_generator 92 -1 -1 0 alarm 40 door_lock 20 0 10000 at -70.875 -1443.563 25.75 angle 180.0
create_car_generator $COM_CAR29 = init_parked_car_generator 95 -1 -1 0 alarm 20 door_lock 0 0 10000 at 324.4375 -1019.438 -100.0 angle 90.0
create_car_generator $COM_CAR30 = init_parked_car_generator 135 -1 -1 0 alarm 0 door_lock 0 0 10000 at 476.875 -734.875 15.625 angle 270.0
create_car_generator $COM_CAR31 = init_parked_car_generator 102 -1 -1 0 alarm 30 door_lock 0 0 10000 at 228.75 -1205.688 20.5 angle 180.0
create_car_generator $COM_CAR32 = init_parked_car_generator 130 -1 -1 0 alarm 20 door_lock 20 0 10000 at 211.5 -1213.5 20.5 angle 90.0
create_car_generator $COM_CAR33 = init_parked_car_generator 118 -1 -1 0 alarm 20 door_lock 60 0 10000 at 458.875 -1503.375 -100.0 angle 0.0
create_car_generator $COM_CAR34 = init_parked_car_generator 105 -1 -1 0 alarm 0 door_lock 30 0 10000 at 442.6875 -1465.688 18.375 angle 180.0
create_car_generator $COM_CAR35 = init_parked_car_generator 101 -1 -1 0 alarm 0 door_lock 0 0 10000 at 342.625 -542.375 28.0625 angle 270.0
create_car_generator $COM_CAR36 = init_parked_car_generator 129 -1 -1 0 alarm 30 door_lock 30 0 10000 at -72.1875 -332.5 -100.0 angle 270.0
create_car_generator $COM_CAR37 = init_parked_car_generator 138 -1 -1 0 alarm 30 door_lock 0 0 10000 at -1094.813 -593.9375 -100.0 angle 90.0
create_car_generator $COM_CAR38 = init_parked_car_generator 104 -1 -1 0 alarm 30 door_lock 30 0 10000 at -30.0 -366.875 -100.0 angle 270.0
create_car_generator $COM_CAR39 = init_parked_car_generator 144 -1 -1 0 alarm 0 door_lock 0 0 10000 at 442.125 -48.8125 -100.0 angle 225.0
create_car_generator $SUB_CAR1 = init_parked_car_generator 151 -1 -1 0 alarm 20 door_lock 0 0 10000 at -458.375 268.0 -100.0 angle 180.0
create_car_generator $SUB_CAR2 = init_parked_car_generator 152 -1 -1 0 alarm 50 door_lock 0 0 10000 at -585.0625 265.0 -100.0 angle 0.0
create_car_generator $SUB_CAR3 = init_parked_car_generator 92 -1 -1 0 alarm 50 door_lock 0 0 10000 at -712.0625 263.5625 -100.0 angle 180.0
create_car_generator $SUB_CAR4 = init_parked_car_generator 119 -1 -1 0 alarm 10 door_lock 0 0 10000 at -755.0 204.25 27.6875 angle 179.8125
create_car_generator $SUB_CAR5 = init_parked_car_generator 116 -1 -1 0 alarm 0 door_lock 50 0 10000 at -1266.0 -37.6875 -100.0 angle 160.0
create_car_generator $SUB_CAR6 = init_parked_car_generator 138 -1 -1 0 alarm 0 door_lock 0 0 10000 at -402.0 291.5625 -100.0 angle 252.0
create_car_generator $SUB_CAR7 = init_parked_car_generator 100 -1 -1 0 alarm 0 door_lock 0 0 10000 at -218.5 263.6875 3.5 angle 90.0
create_car_generator $SUB_CAR8 = init_parked_car_generator 90 -1 -1 0 alarm 20 door_lock 20 0 10000 at -896.625 -414.1875 11.25 angle 90.0
create_car_generator $SUB_CAR9 = init_parked_car_generator 157 -1 -1 0 alarm 20 door_lock 0 0 10000 at -896.625 -395.1875 11.25 angle 270.0
create_car_generator $SUB_CAR10 = init_parked_car_generator 91 -1 -1 0 alarm 30 door_lock 0 0 10000 at -875.8125 -413.3125 11.0 angle 0.0
create_car_generator $SUB_CAR11 = init_parked_car_generator 129 -1 -1 0 alarm 20 door_lock 20 0 10000 at -862.875 -404.375 11.0 angle 180.0
create_car_generator $SUB_CAR12 = init_parked_car_generator 95 -1 -1 0 alarm 30 door_lock 0 0 10000 at -846.625 -413.5625 11.0 angle 180.0
create_car_generator $SUB_CAR13 = init_parked_car_generator 100 -1 -1 0 alarm 10 door_lock 20 0 10000 at -814.8125 -372.375 11.0 angle 180.0
create_car_generator $SUB_CAR14 = init_parked_car_generator 130 -1 -1 0 alarm 0 door_lock 10 0 10000 at -821.1875 -404.6875 11.0 angle 180.0
create_car_generator $SUB_CAR15 = init_parked_car_generator 110 -1 -1 0 alarm 10 door_lock 20 0 10000 at -767.875 -404.625 11.0 angle 0.0
create_car_generator $SUB_CAR16 = init_parked_car_generator 109 -1 -1 0 alarm 20 door_lock 20 0 10000 at -773.375 -373.125 11.0 angle 180.0
create_car_generator $SUB_CAR17 = init_parked_car_generator 142 -1 -1 0 alarm 0 door_lock 0 0 10000 at -856.375 -1228.125 1.0 angle 250.0
create_car_generator $SUB_CAR18 = init_parked_car_generator 120 -1 -1 0 alarm 0 door_lock 0 0 10000 at -1126.375 -1034.125 1.0 angle 270.0
create_car_generator $SUB_CAR19 = init_parked_car_generator 110 -1 -1 0 alarm 0 door_lock 20 0 10000 at -750.375 -603.125 11.0 angle 270.0
create_car_generator $SUB_CAR20 = init_parked_car_generator 110 -1 -1 0 alarm 20 door_lock 20 0 10000 at -750.375 -567.125 11.0 angle 270.0
create_car_generator $SUB_CAR21 = init_parked_car_generator 129 -1 -1 0 alarm 10 door_lock 5 0 10000 at -724.75 180.1875 27.6875 angle 182.0
create_car_generator $SUB_CAR22 = init_parked_car_generator 130 -1 -1 0 alarm 20 door_lock 10 0 10000 at -1073.0 -753.0 11.0 angle 360.0
create_car_generator $SUB_CAR23 = init_parked_car_generator 105 -1 -1 0 alarm 0 door_lock 1 0 10000 at -394.25 1169.0 36.8125 angle 180.0
create_car_generator $SUB_CAR24 = init_parked_car_generator 104 -1 -1 0 alarm 20 door_lock 1 0 10000 at 21.25 1030.25 8.8125 angle 0.0
create_car_generator $SUB_CAR25 = init_parked_car_generator 102 -1 -1 0 alarm 60 door_lock 5 0 10000 at -668.25 99.25 17.75 angle 359.5625
create_car_generator $SUB_CAR26 = init_parked_car_generator 139 -1 -1 0 alarm 0 door_lock 5 0 10000 at -449.9375 -13.1875 2.875 angle 0.625
create_car_generator $SUB_CAR27 = init_parked_car_generator 90 -1 -1 0 alarm 30 door_lock 5 0 10000 at -510.8125 74.5 2.875 angle 0.25
create_car_generator $SUB_CAR28 = init_parked_car_generator 112 -1 -1 0 alarm 30 door_lock 2 0 10000 at -217.625 318.75 2.5 angle 358.8125
create_car_generator $SUB_CAR29 = init_parked_car_generator 111 -1 -1 0 alarm 0 door_lock 1 0 10000 at -561.3125 -6.3125 2.875 angle 91.0
create_car_generator $SUB_CAR30 = init_parked_car_generator 134 0 0 0 alarm 30 door_lock 1 0 10000 at -788.0 303.5625 -100.0 angle 342.0
create_car_generator $SUB_CAR32 = init_parked_car_generator 153 -1 -1 0 alarm 30 door_lock 1 0 10000 at -712.875 325.4375 -100.0 angle 0.0
create_car_generator $SUB_CAR33 = init_parked_car_generator 142 -1 -1 0 alarm 0 door_lock 1 0 10000 at -1416.875 -678.6875 0.8125 angle 180.0
create_car_generator $SUB_CAR34 = init_parked_car_generator 118 -1 -1 0 alarm 0 door_lock 1 0 10000 at -564.625 1026.063 37.5 angle 360.0
create_car_generator $SUB_CAR36 = init_parked_car_generator 105 -1 -1 0 alarm 20 door_lock 1 0 10000 at -394.25 1169.0 36.8125 angle 180.0
create_car_generator $SUB_CAR38 = init_parked_car_generator 149 -1 -1 0 alarm 0 door_lock 1 0 10000 at -616.875 1326.25 8.875 angle 180.0
create_car_generator $SUB_CAR39 = init_parked_car_generator 128 -1 -1 0 alarm 20 door_lock 1 0 10000 at -505.5625 965.9375 36.9375 angle 90.0
create_car_generator $SUB_CAR40 = init_parked_car_generator 117 -1 -1 0 alarm 0 door_lock 1 0 10000 at -505.5625 965.9375 36.9375 angle 90.0
create_car_generator $SUB_CAR41 = init_parked_car_generator 94 -1 -1 0 alarm 20 door_lock 1 0 10000 at -99.6875 1306.625 8.9375 angle 153.0
create_car_generator $SUB_CAR42 = init_parked_car_generator 95 -1 -1 0 alarm 0 door_lock 1 0 10000 at -629.875 -34.1875 18.8125 angle 270.0
create_car_generator $SUB_CAR43 = init_parked_car_generator 94 -1 -1 0 alarm 20 door_lock 1 0 10000 at -533.0 -77.4375 3.8125 angle 90.0
create_car_generator $SUB_CAR44 = init_parked_car_generator 142 -1 -1 0 alarm 20 door_lock 1 0 10000 at -1160.063 322.4375 0.0 angle 270.0
create_car_generator $SUB_CAR45 = init_parked_car_generator 154 -1 -1 0 alarm 0 door_lock 30 0 10000 at -449.875 -63.625 3.8125 angle 0.0
create_car_generator $SUB_CAR46 = init_parked_car_generator 151 -1 -1 0 alarm 30 door_lock 30 0 10000 at -911.75 314.1875 34.5 angle 270.0
create_car_generator $PORTLAND_POLICE1 = init_parked_car_generator 107 -1 -1 0 alarm 0 door_lock 70 0 10000 at 1160.0 -643.0625 -100.0 angle 180.0
create_car_generator $PORTLAND_POLICE2 = init_parked_car_generator 117 -1 -1 0 alarm 0 door_lock 30 0 10000 at 1142.188 -685.0625 -100.0 angle 0.0
create_car_generator $PORTLAND_POLICE3 = init_parked_car_generator 116 -1 -1 0 alarm 0 door_lock 30 0 10000 at 1139.688 -644.375 -100.0 angle 90.0
create_car_generator $PORTLAND_AMBULANCE = init_parked_car_generator 106 -1 -1 0 alarm 0 door_lock 30 0 10000 at 1154.625 -547.5 -100.0 angle 90.0
create_car_generator $PORTLAND_FIRETRUCK = init_parked_car_generator 97 -1 -1 0 alarm 0 door_lock 20 0 10000 at 1107.5 -58.0 -100.0 angle 270.0
create_car_generator $SALVATORE_CAR1 = init_parked_car_generator 134 -1 -1 0 alarm 0 door_lock 0 0 10000 at 1407.563 -176.0625 -100.0 angle 140.0
create_car_generator $SALVATORE_CAR2 = init_parked_car_generator 119 0 1 0 alarm 0 door_lock 0 0 10000 at 1405.0 -163.375 -100.0 angle 140.0
create_car_generator $STAUNTON_POLICE1 = init_parked_car_generator 116 -1 -1 0 alarm 0 door_lock 30 0 10000 at 354.1875 -1055.875 -100.0 angle 0.0
create_car_generator $STAUNTON_POLICE2 = init_parked_car_generator 107 -1 -1 0 alarm 0 door_lock 0 0 10000 at 356.5 -1170.25 22.0 angle 180.0
create_car_generator $STAUNTON_POLICE3 = init_parked_car_generator 116 -1 -1 0 alarm 70 door_lock 30 0 10000 at 334.375 -1151.0 22.0 angle -90.0
create_car_generator $STAUNTON_AMBULANCE1 = init_parked_car_generator 106 -1 -1 0 alarm 0 door_lock 30 0 10000 at 194.6875 -41.0625 -100.0 angle 0.0
create_car_generator $STAUNTON_FIRETRUCK = init_parked_car_generator 97 -1 -1 0 alarm 0 door_lock 20 0 10000 at -83.875 -443.5625 -100.0 angle 90.0
create_car_generator $PHIL_CAR1 = init_parked_car_generator 123 -1 -1 0 alarm 0 door_lock 0 10000 40000 at 434.25 -366.625 21.1875 angle 90.0
create_car_generator $PHIL_CAR2 = init_parked_car_generator 96 35 1 0 alarm 0 door_lock 0 10000 40000 at 348.625 -360.5 21.3125 angle 270.0
create_car_generator $PHIL_CAR3 = init_parked_car_generator 122 -1 -1 0 alarm 0 door_lock 100 10000 40000 at 294.25 -349.9375 23.5625 angle 180.0
create_car_generator $SHORESIDE_POLICE1 = init_parked_car_generator 109 -1 -1 0 alarm 70 door_lock 30 0 10000 at 301.6875 -582.5 25.875 angle 270.6875
create_car_generator $SHORESIDE_POLICE2 = init_parked_car_generator 116 -1 -1 0 alarm 0 door_lock 30 0 10000 at -1574.0 -873.0 11.0 angle 90.0
create_car_generator $SHORESIDE_AMBULANCE = init_parked_car_generator 106 -1 -1 0 alarm 0 door_lock 30 0 10000 at -1249.063 -92.5 -100.0 angle 90.0
create_car_generator $SHORESIDE_FIRETRUCK = init_parked_car_generator 97 -1 -1 0 alarm 0 door_lock 20 0 10000 at -839.375 -463.75 -100.0 angle 90.0
create_car_generator $DODO1 = init_parked_car_generator 126 -1 -1 0 alarm 0 door_lock 0 0 10000 at -1268.438 -528.625 10.1875 angle 180.0
create_car_generator $DODO2 = init_parked_car_generator 126 -1 -1 0 alarm 0 door_lock 0 0 10000 at -865.375 -752.6875 10.1875 angle 180.0
create_car_generator $DODO3 = init_parked_car_generator 126 -1 -1 0 alarm 0 door_lock 0 0 10000 at -1463.813 -1007.75 10.1875 angle 233.75
create_car_generator $BORGNINE_CAB = init_parked_car_generator 148 -1 -1 1 alarm 0 door_lock 0 0 10000 at 933.6875 -65.5625 -100.0 angle 0.0
create_car_generator $F1RACE_CAR = init_parked_car_generator 158 -1 -1 1 alarm 0 door_lock 0 0 10000 at 171.625 -1253.813 31.25 angle 270.0
create_car_generator $SHOW_CAR1 = init_parked_car_generator 101 -1 -1 0 alarm 0 door_lock 0 0 10000 at 170.25 -1261.5 26.125 angle 275.0
create_car_generator $SHOW_CAR2 = init_parked_car_generator 152 -1 -1 0 alarm 0 door_lock 0 0 10000 at 162.1875 -1262.125 26.125 angle 360.0
create_car_generator $SHOW_CAR3 = init_parked_car_generator 153 -1 -1 0 alarm 0 door_lock 0 0 10000 at 170.625 -1255.063 26.125 angle 242.0
switch_car_generator $PORTLAND_POLICE1 cars_to_generate_to 101
switch_car_generator $PORTLAND_POLICE2 cars_to_generate_to 101
switch_car_generator $PORTLAND_POLICE3 cars_to_generate_to 101
switch_car_generator $PORTLAND_AMBULANCE cars_to_generate_to 101
switch_car_generator $PORTLAND_FIRETRUCK cars_to_generate_to 101
switch_car_generator $SALVATORE_CAR1 cars_to_generate_to 101
switch_car_generator $SALVATORE_CAR2 cars_to_generate_to 101
switch_car_generator $GEN_CAR1 cars_to_generate_to 101
switch_car_generator $GEN_CAR2 cars_to_generate_to 101
switch_car_generator $GEN_CAR3 cars_to_generate_to 101
switch_car_generator $GEN_CAR4 cars_to_generate_to 101
switch_car_generator $GEN_CAR5 cars_to_generate_to 101
switch_car_generator $GEN_CAR6 cars_to_generate_to 101
switch_car_generator $GEN_CAR7 cars_to_generate_to 101
switch_car_generator $GEN_CAR8 cars_to_generate_to 101
switch_car_generator $GEN_CAR9 cars_to_generate_to 101
switch_car_generator $GEN_CAR10 cars_to_generate_to 101
switch_car_generator $GEN_CAR11 cars_to_generate_to 101
switch_car_generator $GEN_CAR12 cars_to_generate_to 101
switch_car_generator $GEN_CAR13 cars_to_generate_to 101
switch_car_generator $GEN_CAR14 cars_to_generate_to 101
switch_car_generator $GEN_CAR15 cars_to_generate_to 101
switch_car_generator $GEN_CAR16 cars_to_generate_to 101
switch_car_generator $GEN_CAR17 cars_to_generate_to 101
switch_car_generator $GEN_CAR18 cars_to_generate_to 101
switch_car_generator $GEN_CAR19 cars_to_generate_to 101
switch_car_generator $GEN_CAR20 cars_to_generate_to 101
switch_car_generator $GEN_CAR21 cars_to_generate_to 101
switch_car_generator $GEN_CAR23 cars_to_generate_to 101
switch_car_generator $GEN_CAR24 cars_to_generate_to 101
switch_car_generator $GEN_CAR25 cars_to_generate_to 101
switch_car_generator $COM_CAR26 cars_to_generate_to 101
switch_car_generator $COM_CAR27 cars_to_generate_to 101
switch_car_generator $GEN_CAR28 cars_to_generate_to 101
switch_car_generator $GEN_CAR29 cars_to_generate_to 101
switch_car_generator $GEN_CAR30 cars_to_generate_to 101
switch_car_generator $GEN_CAR31 cars_to_generate_to 101
switch_car_generator $GEN_CAR32 cars_to_generate_to 101
switch_car_generator $GEN_CAR33 cars_to_generate_to 101
switch_car_generator $GEN_CAR34 cars_to_generate_to 101
switch_car_generator $GEN_CAR35 cars_to_generate_to 101
switch_car_generator $GEN_CAR36 cars_to_generate_to 101
switch_car_generator $GEN_CAR38 cars_to_generate_to 101
switch_car_generator $GEN_CAR39 cars_to_generate_to 101
switch_car_generator $GEN_CAR40 cars_to_generate_to 101
switch_car_generator $GEN_CAR41 cars_to_generate_to 101
switch_car_generator $GEN_CAR42 cars_to_generate_to 101
switch_car_generator $GEN_CAR43 cars_to_generate_to 101
switch_car_generator $GEN_CAR44 cars_to_generate_to 101
switch_car_generator $GEN_CAR45 cars_to_generate_to 101
switch_car_generator $GEN_CAR46 cars_to_generate_to 101
switch_car_generator $STAUNTON_POLICE1 cars_to_generate_to 101
switch_car_generator $STAUNTON_POLICE2 cars_to_generate_to 101
switch_car_generator $STAUNTON_POLICE3 cars_to_generate_to 101
switch_car_generator $STAUNTON_AMBULANCE1 cars_to_generate_to 101
switch_car_generator $STAUNTON_FIRETRUCK cars_to_generate_to 101
switch_car_generator $STAUNTON_SWAT cars_to_generate_to 101
switch_car_generator $PHIL_CAR1 cars_to_generate_to 101
switch_car_generator $PHIL_CAR2 cars_to_generate_to 101
switch_car_generator $PHIL_CAR3 cars_to_generate_to 101
switch_car_generator $JKTNCAR cars_to_generate_to 101
switch_car_generator $COM_CAR1 cars_to_generate_to 101
switch_car_generator $COM_CAR2 cars_to_generate_to 101
switch_car_generator $COM_CAR3 cars_to_generate_to 101
switch_car_generator $COM_CAR4 cars_to_generate_to 101
switch_car_generator $COM_CAR5 cars_to_generate_to 101
switch_car_generator $COM_CAR6 cars_to_generate_to 101
switch_car_generator $COM_CAR7 cars_to_generate_to 101
switch_car_generator $COM_CAR8 cars_to_generate_to 101
switch_car_generator $COM_CAR9 cars_to_generate_to 101
switch_car_generator $COM_CAR10 cars_to_generate_to 101
switch_car_generator $COM_CAR11 cars_to_generate_to 101
switch_car_generator $COM_CAR12 cars_to_generate_to 101
switch_car_generator $COM_CAR13 cars_to_generate_to 101
switch_car_generator $COM_CAR14 cars_to_generate_to 101
switch_car_generator $COM_CAR15 cars_to_generate_to 101
switch_car_generator $COM_CAR16 cars_to_generate_to 101
switch_car_generator $COM_CAR17 cars_to_generate_to 101
switch_car_generator $COM_CAR18 cars_to_generate_to 101
switch_car_generator $COM_CAR19 cars_to_generate_to 101
switch_car_generator $COM_CAR20 cars_to_generate_to 101
switch_car_generator $COM_CAR21 cars_to_generate_to 101
switch_car_generator $COM_CAR22 cars_to_generate_to 101
switch_car_generator $COM_CAR23 cars_to_generate_to 101
switch_car_generator $COM_CAR24 cars_to_generate_to 101
switch_car_generator $COM_CAR25 cars_to_generate_to 101
switch_car_generator $COM_CAR26 cars_to_generate_to 101
switch_car_generator $COM_CAR27 cars_to_generate_to 101
switch_car_generator $COM_CAR29 cars_to_generate_to 101
switch_car_generator $COM_CAR30 cars_to_generate_to 101
switch_car_generator $COM_CAR31 cars_to_generate_to 101
switch_car_generator $COM_CAR32 cars_to_generate_to 101
switch_car_generator $COM_CAR33 cars_to_generate_to 101
switch_car_generator $COM_CAR34 cars_to_generate_to 101
switch_car_generator $COM_CAR35 cars_to_generate_to 101
switch_car_generator $COM_CAR36 cars_to_generate_to 101
switch_car_generator $COM_CAR37 cars_to_generate_to 101
switch_car_generator $COM_CAR38 cars_to_generate_to 101
switch_car_generator $COM_CAR39 cars_to_generate_to 101
switch_car_generator $COM_CAR40 cars_to_generate_to 101
switch_car_generator $COM_CAR42 cars_to_generate_to 101
switch_car_generator $SHORESIDE_POLICE1 cars_to_generate_to 101
switch_car_generator $SHORESIDE_POLICE2 cars_to_generate_to 101
switch_car_generator $SHORESIDE_AMBULANCE cars_to_generate_to 101
switch_car_generator $SHORESIDE_FIRETRUCK cars_to_generate_to 101
switch_car_generator $DODO1 cars_to_generate_to 101
switch_car_generator $DODO2 cars_to_generate_to 101
switch_car_generator $DODO3 cars_to_generate_to 101
switch_car_generator $SUB_CAR1 cars_to_generate_to 101
switch_car_generator $SUB_CAR2 cars_to_generate_to 101
switch_car_generator $SUB_CAR3 cars_to_generate_to 101
switch_car_generator $SUB_CAR4 cars_to_generate_to 101
switch_car_generator $SUB_CAR5 cars_to_generate_to 101
switch_car_generator $SUB_CAR6 cars_to_generate_to 101
switch_car_generator $SUB_CAR7 cars_to_generate_to 101
switch_car_generator $SUB_CAR8 cars_to_generate_to 101
switch_car_generator $SUB_CAR9 cars_to_generate_to 101
switch_car_generator $SUB_CAR10 cars_to_generate_to 101
switch_car_generator $SUB_CAR11 cars_to_generate_to 101
switch_car_generator $SUB_CAR12 cars_to_generate_to 101
switch_car_generator $SUB_CAR13 cars_to_generate_to 101
switch_car_generator $SUB_CAR14 cars_to_generate_to 101
switch_car_generator $SUB_CAR15 cars_to_generate_to 101
switch_car_generator $SUB_CAR16 cars_to_generate_to 101
switch_car_generator $SUB_CAR17 cars_to_generate_to 101
switch_car_generator $SUB_CAR18 cars_to_generate_to 101
switch_car_generator $SUB_CAR19 cars_to_generate_to 101
switch_car_generator $SUB_CAR20 cars_to_generate_to 101
switch_car_generator $SUB_CAR21 cars_to_generate_to 101
switch_car_generator $SUB_CAR22 cars_to_generate_to 101
switch_car_generator $SUB_CAR23 cars_to_generate_to 101
switch_car_generator $SUB_CAR24 cars_to_generate_to 101
switch_car_generator $SUB_CAR25 cars_to_generate_to 101
switch_car_generator $SUB_CAR26 cars_to_generate_to 101
switch_car_generator $SUB_CAR27 cars_to_generate_to 101
switch_car_generator $SUB_CAR28 cars_to_generate_to 101
switch_car_generator $SUB_CAR29 cars_to_generate_to 101
switch_car_generator $SUB_CAR30 cars_to_generate_to 101
switch_car_generator $SUB_CAR31 cars_to_generate_to 101
switch_car_generator $SUB_CAR32 cars_to_generate_to 101
switch_car_generator $SUB_CAR33 cars_to_generate_to 101
switch_car_generator $SUB_CAR34 cars_to_generate_to 101
switch_car_generator $SUB_CAR35 cars_to_generate_to 101
switch_car_generator $SUB_CAR36 cars_to_generate_to 101
switch_car_generator $SUB_CAR37 cars_to_generate_to 101
switch_car_generator $SUB_CAR38 cars_to_generate_to 101
switch_car_generator $SUB_CAR39 cars_to_generate_to 101
switch_car_generator $SUB_CAR40 cars_to_generate_to 101
switch_car_generator $SUB_CAR41 cars_to_generate_to 101
switch_car_generator $SUB_CAR42 cars_to_generate_to 101
switch_car_generator $SUB_CAR43 cars_to_generate_to 101
switch_car_generator $SUB_CAR44 cars_to_generate_to 101
switch_car_generator $SUB_CAR45 cars_to_generate_to 101
switch_car_generator $SUB_CAR46 cars_to_generate_to 101
switch_car_generator $SHOW_CAR1 cars_to_generate_to 101
switch_car_generator $SHOW_CAR2 cars_to_generate_to 101
switch_car_generator $SHOW_CAR3 cars_to_generate_to 101
switch_car_generator $TOYZ1 cars_to_generate_to 101
switch_car_generator $BORGNINE_CAB cars_to_generate_to 0
switch_car_generator $F1RACE_CAR cars_to_generate_to 0
switch_car_generator $SHOW_CAR1 cars_to_generate_to 101
switch_car_generator $SHOW_CAR2 cars_to_generate_to 101
switch_car_generator $SHOW_CAR3 cars_to_generate_to 101
create_pickup $WOOD = create_pickup 172 type 1 at 1067.0 -402.0 15.1875
create_pickup $COLT = create_pickup 173 type 1 at 1067.0 -400.0 15.1875
create_pickup $SUN = create_pickup 176 type 1 at 1067.0 -398.0 15.1875
create_pickup $UZI = create_pickup 178 type 1 at 1071.0 -400.0 15.1875
create_pickup $BODY = create_pickup #BODYARMOUR type 1 at 1071.0 -401.6875 15.1875
create_pickup $WOOD2 = create_pickup 172 type 1 at 348.0 -713.0 26.375
create_pickup $COLT2 = create_pickup 173 type 1 at 346.0 -713.0 26.375
create_pickup $SUN2 = create_pickup 176 type 1 at 344.0 -713.0 26.375
create_pickup $UZI2 = create_pickup 178 type 1 at 342.0 -714.0 26.375
create_pickup $AK472 = create_pickup 171 type 1 at 342.0 -716.0 26.375
create_pickup $FLAME2 = create_pickup 181 type 1 at 342.0 -718.0 26.375
create_pickup $MOLO2 = create_pickup 174 type 1 at 343.0 -720.0 26.375
create_pickup $GREN2 = create_pickup 170 type 1 at 345.0 -720.0 26.375
create_pickup $BODY2 = create_pickup #BODYARMOUR type 1 at 347.0 -720.0 26.375
create_pickup $WOOD3 = create_pickup 172 type 1 at -1166.5 127.5 68.75
create_pickup $COLT3 = create_pickup 173 type 1 at -1166.5 129.5 68.75
create_pickup $SUN3 = create_pickup 176 type 1 at -1166.5 131.5 68.75
create_pickup $UZI3 = create_pickup 178 type 1 at -1166.5 134.9375 68.75
create_pickup $AK473 = create_pickup 171 type 1 at -1166.5 136.9375 68.75
create_pickup $MOLO3 = create_pickup 174 type 1 at -1166.5 138.9375 68.75
create_pickup $GREN3 = create_pickup 170 type 1 at -1166.5 140.9375 68.75
create_pickup $BODY3 = create_pickup #BODYARMOUR type 1 at -1171.375 132.9375 68.75
create_pickup $AWN3 = create_pickup 177 type 1 at -1171.375 134.9375 68.75
create_pickup $FLAME3 = create_pickup 181 type 1 at -1171.375 136.9375 68.75
create_pickup $PAO3 = create_pickup 175 type 1 at -1171.375 138.9375 68.75
create_pickup $M4A13 = create_pickup 180 type 1 at -1171.375 140.9375 68.75
create_pickup $IND_PICKUP1 = create_pickup #BRIBE type 14 at 937.375 -234.125 4.9375
create_pickup $IND_PICKUP2 = create_pickup #BRIBE type 14 at 995.1875 -474.1875 20.9375
create_pickup $IND_PICKUP3 = create_pickup #BRIBE type 14 at 1148.188 -924.125 15.0
create_pickup $IND_PICKUP4 = create_pickup #BRIBE type 14 at 1093.188 -694.1875 14.9375
create_pickup $IND_PICKUP5 = create_pickup #BRIBE type 14 at 1047.375 -1114.125 13.125
create_pickup $IND_PICKUP6 = create_pickup #BRIBE type 14 at 1165.188 -63.0625 7.4375
create_pickup $IND_PICKUP6 = create_pickup #BRIBE type 14 at 992.625 118.625 15.1875
create_pickup $IND_PICKUP7 = create_pickup #BODYARMOUR type 14 at 1094.625 -158.25 9.75
create_pickup $IND_PICKUP8 = create_pickup #BODYARMOUR type 14 at 1365.75 -995.75 11.875
create_pickup $IND_PICKUP10 = create_pickup #BODYARMOUR type 14 at 1150.438 -470.625 20.8125
create_pickup $IND_PICKUP11 = create_pickup #HEALTH type 14 at 1214.0 -1113.563 11.8125
create_pickup $IND_PICKUP12 = create_pickup #HEALTH type 14 at 1074.125 -960.25 18.875
create_pickup $IND_PICKUP13 = create_pickup #HEALTH type 14 at 1073.938 -412.75 15.125
create_pickup $IND_PICKUP15 = create_pickup #HEALTH type 14 at 1152.5 -527.6875 22.0
create_pickup $IND_PICKUP16 = create_pickup #HEALTH type 14 at 1333.313 -254.6875 49.625
create_pickup $IND_PICKUP17 = create_pickup #HEALTH type 14 at 1162.563 -846.25 15.125
create_pickup $IND_PICKUP18 = create_pickup #HEALTH type 14 at 875.5 66.3125 7.3125
create_pickup $SND_PICKUP1 = create_pickup #BRIBE type 14 at -59.1875 -462.5 16.125
create_pickup $SND_PICKUP2 = create_pickup #HEALTH type 14 at 211.0625 15.875 16.1875
create_pickup $SND_PICKUP3 = create_pickup #BODYARMOUR type 14 at 281.3125 -456.5625 26.0
create_pickup $SND_PICKUP4 = create_pickup #HEALTH type 14 at 528.1875 -622.5 16.625
create_pickup $SND_PICKUP5 = create_pickup #BRIBE type 14 at 96.6875 -1000.938 26.125
create_pickup $SND_PICKUP6 = create_pickup #BODYARMOUR type 14 at 90.9375 -1548.75 28.3125
create_pickup $SND_PICKUP7 = create_pickup #HEALTH type 14 at -91.875 -1382.938 27.75
create_pickup $SND_PICKUP8 = create_pickup #BODYARMOUR type 14 at 350.625 -388.625 22.125
create_pickup $SND_PICKUP9 = create_pickup #HEALTH type 14 at 360.9375 -144.125 21.25
create_pickup $SND_PICKUP10 = create_pickup #BRIBE type 14 at 294.0625 -203.875 27.0
create_pickup $HND_PICKUP1 = create_pickup #HEALTH type 14 at -1242.75 -79.875 59.1875
create_pickup $HND_PICKUP2 = create_pickup #HEALTH type 14 at -543.3125 577.3125 209.5
create_pickup $HND_PICKUP3 = create_pickup #HEALTH type 14 at -639.0 -24.4375 18.8125
create_pickup $HND_PICKUP4 = create_pickup #BRIBE type 14 at -650.25 94.5625 19.5
create_pickup $HND_PICKUP5 = create_pickup #BRIBE type 14 at -1162.75 105.875 72.0
create_pickup $HND_PICKUP6 = create_pickup #BRIBE type 14 at -768.875 180.375 28.6875
create_pickup $HND_PICKUP7 = create_pickup #BODYARMOUR type 14 at -887.125 -452.75 11.0625
create_pickup $HND_PICKUP8 = create_pickup #BODYARMOUR type 14 at -1210.563 543.5 68.625
create_pickup $HND_PICKUP9 = create_pickup #BODYARMOUR type 14 at -458.0 -46.3125 3.875
create_collectable1 776.5625 177.625 -20.0
create_collectable1 1005.313 -49.4375 7.4375
create_collectable1 898.0625 -141.6875 4.875
create_collectable1 848.3125 -475.5625 14.9375
create_collectable1 1116.563 -1230.125 11.5
create_collectable1 1076.625 -1047.75 15.375
create_collectable1 1181.75 -1122.375 11.8125
create_collectable1 1268.625 -1020.063 14.875
create_collectable1 1326.688 -1085.438 11.9375
create_collectable1 1613.5 -917.125 22.75
create_collectable1 1521.25 -831.375 25.1875
create_collectable1 1662.313 -644.375 23.75
create_collectable1 1301.688 -541.6875 47.5625
create_collectable1 1263.375 -726.1875 18.875
create_collectable1 1078.625 -584.1875 18.5
create_collectable1 1173.938 -663.125 18.875
create_collectable1 1087.5 -804.6875 15.0625
create_collectable1 1037.438 -653.0 15.0
create_collectable1 1150.25 -377.8125 26.9375
create_collectable1 1411.688 -358.9375 49.25
create_collectable1 1446.75 -203.75 55.5625
create_collectable1 1294.5 -249.375 43.9375
create_collectable1 1084.625 -402.75 14.8125
create_collectable1 1033.688 -342.0 14.8125
create_collectable1 939.875 -200.125 5.5625
create_collectable1 974.4375 -126.9375 4.9375
create_collectable1 1086.5 -232.1875 9.1875
create_collectable1 1112.438 -77.5625 9.3125
create_collectable1 1212.5 -137.4375 15.0
create_collectable1 1326.625 -95.25 14.8125
create_collectable1 1155.75 4.0625 1.5
create_collectable1 1101.75 44.5 -0.5625
create_collectable1 922.4375 218.875 9.3125
create_collectable1 -107.125 114.5 2.9375
create_collectable1 475.5 61.625 -19.3125
create_collectable1 -37.25 -36.4375 19.3125
create_collectable1 -249.125 -24.9375 1.4375
create_collectable1 -291.0625 -164.75 1.375
create_collectable1 -46.0625 -341.1875 16.125
create_collectable1 -62.875 -266.375 16.125
create_collectable1 -17.75 -445.6875 18.625
create_collectable1 95.3125 -457.375 16.0
create_collectable1 401.8125 -188.0625 21.3125
create_collectable1 344.625 -610.0 29.0625
create_collectable1 62.3125 -559.375 26.1875
create_collectable1 -52.3125 -567.375 15.875
create_collectable1 -207.1875 -604.625 40.0625
create_collectable1 2.5 -523.3125 26.0625
create_collectable1 -61.8125 -851.3125 20.3125
create_collectable1 43.125 -730.8125 22.6875
create_collectable1 47.1875 -613.5 25.9375
create_collectable1 221.8125 -866.0625 23.125
create_collectable1 634.9375 -675.1875 1.75
create_collectable1 373.8125 -951.375 33.125
create_collectable1 246.375 -961.375 26.0625
create_collectable1 107.875 -1249.75 26.125
create_collectable1 340.25 -1088.688 21.125
create_collectable1 174.5625 -1256.625 32.25
create_collectable1 440.8125 -1392.188 44.3125
create_collectable1 440.25 -1469.438 26.25
create_collectable1 314.0625 -1534.313 35.6875
create_collectable1 177.9375 -1672.75 -6.5
create_collectable1 100.75 -1534.813 28.25
create_collectable1 -40.0 -1547.688 26.125
create_collectable1 -225.625 -1479.625 5.8125
create_collectable1 -43.6875 -1426.813 19.8125
create_collectable1 98.5625 -1396.0 26.4375
create_collectable1 -22.25 -1277.375 26.125
create_collectable1 11.3125 -1105.563 26.375
create_collectable1 -1385.063 537.25 78.0
create_collectable1 -1331.375 218.0625 55.0625
create_collectable1 -1140.563 248.0 3.375
create_collectable1 -831.875 295.5 41.4375
create_collectable1 -670.8125 289.25 59.875
create_collectable1 -706.0 205.875 28.6875
create_collectable1 -410.1875 32.0625 3.9375
create_collectable1 146.1875 1052.625 8.5
create_collectable1 -703.5625 -97.6875 18.25
create_collectable1 -458.3125 -24.0 -19.3125
create_collectable1 -456.875 -27.1875 3.875
create_collectable1 -442.1875 -247.1875 1.5625
create_collectable1 -529.3125 531.8125 210.875
create_collectable1 -362.1875 920.0625 38.75
create_collectable1 -862.8125 198.875 4.25
create_collectable1 -1073.188 36.25 49.125
create_collectable1 -1208.813 -91.4375 58.6875
create_collectable1 -965.3125 -57.75 38.9375
create_collectable1 -799.875 -93.0625 4.625
create_collectable1 -1083.125 -209.8125 43.875
create_collectable1 -822.1875 -181.6875 33.8125
create_collectable1 -1328.188 -519.0625 11.0625
create_collectable1 -1174.75 -569.8125 13.375
create_collectable1 -1250.188 -497.6875 11.0625
create_collectable1 -751.8125 -443.4375 10.75
create_collectable1 8.0 1451.0 14.0625
create_collectable1 -1047.938 -698.0625 11.0625
create_collectable1 -768.25 -658.0625 11.3125
create_collectable1 -627.1875 -723.6875 18.9375
create_collectable1 -1558.063 -909.4375 14.5
create_collectable1 -923.6875 -1260.625 10.8125
set_collectable1_total 100
add_continuous_sound $111 = create_sound 41 at 850.75 -663.6875 15.0
add_continuous_sound $112 = create_sound 42 at 913.5625 -805.5 15.0
add_continuous_sound $113 = create_sound 53 at 970.0 -674.75 15.0
add_continuous_sound $114 = create_sound 53 at 975.0625 -724.0 15.0
add_continuous_sound $115 = create_sound 44 at 1220.0 -310.0 32.0
add_continuous_sound $116 = create_sound 48 at 1318.375 -463.5625 57.0
add_continuous_sound $123 = create_sound 57 at 1579.75 -655.1875 13.0
add_continuous_sound $124 = create_sound 57 at 1504.75 -873.1875 19.0
add_continuous_sound $125 = create_sound 59 at 962.25 -259.6875 10.0
add_continuous_sound $126 = create_sound 7 at 952.5 -148.1875 8.0
add_continuous_sound $127 = create_sound 5 at 861.5 -247.1875 8.0
add_continuous_sound $128 = create_sound 60 at 1469.0 -181.0 56.0
add_continuous_sound $129 = create_sound 37 at 1120.688 -1023.25 23.0
add_continuous_sound $130 = create_sound 51 at -744.6875 -604.0625 10.0
add_sprite_blip_for_coord $SPRAY = create_marker 18 at 925.25 -359.1875 11.0
add_sprite_blip_for_coord $AMMU = create_marker 20 at 1071.25 -400.0625 15.1875
add_sprite_blip_for_coord $BOMB = create_marker 2 at 1282.063 -103.5625 14.75
change_blip_display $SPRAY display 0
change_blip_display $AMMU display 0
change_blip_display $BOMB display 0
switch_ped_roads_off 1065.5 -395.0 0.0 1072.625 -402.6875 20.0
return 

//-------------Mission 0---------------
// Originally: Intro Movie

:MV0
script_name 'MV0'
gosub @MV0_46
if 
  has_deatharrest_been_executed 
goto_if_false @MV0_37
gosub @MV0_2649

:MV0_37
gosub @MV0_2711
terminate_this_script 

:MV0_46
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
clear_wanted_level $PLAYER_CHAR
clear_prints 
load_splash_screen '1ROAD'
do_fade 0 0
remove_all_player_weapons $PLAYER_CHAR
load_mission_audio 'A1_A'
load_special_character 1 'LUIGI'
request_model 157
load_all_models_now 
set_player_control $PLAYER_CHAR can_move 0
force_weather_now 0
set_time_of_day 0 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1020.063 -668.0 14.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1008.625 -679.4375 18.8125 switchstyle 2
switch_widescreen 1
switch_roads_off 1005.563 -635.1875 13.0 1040.625 -688.75 20.0
$4950 = 0

:MV0_218
wait 0
if 
  has_model_loaded 157
goto_if_false @MV0_218
clear_area 1 at 903.5 -680.8125 14.0 range 5.0
clear_area 1 at 972.4375 -679.1875 15.0 range 1.0
clear_area 1 at 1015.438 -676.0625 15.0 range 30.0
create_car $BANSHEE_PICKUP = create_car 157 at 1015.438 -676.0625 -100.0
set_car_heading $BANSHEE_PICKUP z_angle_to 215.6875
change_car_colour $BANSHEE_PICKUP color_to 73 1
set_player_coordinates $PLAYER_CHAR at 976.0625 -679.3125 14.9375
set_player_heading $PLAYER_CHAR z_angle_to 204.0
wait 3000
print_big 'MV0_1' 3000 ms 2
do_fade 1 1000
create_char $KURUMA_PICKUP = create_actor 7 26 at 978.0625 -682.6875 14.9375
set_char_heading $KURUMA_PICKUP z_angle_to 340.0
turn_player_to_face_char $PLAYER_CHAR look_at_actor $KURUMA_PICKUP
char_look_at_player_always $KURUMA_PICKUP to_look_at_player $PLAYER_CHAR
turn_char_to_face_player $KURUMA_PICKUP look_at_player $PLAYER_CHAR
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV0_633
wait 1000
play_mission_audio 
print_now 'MV0_2' time 3000 1
wait 2130
print_now 'MV0_2A' time 4000 1
set_player_coordinates $PLAYER_CHAR at 976.0625 -679.3125 14.9375
set_player_heading $PLAYER_CHAR z_angle_to 204.0
wait 3950
set_fixed_camera_position 986.1875 -686.5 18.9375 rotation 0.0 0.0 0.0
point_camera_at_point 973.75 -680.1875 14.0 switchstyle 2
print_now 'MV0_3' time 3000 1
wait 1190
print_now 'MV0_4' time 4000 1
wait 3790
print_now 'MV0_5' time 6000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 4000
wait 4050
print_now 'MV0_6' time 6000 1
wait 6080

:MV0_633
clear_mission_audio 
clear_prints 
do_fade 0 500
wait 500
set_player_coordinates $PLAYER_CHAR at 976.0625 -679.3125 14.9375
set_player_heading $PLAYER_CHAR z_angle_to 204.0
wait 1000
do_fade 1 1000
set_fixed_camera_position 986.1875 -686.5 18.9375 rotation 0.0 0.0 0.0
point_camera_at_point 973.75 -680.1875 14.0 switchstyle 2
set_char_wait_state $PLAYER_ACTOR anim 0 wait_state_time 0
set_char_obj_run_to_coord $KURUMA_PICKUP run_to 1011.625 -680.5
wait 2000
clear_char_threat_search $KURUMA_PICKUP
add_blip_for_char $IDAHO_PICKUP = create_marker_above_actor $KURUMA_PICKUP
turn_player_to_face_char $PLAYER_CHAR look_at_actor $KURUMA_PICKUP
set_char_obj_run_to_coord $KURUMA_PICKUP run_to 1011.625 -680.5
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_behind_player 
restore_camera_jumpcut 
wait 100
set_player_control $PLAYER_CHAR can_move 1
set_radio_channel 0 1
set_char_obj_no_obj $PLAYER_ACTOR
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
set_char_obj_goto_player_on_foot $KURUMA_PICKUP follow_player $PLAYER_CHAR
set_char_only_damaged_by_player $KURUMA_PICKUP immune_to_nonplayer 1
set_char_cant_be_dragged_out $KURUMA_PICKUP locked_while_in_vehicle 1
set_char_obj_run_to_coord $KURUMA_PICKUP run_to 1013.125 -678.1875
print_now 'MV0_7' time 3000 1
print_help 'HELP2_A'
goto @MV0_900
goto @MV0_2125

:MV0_900
if and
  not is_char_dead $KURUMA_PICKUP
  not is_car_dead $BANSHEE_PICKUP
goto_if_false @MV0_2649
wait 100
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1013.125 -678.1875 14.9375 radius 10.0 10.0 10.0
goto_if_false @MV0_900
print_now 'MV0_8' time 3000 1
print_help 'EBAL_1'
set_char_obj_enter_car_as_passenger $KURUMA_PICKUP go_to_car $BANSHEE_PICKUP
remove_blip $IDAHO_PICKUP
add_blip_for_car $CARPICK = create_marker_above_car $BANSHEE_PICKUP
change_blip_colour $CARPICK color_to 1
$MV0SAY_9 = 0
$MV0SAY_10 = 0
$MV0SAY_11 = 0
$MV0SAY_12 = 0

:MV0_1042
wait 0
if and
  not is_char_dead $KURUMA_PICKUP
  not is_car_dead $BANSHEE_PICKUP
goto_if_false @MV0_2649
if and
  is_char_in_car $KURUMA_PICKUP in_car $BANSHEE_PICKUP
  is_player_in_car $PLAYER_CHAR in_car $BANSHEE_PICKUP
goto_if_false @MV0_1042
switch_roads_on 1005.563 -635.1875 13.0 1040.625 -688.75 20.0
clear_prints 
remove_blip $IDAHO_PICKUP
set_radio_channel 5 5
goto @MV0_1162

:MV0_1134
if and
  not is_char_dead $KURUMA_PICKUP
  not is_car_dead $BANSHEE_PICKUP
goto_if_false @MV0_2649
goto @MV0_1162

:MV0_1162
wait 100
if and
  is_char_in_car $KURUMA_PICKUP in_car $BANSHEE_PICKUP
  is_player_in_car $PLAYER_CHAR in_car $BANSHEE_PICKUP
goto_if_false @MV0_1134
set_radio_channel 5 5
print_help 'EBAL_3'
print_now 'MV0_9' time 10000 1
add_sphere $INFERNUS_PICKUP = create_sphere 1198.813 -321.0625 24.375 4.0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1198.813 -321.0625 24.375 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
get_game_timer $GAME_TIME1

:MV0_1271
change_blip_display $CARPICK display 3

:MV0_1278
wait 10
if and
  not is_char_dead $KURUMA_PICKUP
  not is_car_dead $BANSHEE_PICKUP
goto_if_false @MV0_2649
if 
  is_player_in_car $PLAYER_CHAR in_car $BANSHEE_PICKUP
goto_if_false @MV0_1271
change_blip_display $CARPICK display 0
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if and
  $MV0SAY_9 == 0
  $GAME_TIME2 > 4000
goto_if_false @MV0_1390
print_now 'MV0_10' time 10000 1
$MV0SAY_9 = 1

:MV0_1390
if and
  $MV0SAY_10 == 0
  $GAME_TIME2 > 9000
goto_if_false @MV0_1438
print_now 'MV0_11' time 10000 1
$MV0SAY_10 = 1

:MV0_1438
if and
  $MV0SAY_11 == 0
  $GAME_TIME2 > 13000
goto_if_false @MV0_1486
print_now 'MV0_12' time 10000 1
$MV0SAY_11 = 1

:MV0_1486
if and
  $MV0SAY_12 == 0
  $GAME_TIME2 > 18000
goto_if_false @MV0_1534
print_now 'MV0_14' time 5000 1
$MV0SAY_12 = 1

:MV0_1534
if and
  is_player_in_car $PLAYER_CHAR in_car $BANSHEE_PICKUP
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1198.813 -321.0625 24.375 radius 4.0 4.0 3.0
goto_if_false @MV0_1278
set_player_control $PLAYER_CHAR can_move 0
remove_sphere $INFERNUS_PICKUP
remove_blip $TAXI_PICKUP
set_char_obj_leave_car $PLAYER_ACTOR leave_car $BANSHEE_PICKUP
set_char_obj_leave_car $KURUMA_PICKUP leave_car $BANSHEE_PICKUP
load_splash_screen 'VINI'
wait 1000
do_fade 0 1000
wait 1000
set_car_coordinates $BANSHEE_PICKUP at 1198.813 -321.0625 -100.0
set_player_coordinates $PLAYER_CHAR at 1202.0 -320.9375 -100.0
set_char_coordinates $KURUMA_PICKUP at 1205.125 -320.9375 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_car_heading $BANSHEE_PICKUP z_angle_to 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
clear_area 1 at 1203.563 -320.875 24.9375 range 20.0
switch_widescreen 1
set_fixed_camera_position 1203.125 -327.3125 24.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1203.125 -320.9375 24.9375 switchstyle 2
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV0_1919
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV0_1919
print_now 'MV0_15' time 6000 1
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 2000
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV0_1919
print_now 'MV0_15A' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV0_1919
set_char_obj_run_to_coord $KURUMA_PICKUP run_to 1208.125 -320.9375
wait 1000

:MV0_1919
clear_prints 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
do_fade 0 500
wait 500
switch_widescreen 0
delete_char $KURUMA_PICKUP
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_sphere $INFERNUS_PICKUP = create_sphere 951.5 -425.4375 15.0 2.5
add_sprite_blip_for_coord $TAXI_PICKUP = create_marker 17 at 946.125 -422.625 14.375

:MV0_2023
wait 100
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 951.5 -425.4375 15.0 radius 20.0 20.0 20.0
goto_if_false @MV0_2023
print_now 'MV0_16' time 4000 1

:MV0_2078
wait 10
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 951.5 -425.4375 15.0 radius 2.0 2.0 2.0
goto_if_false @MV0_2078
goto @MV0_2125

:MV0_2125
clear_prints 
switch_widescreen 1
set_fixed_camera_position 957.5625 -432.0 19.9375 rotation 0.0 0.0 0.0
point_camera_at_point 951.5 -425.4375 16.0 switchstyle 1
remove_sphere $INFERNUS_PICKUP
remove_blip $TAXI_PICKUP
set_player_control $PLAYER_CHAR can_move 0
print_help 'MV0_17'
wait 4000
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0
restore_camera 
play_mission_passed_tune 1
player_made_progress 1
$PROGRESS_100 += 1
print_big 'M_PASS1' 6000 ms 1
register_mission_passed 'MV0_1'
clear_wanted_level $PLAYER_CHAR
$ONMISSION = 0
clear_wanted_level $PLAYER_CHAR
set_player_control $PLAYER_CHAR can_move 1
$4422 = 1
$HOSPITAL1_OPEN = 1
start_new_script @I_SAVE 
start_new_script @TWO 
return 
start_new_script @ONE 
start_new_script @TWO 
start_new_script @THREE 
start_new_script @FOUR 
start_new_script @FIVE 
start_new_script @SIX 
start_new_script @SEVEN 
start_new_script @EIGHT 
start_new_script @NINE 
start_new_script @TEN 
start_new_script @ELEV 
start_new_script @TWEL 
start_new_script @THIRT 
start_new_script @FORT 
start_new_script @FIFT 
start_new_script @SIXT 
start_new_script @SEVENT 
start_new_script @EIGHTT 
start_new_script @NINT 
start_new_script @TWENT 
start_new_script @TWENT1 
start_new_script @TWENT2 
start_new_script @TWENT3 
start_new_script @TWENT4 
start_new_script @TWENT5 
start_new_script @TWENT6 
start_new_script @TWENT7 
start_new_script @TWENT8 
start_new_script @TWENT9 
start_new_script @THIRTY 
start_new_script @THIRTY1 
start_new_script @THIRTY2 
start_new_script @THIRTY3 
start_new_script @THIRTY4 
start_new_script @THIRTY5 
start_new_script @THIRTY6 
start_new_script @THIRTY7 
start_new_script @THIRTY8 
start_new_script @THIRTY9 
start_new_script @FORTY 
start_new_script @PHOME 
start_new_script @MAPMARK 
start_new_script @GYMGAME 

:MV0_2649
print_big 'M_FAIL' 6000 ms 1
set_player_control $PLAYER_CHAR can_move 0
if 
  not is_player_dead $PLAYER_CHAR
goto_if_false @MV0_2709
load_splash_screen 'START'
do_fade 0 2000
wait 2000

:MV0_2709
return 

:MV0_2711
remove_blip $TAXI_PICKUP
remove_blip $IDAHO_PICKUP
remove_blip $CARPICK
remove_char_elegantly $KURUMA_PICKUP
remove_sphere $INFERNUS_PICKUP
mark_model_as_no_longer_needed 157
unload_special_character 1
$ONMISSION = 0
mission_has_finished 
if 
  $4422 == 0
goto_if_false @MV0_2780
start_new_script @ONE 

:MV0_2780
return 

//-------------Mission 1---------------
// Originally: Hospital Info Scene

:MV1
gosub @MV1_36
if 
  has_deatharrest_been_executed 
goto_if_false @MV1_27
gosub @MV1_1383

:MV1_27
gosub @MV1_1419
terminate_this_script 

:MV1_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'MV1'
load_special_character 1 'LUIGI'
load_special_character 2 'GOON'
load_all_models_now 
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
load_splash_screen 'VINI'
do_fade 0 1000
wait 1000
print_big 'MV1_2' 6000 ms 2

:MV1_137
wait 0
if 
  has_model_loaded 10
goto_if_false @MV1_137
clear_area 1 at 1383.375 -398.4375 50.0625 range 5.0
create_char $KURUMA_PICKUP = create_actor 21 26 at 1217.063 -311.3125 -100.0
set_player_coordinates $PLAYER_CHAR at 1213.688 -311.8125 -100.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 1210.125 -328.125 37.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1215.063 -311.3125 29.9375 switchstyle 2
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:MV1_303
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MV1_331
goto @MV1_605

:MV1_331
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MV1_303
clear_help 
load_mission_audio 'A3_A'
wait 1000
play_mission_audio 
TIMERA = 0
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000
print_now 'MV1_3' time 10000 1

:MV1_403
wait 0
if 
  TIMERA >= 4220
goto_if_false @MV1_403
print_now 'MV1_3A' time 10000 1

:MV1_441
wait 0
if 
  TIMERA >= 11060
goto_if_false @MV1_441
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MV1_4' time 10000 1

:MV1_489
wait 0
if 
  TIMERA >= 15130
goto_if_false @MV1_489
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000
print_now 'MV1_5' time 10000 1

:MV1_537
wait 0
if 
  TIMERA >= 18200
goto_if_false @MV1_537
print_now 'MV1_5A' time 10000 1

:MV1_575
wait 0
if 
  TIMERA >= 24120
goto_if_false @MV1_575
clear_prints 
wait 1000

:MV1_605
clear_help 
clear_small_prints 
clear_mission_audio 
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
add_score $PLAYER_CHAR money += 250
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
switch_widescreen 0
delete_char $KURUMA_PICKUP
set_player_coordinates $PLAYER_CHAR at 1203.688 -320.75 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
change_blip_display $AMMU display 3
set_player_control $PLAYER_CHAR can_move 1
print_now 'MV1_6' time 6000 1

:MV1_736
wait 400
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1067.938 -395.5625 15.1875 radius 3.0 3.0 3.0
goto_if_false @MV1_736
wait 2000
create_char $FDLK = create_actor 21 27 at 1077.5 -828.6875 14.9375
give_weapon_to_char $FDLK weapon 1 ammo 250
set_char_health $FDLK health_to 250
add_blip_for_char $IDAHO_PICKUP = create_marker_above_actor $FDLK
change_blip_colour $IDAHO_PICKUP color_to 0
change_blip_scale $IDAHO_PICKUP size 3
wait 500
remove_blip $GUNSTO
wait 1000
print_help 'MV1_8'
wait 10000
print_now 'MV1_7' time 5000 1

:MV1_885
wait 0
if 
  not is_char_dead $FDLK
goto_if_false @MV1_1277
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 1077.5 -828.6875 14.9375 radius 25.0 25.0 25.0
goto_if_false @MV1_1095
set_player_control $PLAYER_CHAR can_move 0
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
wait 100
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR
switch_widescreen 1
wait 2000
set_fixed_camera_position 1048.625 -795.375 22.9375 rotation 0.0 0.0 0.0
point_camera_at_char $FDLK mode 15 switchstyle 2
turn_char_to_face_player $FDLK look_at_player $PLAYER_CHAR
turn_player_to_face_char $PLAYER_CHAR look_at_actor $FDLK
wait 1000
print_now 'MV1_9' time 4000 1
wait 4000
print_now 'MV1_10' time 4000 1
wait 4000
restore_camera_jumpcut 
switch_widescreen 0
set_char_obj_kill_player_any_means $FDLK kill_player $PLAYER_CHAR
set_player_control $PLAYER_CHAR can_move 1
goto @MV1_1277

:MV1_1095
wait 0
if 
  not is_char_dead $FDLK
goto_if_false @MV1_1277
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1077.5 -828.6875 14.9375 radius 25.0 25.0 25.0
goto_if_false @MV1_885
switch_widescreen 1
set_fixed_camera_position 1048.625 -795.375 22.9375 rotation 0.0 0.0 0.0
point_camera_at_char $FDLK mode 15 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
wait 100
turn_char_to_face_player $FDLK look_at_player $PLAYER_CHAR
turn_player_to_face_char $PLAYER_CHAR look_at_actor $FDLK
wait 1000
print_now 'MV1_9' time 4000 1
wait 4000
print_now 'MV1_10' time 4000 1
wait 4000
switch_widescreen 0
restore_camera_jumpcut 
set_char_obj_kill_player_any_means $FDLK kill_player $PLAYER_CHAR
set_player_control $PLAYER_CHAR can_move 1

:MV1_1277
wait 100
if 
  is_char_dead $FDLK
goto_if_false @MV1_1277
print_with_number_big 'M_PASS' 1000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 1000
remove_blip $IDAHO_PICKUP
clear_wanted_level $PLAYER_CHAR
$4423 = 1
start_new_script @THREE 
start_new_script @PRACE1 
register_mission_passed 'MV1_2'
return 

:MV1_1383
print_big 'M_FAIL' 6000 ms 1
remove_char_elegantly $FDLK
$4423 = 0
change_blip_display $VINI display 3
return 

:MV1_1419
$ONMISSION = 0
remove_blip $IDAHO_PICKUP
unload_special_character 2
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 
terminate_this_script 

//-------------Mission 2---------------
// Originally: Police Station Info Scene

:MV2
gosub @MV2_36
if 
  has_deatharrest_been_executed 
goto_if_false @MV2_27
gosub @MV2_1821

:MV2_27
gosub @MV2_1852
terminate_this_script 

:MV2_36
$ONMISSION = 1
load_splash_screen 'VINI'
set_fading_colour 0 0 0
register_mission_given 
script_name 'MV2'
request_model 10
request_model 53
request_model 119
load_special_character 1 'LUIGI'
load_all_models_now 
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
print_big 'MV2_2' 6000 ms 2
$73C = 73
$72C = 72

:MV2_151
wait 0
if and
  has_model_loaded 10
  has_model_loaded 53
  has_model_loaded 119
goto_if_false @MV2_151
clear_area 1 at 1383.375 -398.4375 50.0625 range 10.0
create_char $KURUMA_PICKUP = create_actor 21 26 at 1217.063 -311.3125 -100.0
set_player_coordinates $PLAYER_CHAR at 1214.063 -311.3125 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 1210.125 -328.125 37.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1215.063 -311.3125 29.9375 switchstyle 2
do_fade 1 1000
wait 1000
print_help 'TALK'

:MV2_325
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MV2_353
goto @MV2_533

:MV2_353
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MV2_325
clear_help 
load_mission_audio 'A4_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MV2_3' time 10000 1
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000

:MV2_425
wait 0
if 
  TIMERA >= 6080
goto_if_false @MV2_425
print_now 'MV2_4' time 10000 1

:MV2_463
wait 0
if 
  TIMERA >= 15060
goto_if_false @MV2_463
print_now 'MV2_5' time 10000 1

:MV2_501
wait 0
if 
  TIMERA >= 19280
goto_if_false @MV2_501
clear_prints 
wait 1000
clear_mission_audio 

:MV2_533
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 1203.688 -320.75 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $KURUMA_PICKUP
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
create_car $M3CAR = create_car 119 at 1145.625 -1177.875 11.8125
change_car_colour $M3CAR color_to 73 72
create_char $M3KILL = create_actor 21 53 at 1159.375 -1170.813 11.8125
set_char_heed_threats $M3KILL heed_threats 1
set_char_heading $M3KILL z_angle_to 109.0
set_car_heading $M3CAR z_angle_to 0
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $M3CAR
change_blip_colour $TAXI_PICKUP color_to 1
give_weapon_to_char $M3KILL weapon 2 ammo 250

:MV2_722
wait 0
if or
  locate_player_on_foot_3d $PLAYER_CHAR 0 1142.25 -1176.25 11.8125 radius 20.0 20.0 20.0
  locate_player_in_car_3d $PLAYER_CHAR 0 1142.25 -1176.25 11.8125 radius 20.0 20.0 120.0
goto_if_false @MV2_722
set_char_obj_run_to_coord $M3KILL run_to 1152.125 -1173.313
wait 2500
if 
  not is_char_dead $M3KILL
goto_if_false @MV2_1091
print_now 'MV2_6' time 3000 1
add_pager_message 'MV2_7' 300 10 2

:MV2_851
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1142.25 -1176.25 11.8125 radius 30.0 30.0 30.0
goto_if_false @MV2_1064
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
if 
  not is_char_dead $M3KILL
goto_if_false @MV2_1091
if 
  is_player_in_car $PLAYER_CHAR in_car $M3CAR
goto_if_false @MV2_851
set_char_obj_kill_player_any_means $M3KILL kill_player $PLAYER_CHAR
remove_blip $TAXI_PICKUP
goto @MV2_1009

:MV2_962
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1142.25 -1176.25 11.8125 radius 30.0 30.0 30.0
goto_if_false @MV2_1064
goto @MV2_1009

:MV2_1009
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
if 
  is_char_dead $M3KILL
goto_if_false @MV2_962
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
goto @MV2_1091

:MV2_1064
print_now 'MV2_13' time 6000 1
wait 1000
goto @MV2_1821

:MV2_1091
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
print_now 'MV2_8' time 5000 1
goto @MV2_1136

:MV2_1129
change_blip_display $TAXI_PICKUP display 3

:MV2_1136
wait 0
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
if 
  is_player_in_car $PLAYER_CHAR in_car $M3CAR
goto_if_false @MV2_1129
change_blip_display $TAXI_PICKUP display 0
wait 3000
change_blip_display $SPRAY display 3
print_now 'MV2_9' time 5000 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 2
add_sphere $INFERNUS_PICKUP = create_sphere 925.625 -358.6875 10.375 4.0
  has_respray_happened $SPRAYSHOP1
set_free_resprays 1
goto @MV2_1256

:MV2_1249
change_blip_display $TAXI_PICKUP display 3

:MV2_1256
wait 0
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
if 
  is_player_in_car $PLAYER_CHAR in_car $M3CAR
goto_if_false @MV2_1249
change_blip_display $TAXI_PICKUP display 0
if 
  is_player_in_car $PLAYER_CHAR in_car $M3CAR
goto_if_false @MV2_1256
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 925.625 -358.6875 10.375 radius 6.0 6.0 5.0
goto_if_false @MV2_1256
add_pager_message 'MV2_10' 140 10 2

:MV2_1374
wait 0
if 
  has_respray_happened $SPRAYSHOP1
goto_if_false @MV2_1374
remove_sphere $INFERNUS_PICKUP
wait 2000
add_pager_message 'MV2_11' 140 10 2
add_sphere $MV2SPHERE = create_sphere 953.1875 -429.0625 14.5 4.0
add_blip_for_coord_old $INFERNUS_PICKUP = create_marker_at 953.1875 -429.0625 14.5 color 5 display 2
change_blip_scale $INFERNUS_PICKUP size 3
set_free_resprays 0
goto @MV2_1481

:MV2_1474
change_blip_display $TAXI_PICKUP display 3

:MV2_1481
wait 0
if 
  not is_car_dead $M3CAR
goto_if_false @MV2_1821
if 
  is_player_in_car $PLAYER_CHAR in_car $M3CAR
goto_if_false @MV2_1474
change_blip_display $TAXI_PICKUP display 0
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 953.1875 -429.0625 14.5 radius 4.0 4.0 3.0
goto_if_false @MV2_1481
set_char_obj_leave_car $PLAYER_ACTOR leave_car $M3CAR
get_car_colours $M3CAR color $73C $72C
set_player_control $PLAYER_CHAR can_move 0

:MV2_1589
wait 0
  not is_player_in_car $PLAYER_CHAR in_car $M3CAR
goto_if_false @MV2_1589
remove_blip $INFERNUS_PICKUP
remove_sphere $MV2SPHERE
wait 1000
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 951.5 -425.4375 14.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_car $M3CAR
clear_wanted_level $PLAYER_CHAR
wait 500
do_fade 1 1000
wait 1000
print_now 'MV2_12' time 5000 1
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 3000 5000 ms 1
create_car_generator $V2HOME_CAR = init_parked_car_generator 119 $73C $72C 1 alarm 0 door_lock 0 0 10000 at 953.1875 -429.0625 -100.0 angle 90.0
switch_car_generator $V2HOME_CAR cars_to_generate_to 101
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 3000
$4424 = 1
start_new_script @FOUR 
register_mission_passed 'MV2_2'
return 

:MV2_1821
print_big 'M_FAIL' 6000 ms 1
$4424 = 0
change_blip_display $VINI display 3
return 

:MV2_1852
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_blip $INFERNUS_PICKUP
remove_sphere $MV2SPHERE
remove_sphere $INFERNUS_PICKUP
remove_char_elegantly $M3KILL
remove_char_elegantly $KURUMA_PICKUP
$M3CAR = -1
mark_model_as_no_longer_needed 10
mark_model_as_no_longer_needed 53
mark_model_as_no_longer_needed 119
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 3---------------
// Originally: RC Diablo Destruction

:MV3
gosub @MV3_36
if 
  has_deatharrest_been_executed 
goto_if_false @MV3_27
gosub @MV3_2196

:MV3_27
gosub @MV3_2227
terminate_this_script 

:MV3_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'MV3'
load_special_character 1 'LUIGI'
request_model 22
request_model 23
load_all_models_now 
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
load_splash_screen 'VINI'
do_fade 0 1000
wait 1000
print_big 'MV3_2' 3000 ms 2

:MV3_133
wait 0
if and
  has_model_loaded 22
  has_model_loaded 23
goto_if_false @MV3_133
wait 1000
clear_area 1 at 1383.375 -398.4375 50.0625 range 10.0
create_char $KURUMA_PICKUP = create_actor 21 26 at 1217.063 -311.3125 -100.0
set_player_coordinates $PLAYER_CHAR at 1214.063 -311.3125 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 1210.125 -328.125 37.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1215.063 -311.3125 29.9375 switchstyle 2
do_fade 1 1000
wait 1000
print_help 'TALK'

:MV3_308
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MV3_336
goto @MV3_574

:MV3_336
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MV3_308
clear_help 
load_mission_audio 'A4_B'
wait 1000
play_mission_audio 
TIMERA = 0
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000
print_now 'MV3_3' time 10000 1

:MV3_408
wait 0
if 
  TIMERA >= 7240
goto_if_false @MV3_408
print_now 'MV3_3A' time 10000 1

:MV3_446
wait 0
if 
  TIMERA >= 10270
goto_if_false @MV3_446
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MV3_4' time 10000 1

:MV3_494
wait 0
if 
  TIMERA >= 13150
goto_if_false @MV3_494
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 4000
print_now 'MV3_5' time 10000 1

:MV3_542
wait 0
if 
  TIMERA >= 19140
goto_if_false @MV3_542
clear_prints 
wait 1000
clear_mission_audio 

:MV3_574
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 1203.688 -320.75 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $KURUMA_PICKUP
do_fade 1 500
wait 500
set_player_control $PLAYER_CHAR can_move 1
create_pickup $M4PICK = create_pickup #BRIEFCASE type 3 at 1286.063 -568.0 14.25
add_blip_for_pickup $TAXI_PICKUP = create_marker_above_pickup $M4PICK

:MV3_699
wait 100
if 
  has_pickup_been_collected $M4PICK
goto_if_false @MV3_699
remove_blip $TAXI_PICKUP
wait 2000
print_now 'MV3_6' time 5000 1
create_pickup $M4PICK2 = create_pickup #BRIEFCASE type 3 at 1178.438 -1018.063 14.8125
add_blip_for_pickup $TAXI_PICKUP = create_marker_above_pickup $M4PICK2
wait 4000
create_char $M4KILL = create_actor 21 22 at 1175.938 -1015.188 14.8125
create_char $M4KILL2 = create_actor 21 23 at 1183.375 -1014.188 14.8125
give_weapon_to_char $M4KILL weapon 2 ammo 999
give_weapon_to_char $M4KILL2 weapon 2 ammo 999
set_char_threat_search $M4KILL search_threat 1
set_char_threat_search $M4KILL2 search_threat 1
set_char_heed_threats $M4KILL heed_threats 1
set_char_heed_threats $M4KILL2 heed_threats 1

:MV3_859
wait 100
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1175.938 -1015.188 14.8125 radius 20.0 20.0 20.0
goto_if_false @MV3_859
wait 100
print_now 'MV3_7' time 3000 1
wait 100
set_char_obj_kill_player_on_foot $M4KILL kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M4KILL2 kill_player $PLAYER_CHAR

:MV3_938
wait 100
if 
  has_pickup_been_collected $M4PICK2
goto_if_false @MV3_938
remove_blip $TAXI_PICKUP
print_now 'MV3_8' time 4000 1
add_sphere $MV3SPHERE = create_sphere 1253.688 -713.5625 16.0625 2.5
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1253.688 -713.5625 16.0625 color 6 display 2
change_blip_scale $TAXI_PICKUP size 3

:MV3_1020
wait 100
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1253.688 -713.5625 16.0625 radius 2.0 2.0 2.0
goto_if_false @MV3_1020
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
create_char $M4KILL3 = create_actor 13 22 at 1259.125 -737.375 15.125
create_char $M4KILL4 = create_actor 21 23 at 1263.875 -722.625 17.875
create_char $M4KILL5 = create_actor 21 22 at 1237.875 -753.3125 15.125
create_char $M4KILL6 = create_actor 21 22 at 1247.563 -718.0625 15.125
create_char $M4KILL7 = create_actor 21 22 at 1251.625 -744.1875 15.125
give_weapon_to_char $M4KILL4 weapon 2 ammo 999
give_weapon_to_char $M4KILL5 weapon 3 ammo 999
give_weapon_to_char $M4KILL6 weapon 2 ammo 999
give_weapon_to_char $M4KILL7 weapon 3 ammo 999
set_char_heading $M4KILL3 z_angle_to 4.375
set_char_heading $M4KILL4 z_angle_to 314.0
set_char_heading $M4KILL5 z_angle_to 44.0
set_char_heading $M4KILL6 z_angle_to 314.0
set_char_heading $M4KILL7 z_angle_to 314.0
set_char_stay_in_same_place $M4KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $M4KILL5 maintain_position_when_attacked 1
remove_blip $TAXI_PICKUP
remove_sphere $MV3SPHERE
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 193.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
wait 1000
set_fixed_camera_position 1261.75 -739.875 15.125 rotation 0.0 0.0 0.0
point_camera_at_point 1253.688 -713.5625 16.0625 switchstyle 2
turn_char_to_face_char $M4KILL3 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $M4KILL3
wait 1000
print_now 'MV3_9' time 4000 1
wait 4000
print_now 'MV3_10' time 6000 1
wait 6000
set_char_obj_run_to_coord $M4KILL3 run_to 1238.938 -760.375
print_now 'MV3_11' time 6000 1
add_armour_to_char $M4KILL3 armour_to 200
wait 6000
switch_widescreen 0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
print_now 'MV3_16' time 3000 1
set_char_obj_kill_player_any_means $M4KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $M4KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $M4KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $M4KILL7 kill_player $PLAYER_CHAR
wait 1000
add_blip_for_char $KILL_PICKUP3 = create_marker_above_actor $M4KILL3
change_blip_colour $KILL_PICKUP3 color_to 0
wait 1000
set_char_obj_flee_player_on_foot_always $M4KILL3 avoid_player $PLAYER_CHAR

:MV3_1523
wait 100
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $M4KILL3 radius 80.0 80.0 80.0
goto_if_false @MV3_2196
if 
  is_char_dead $M4KILL3
goto_if_false @MV3_1523
remove_blip $KILL_PICKUP3
get_char_coordinates $M4KILL3 position_to $M4KILL3_X $M4KILL3_Y $M4KILL3_Z
wait 100
create_pickup $M4PICK3 = create_pickup #BRIEFCASE type 3 at $M4KILL3_X $M4KILL3_Y $M4KILL3_Z
add_blip_for_pickup $TAXI_PICKUP = create_marker_above_pickup $M4PICK3

:MV3_1622
wait 0
if 
  has_pickup_been_collected $M4PICK3
goto_if_false @MV3_1622
remove_blip $TAXI_PICKUP
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1203.688 -320.75 24.9375 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MV3SPHERE = create_sphere 1203.688 -320.75 24.9375 2.5

:MV3_1689
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1203.688 -320.75 24.9375 radius 2.0 2.0 2.0
goto_if_false @MV3_1689
do_fade 0 1000
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 1203.563 -320.875 24.9375 range 20.0
create_char $KURUMA_PICKUP = create_actor 21 26 at 1205.125 -320.9375 -100.0
set_player_coordinates $PLAYER_CHAR at 1202.0 -320.9375 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 1203.125 -327.3125 24.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1203.125 -320.9375 24.9375 switchstyle 2
remove_blip $TAXI_PICKUP
remove_sphere $MV3SPHERE
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV3_2023
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV3_2023
print_now 'MV3_13' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV3_2023
print_now 'MV3_14' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV3_2023
print_now 'MV3_15' time 5000 1
wait 5000

:MV3_2023
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 1203.688 -320.75 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $KURUMA_PICKUP
do_fade 1 500
wait 500
clear_wanted_level $PLAYER_CHAR
set_player_control $PLAYER_CHAR can_move 1
wait 1000
print_with_number_big 'M_PASS' 3000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 3000
$4425 = 1
start_new_script @FIVE 
register_mission_passed 'MV3_2'
return 

:MV3_2196
print_big 'M_FAIL' 6000 ms 1
$4425 = 0
change_blip_display $VINI display 3
return 

:MV3_2227
$ONMISSION = 0
remove_pickup $M4PICK
remove_pickup $M4PICK2
remove_pickup $M4PICK3
remove_blip $TAXI_PICKUP
remove_blip $KILL_PICKUP3
remove_sphere $MV3SPHERE
remove_char_elegantly $M4KILL
remove_char_elegantly $M4KILL2
remove_char_elegantly $M4KILL3
remove_char_elegantly $M4KILL4
remove_char_elegantly $M4KILL5
remove_char_elegantly $M4KILL6
remove_char_elegantly $M4KILL7
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 4---------------
// Originally: RC Mafia Massacre

:MV4
gosub @MV4_36
if 
  has_deatharrest_been_executed 
goto_if_false @MV4_27
gosub @MV4_1203

:MV4_27
gosub @MV4_1234
terminate_this_script 

:MV4_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'MV4'
load_special_character 1 'LUIGI'
request_model 22
request_model 23
request_model 49
request_model 139
load_all_models_now 
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
load_splash_screen 'VINI'
do_fade 0 1000
wait 1000
print_big 'MV4_2' 3000 ms 2

:MV4_142
wait 0
if and
  has_model_loaded 22
  has_model_loaded 23
  has_model_loaded 49
  has_model_loaded 139
goto_if_false @MV4_142
clear_area 1 at 1383.375 -398.4375 50.0625 range 10.0
create_char $KURUMA_PICKUP = create_actor 21 26 at 1217.063 -311.3125 -100.0
set_player_coordinates $PLAYER_CHAR at 1214.063 -311.3125 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 1210.125 -328.125 37.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1215.063 -311.3125 29.9375 switchstyle 2
do_fade 1 1000
wait 1000
print_help 'TALK'

:MV4_321
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MV4_349
goto @MV4_549

:MV4_349
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MV4_321
clear_help 
load_mission_audio 'A4_C'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MV4_3' time 10000 1
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000

:MV4_421
wait 0
if 
  TIMERA >= 6190
goto_if_false @MV4_421
print_now 'MV4_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MV4_469
wait 0
if 
  TIMERA >= 8270
goto_if_false @MV4_469
print_now 'MV4_5' time 10000 1
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000

:MV4_517
wait 0
if 
  TIMERA >= 14000
goto_if_false @MV4_517
clear_prints 
wait 1000
clear_mission_audio 

:MV4_549
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 1203.688 -320.75 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $KURUMA_PICKUP
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
create_char $M5KILL1 = create_actor 13 22 at 1314.688 -753.5 15.0
set_char_heading $M5KILL1 z_angle_to 199.0
set_char_personality $M5KILL1 ped_stats_to 16
char_wander_dir $M5KILL1 wander_direction 0
add_blip_for_char $KILL_PICKUP1 = create_marker_above_actor $M5KILL1
change_blip_colour $KILL_PICKUP1 color_to 0
give_weapon_to_char $M5KILL1 weapon 3 ammo 999
set_char_threat_search $M5KILL1 search_threat 1

:MV4_720
wait 0
if 
  is_char_dead $M5KILL1
goto_if_false @MV4_720
remove_blip $KILL_PICKUP1
create_char $M5KILL2 = create_actor 13 22 at 1035.813 -1014.813 15.0
set_char_heading $M5KILL2 z_angle_to 266.0
add_blip_for_char $KILL_PICKUP2 = create_marker_above_actor $M5KILL2
change_blip_colour $KILL_PICKUP2 color_to 0
create_char $M5OLD = create_actor 21 49 at 1039.063 -1013.688 14.9375
set_char_heading $M5OLD z_angle_to 266.0
turn_char_to_face_char $M5OLD look_at_actor $M5KILL2
turn_char_to_face_char $M5KILL2 look_at_actor $M5OLD
give_weapon_to_char $M5KILL2 weapon 2 ammo 999
set_char_threat_search $M5KILL2 search_threat 1
set_char_heed_threats $M5KILL2 heed_threats 1
set_char_wait_state $M5KILL2 anim 19 wait_state_time 4000

:MV4_862
wait 0
if 
  not is_char_dead $M5KILL2
goto_if_false @MV4_965
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1035.813 -1014.813 15.0 radius 30.0 30.0 30.0
goto_if_false @MV4_862
set_char_wait_state $M5OLD anim 14 wait_state_time 100000
print_now 'MV4_6' time 4000 1
wait 4000
print_now 'MV4_7' time 3000 1

:MV4_965
wait 0
if 
  is_char_dead $M5KILL2
goto_if_false @MV4_965
remove_blip $KILL_PICKUP2
wait 1000
create_car $M5CAR = create_car 139 at 1070.625 -840.9375 14.8125
set_car_heading $M5CAR z_angle_to 266
lock_car_doors $M5CAR door_status_to 3
create_char_inside_car $M5KILL3 = create_actor 21 23 in_car $M5CAR
set_car_cruise_speed $M5CAR max_speed_to 25.0
wait 200
set_car_driving_style $M5CAR traffic_behavior_to 2
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $M5CAR
set_car_only_damaged_by_player $M5CAR immune_to_nonplayer 1

:MV4_1074
wait 0
if 
  is_car_dead $M5CAR
goto_if_false @MV4_1074
remove_blip $TAXI_PICKUP
print_with_number_big 'M_PASS' 1000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 1000
remove_blip $TAXI_PICKUP
remove_char_elegantly $M5KILL3
clear_wanted_level $PLAYER_CHAR
$4426 = 1
print_now 'MV4_8' time 6000 1
set_threat_for_ped_type 13 add_threat 1
start_new_script @SIX 
register_mission_passed 'MV4_2'
return 

:MV4_1203
print_big 'M_FAIL' 6000 ms 1
$4426 = 0
change_blip_display $VINI display 3
return 

:MV4_1234
$ONMISSION = 0
remove_blip $KILL_PICKUP2
remove_blip $KILL_PICKUP1
remove_blip $TAXI_PICKUP
remove_char_elegantly $M5KILL3
remove_char_elegantly $M5KILL2
remove_char_elegantly $M5KILL1
remove_char_elegantly $M5OLD
$M5CAR = -1
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 49
mark_model_as_no_longer_needed 139
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 5---------------
// Originally: RC Rumpo Rampage

:MV5
gosub @MV5_36
if 
  has_deatharrest_been_executed 
goto_if_false @MV5_27
gosub @MV5_1728

:MV5_27
gosub @MV5_1759
terminate_this_script 

:MV5_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'MV5'
request_model 116
request_model 1
request_model 2
load_special_character 1 'EIGHT2'
load_special_character 2 'LUIGI'
load_all_models_now 
load_splash_screen 'VINI'
do_fade 0 1000
print_big 'MV5_2' 3000 ms 2
wait 1000
create_char $KURUMA_PICKUP = create_actor 21 27 at 1217.063 -311.3125 -100.0
set_player_coordinates $PLAYER_CHAR at 1214.063 -311.3125 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
clear_area 1 at 1383.375 -398.4375 50.0625 range 10.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 1210.125 -328.125 37.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1215.063 -311.3125 29.9375 switchstyle 2
do_fade 1 1000
wait 1000
print_help 'TALK'

:MV5_285
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MV5_313
goto @MV5_455

:MV5_313
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MV5_285
clear_help 
load_mission_audio 'A4_D'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MV5_3' time 10000 1
set_char_wait_state $KURUMA_PICKUP anim 19 wait_state_time 3000

:MV5_385
wait 0
if 
  TIMERA >= 5040
goto_if_false @MV5_385
print_now 'MV5_4' time 10000 1

:MV5_423
wait 0
if 
  TIMERA >= 12290
goto_if_false @MV5_423
clear_prints 
wait 1000
clear_mission_audio 

:MV5_455
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 1203.688 -320.75 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $KURUMA_PICKUP
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_sphere $MV5SPHERE = create_sphere 1272.0 -92.25 14.875 2.5
add_blip_for_coord_old $M6PICK = create_marker_at 1272.0 -92.25 14.875 color 5 display 2
change_blip_scale $M6PICK size 3
goto @MV5_618

:MV5_603
print_now 'WANTED1' time 3000 1

:MV5_618
wait 100
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 2.0 2.0 2.0
goto_if_false @MV5_618
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MV5_603
remove_blip $M6PICK
remove_sphere $MV5SPHERE
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
set_player_control $PLAYER_CHAR can_move 0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
do_fade 0 1000
wait 1000
switch_widescreen 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 14.8125
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 14.875
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV5_919
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 4000
print_now 'MV5_5' time 7000 1
wait 7000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV5_919
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MV5_6' time 3000 1
wait 3000

:MV5_919
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
switch_widescreen 0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
set_player_coordinates $PLAYER_CHAR at 1272.0 -92.9375 13.8125
do_fade 1 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_pager_message 'MV5_7' 140 10 2
wait 2000
print_now 'MV5_8' time 5000 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 2
wait 5000
switch_widescreen 1
set_fixed_camera_position 1162.75 -63.0 7.4375 rotation 0.0 0.0 0.0
point_camera_at_point 1170.563 -63.0 7.4375 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
print_now 'WANTED1' time 3000 1
add_blip_for_coord_old $M6PICK2 = create_marker_at 1204.125 -320.875 24.9375 color 5 display 2
change_blip_scale $M6PICK2 size 3
add_sphere $MV5SPHERE2 = create_sphere 1204.125 -320.875 24.9375 2.5
create_char $MV5KILL1 = create_actor 6 1 at 1257.813 -107.375 14.9375
create_char $MV5KILL2 = create_actor 21 2 at 1272.688 -114.0625 14.9375
create_char $MV5KILL3 = create_actor 6 1 at 1282.313 -87.6875 14.5
create_char $MV5KILL4 = create_actor 21 2 at 1266.938 -72.375 15.1875
give_weapon_to_char $MV5KILL1 weapon 2 ammo 250
give_weapon_to_char $MV5KILL2 weapon 3 ammo 250
give_weapon_to_char $MV5KILL3 weapon 2 ammo 250
give_weapon_to_char $MV5KILL4 weapon 3 ammo 250
set_char_stay_in_same_place $MV5KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MV5KILL4 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MV5KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MV5KILL4 kill_player $PLAYER_CHAR
wait 3000
switch_widescreen 0
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
print_now 'MV5_8A' time 6000 1

:MV5_1330
wait 1000
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1204.125 -320.875 24.9375 radius 2.0 2.0 2.0
goto_if_false @MV5_1330
if 
  is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MV5_1411
print_now 'MV5_9' time 6000 1
goto @MV5_1330

:MV5_1411
wait 100
do_fade 0 1000
wait 500
remove_blip $M6PICK2
remove_sphere $MV5SPHERE2
set_player_control $PLAYER_CHAR can_move 0
wait 500
clear_area 1 at 1203.563 -320.875 24.9375 range 20.0
create_char $KURUMA_PICKUP = create_actor 21 27 at 1205.125 -320.9375 -100.0
set_player_coordinates $PLAYER_CHAR at 1202.0 -320.9375 -100.0
set_char_heading $KURUMA_PICKUP z_angle_to 90.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
wait 100
do_fade 1 1000
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
set_fixed_camera_position 1203.125 -327.3125 24.9375 rotation 0.0 0.0 0.0
point_camera_at_point 1203.125 -320.9375 24.9375 switchstyle 2
wait 3000
print_now 'MV5_10' time 7000 1
wait 7000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $KURUMA_PICKUP
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 1000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 1000
$4427 = 1
start_new_script @SEVEN 
register_mission_passed 'MV5_2'
return 

:MV5_1728
print_big 'M_FAIL' 6000 ms 1
$4427 = 0
change_blip_display $VINI display 3
return 

:MV5_1759
$ONMISSION = 0
remove_sphere $MV5SPHERE2
remove_sphere $MV5SPHERE
remove_blip $M6PICK
remove_blip $M6PICK2
remove_char_elegantly $M5KILL1
remove_char_elegantly $M5KILL2
remove_char_elegantly $M5KILL3
remove_char_elegantly $M5KILL4
mark_model_as_no_longer_needed 1
mark_model_as_no_longer_needed 2
mark_model_as_no_longer_needed 116
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 6---------------
// Originally: RC Casino Calamity

:MV6
gosub @MV6_36
if 
  has_deatharrest_been_executed 
goto_if_false @MV6_27
gosub @MV6_1747

:MV6_27
gosub @MV6_1785
terminate_this_script 

:MV6_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'MV6'
request_model 10
request_model 100
request_model 119
load_special_character 1 'EIGHT2'
load_all_models_now 

:MV6_89
wait 0
if and
  has_model_loaded 10
  has_model_loaded 100
  has_model_loaded 119
goto_if_false @MV6_89
switch_widescreen 1
load_splash_screen '1ROAD'
do_fade 0 1000
print_big 'MV6_2' 3000 ms 1
wait 1000
set_fixed_camera_position 1028.375 -681.0 24.9375 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
force_weather 2
do_fade 1 1000
wait 1000
print_now 'MV6_10' time 4000 1
wait 4000
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_behind_player 
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0
wait 5000
add_pager_message 'MV6_9' 140 10 2
switch_car_generator $V2HOME_CAR cars_to_generate_to 0
wait 2000
create_car $M7CAR = create_car 119 at 953.1875 -429.0625 -100.0
set_car_heading $M7CAR z_angle_to 90.0
change_car_colour $M7CAR color_to $73C $72C
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $M7CAR
change_blip_colour $TAXI_PICKUP color_to 1

:MV6_329
wait 10
if 
  not is_player_in_car $PLAYER_CHAR in_car $M7CAR
goto_if_false @MV6_375
if 
  is_car_dead $M7CAR
goto_if_false @MV6_329
goto @MV6_1747

:MV6_375
wait 500
create_car $M7CAR2 = create_car 100 at 856.4375 -992.875 5.0
set_car_heading $M7CAR2 z_angle_to 358.5
add_blip_for_car $TAXI_PICKUP2 = create_marker_above_car $M7CAR2
change_blip_colour $TAXI_PICKUP2 color_to 5
create_char_as_passenger $WEINI = create_actor 21 10 in_car $M7CAR2 passenger_seat 0

:MV6_433
change_blip_display $TAXI_PICKUP display 3

:MV6_440
wait 0
if 
  not is_car_dead $M7CAR
goto_if_false @MV6_1747
if 
  is_player_in_car $PLAYER_CHAR in_car $M7CAR
goto_if_false @MV6_433
change_blip_display $TAXI_PICKUP display 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 856.4375 -992.875 5.0 radius 30.0 30.0 30.0
goto_if_false @MV6_440
remove_blip $TAXI_PICKUP2
explode_car $M7CAR2
remove_char_elegantly $WEINI
$M7CAR2 = -1
print_now 'MV6_3' time 3000 1
wait 3000
print_now 'MV6_4' time 6000 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 3
add_sprite_blip_for_coord $MV6HOME = create_marker 17 at 946.125 -422.625 14.375
start_new_script @M7COP 
wait 10000
add_pager_message 'MV6_5' 140 10 2
add_sprite_blip_for_coord $8BALL = create_marker 7 at 1272.0 -92.25 14.875
add_sphere $MV6SPHERE = create_sphere 1272.0 -92.25 14.875 2.5
goto @MV6_687

:MV6_672
print_now 'WANTED1' time 1000 1

:MV6_687
wait 100
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1272.0 -92.25 14.875 radius 2.0 2.0 2.0
goto_if_false @MV6_687
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MV6_672
load_splash_screen '8BALL'
do_fade 0 1000
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
remove_blip $8BALL
remove_blip $MV6HOME
remove_sphere $MV6SPHERE
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 14.8125
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 14.875
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
load_splash_screen 'MAINSC1'
wait 1000
switch_widescreen 1
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV6_1102
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 4000
print_now 'MV6_6' time 7000 1
wait 7000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV6_1102
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MV6_7' time 7000 1
wait 7000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV6_1102
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 5000
print_now 'MV6_8' time 7000 1
wait 7000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MV6_1102
print_now 'MV6_8A' time 7000 1
wait 7000

:MV6_1102
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
print_with_number_big 'M_PASS' 1000 5000 ms 1
switch_car_generator $V2HOME_CAR cars_to_generate_to 0
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 1000
$4428 = 1
start_new_script @EIGHT 
register_mission_passed 'MV6_2'
$REDLIGH10_X = 876.75
$REDLIGH10_Y = -317.0625
$REDLIGH10_Z = 10.0
$REDLIGH20_X = 874.75
$REDLIGH20_Y = -317.0625
$REDLIGH20_Z = 10.0
$REDLIGH30_X = 872.75
$REDLIGH30_Y = -317.0625
$REDLIGH30_Z = 10.0
$REDLIGH40_X = 870.75
$REDLIGH40_Y = -317.0625
$REDLIGH40_Z = 10.0
$REDLIGH50_X = 868.75
$REDLIGH50_Y = -317.0625
$REDLIGH50_Z = 10.0
$REDLIGH60_X = 866.75
$REDLIGH60_Y = -317.0625
$REDLIGH60_Z = 10.0
$REDLIGH70_X = 864.75
$REDLIGH70_Y = -317.0625
$REDLIGH70_Z = 10.0
$REDLIGH80_X = 862.75
$REDLIGH80_Y = -317.0625
$REDLIGH80_Z = 10.0
$REDLIGH90_X = 860.75
$REDLIGH90_Y = -317.0625
$REDLIGH90_Z = 10.0
$REDLIGH100_X = 858.75
$REDLIGH100_Y = -317.0625
$REDLIGH100_Z = 10.0
$REDLIGHFIRE_X = 856.75
$REDLIGHFIRE_Y = -317.0625
$REDLIGHFIRE_Z = 10.0
$REDLIGHBRIBE1_X = 877.5625
$REDLIGHBRIBE1_Y = -313.75
$REDLIGHBRIBE1_Z = 8.5
$REDLIGHBRIBE2_X = 875.5625
$REDLIGHBRIBE2_Y = -313.75
$REDLIGHBRIBE2_Z = 8.5
$REDLIGHBRIBE3_X = 873.5625
$REDLIGHBRIBE3_Y = -313.75
$REDLIGHBRIBE3_Z = 8.5
$REDLIGHBRIBE4_X = 871.5625
$REDLIGHBRIBE4_Y = -313.75
$REDLIGHBRIBE4_Z = 8.5
$REDLIGHBRIBE5_X = 869.5625
$REDLIGHBRIBE5_Y = -313.75
$REDLIGHBRIBE5_Z = 8.5
$REDLIGHBRIBE6_X = 867.5625
$REDLIGHBRIBE6_Y = -313.75
$REDLIGHBRIBE6_Z = 8.5
$REDLIGHHEALTH_X = 878.875
$REDLIGHHEALTH_Y = -299.0
$REDLIGHHEALTH_Z = 8.1875
$REDLIGH_ADRENALINE_X = 876.875
$REDLIGH_ADRENALINE_Y = -299.0
$REDLIGH_ADRENALINE_Z = 8.1875
$IMPORT_REDLIGH_X = 828.875
$IMPORT_REDLIGH_Y = -283.75
$IMPORT_REDLIGH_Z = 0.0
$IMPORT_REDLIGH_X1 = 894.1875
$IMPORT_REDLIGH_Y1 = -323.5
$IMPORT_REDLIGH_Z1 = 26.0
return 

:MV6_1747
print_big 'M_FAIL' 6000 ms 1
$4428 = 0
change_blip_display $VINI display 3
switch_car_generator $V2HOME_CAR cars_to_generate_to 101
return 

:MV6_1785
$ONMISSION = 0
remove_blip $MV6HOME
remove_blip $8BALL
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP2
remove_sphere $MV6SPHERE
remove_blip $M7PICK
remove_char_elegantly $WEINI
$M7CAR2 = -1
mark_model_as_no_longer_needed 100
mark_model_as_no_longer_needed 10
mark_model_as_no_longer_needed 119
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 7---------------
// Originally: Patriot Playground

:M81
gosub @M81_36
if 
  has_deatharrest_been_executed 
goto_if_false @M81_27
gosub @M81_1096

:M81_27
gosub @M81_1127
terminate_this_script 

:M81_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'M81'
request_model 115
load_special_character 1 'EIGHT2'
load_all_models_now 
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
load_splash_screen '8BALL'
do_fade 0 1000
wait 1000
print_big 'M81_2' 3000 ms 2
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1296.438 -108.1875 14.875 range 5.0
force_weather 3
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 -100.0
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 -100.0
create_car $M8CAR = create_car 115 at 1296.438 -108.1875 14.875
change_car_colour $M8CAR color_to 0 0
set_car_heading $M8CAR z_angle_to 10.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:M81_308
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @M81_336
goto @M81_584

:M81_336
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @M81_308
clear_help 
load_mission_audio 'J4T_1'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'M81_3' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M81_408
wait 0
if 
  TIMERA >= 4140
goto_if_false @M81_408
print_now 'M81_4' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M81_456
wait 0
if 
  TIMERA >= 10230
goto_if_false @M81_456
print_now 'M81_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M81_504
wait 0
if 
  TIMERA >= 13160
goto_if_false @M81_504
print_now 'M81_6' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M81_552
wait 0
if 
  TIMERA >= 19180
goto_if_false @M81_552
clear_prints 
wait 1000
clear_mission_audio 

:M81_584
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $M8CAR
change_blip_colour $TAXI_PICKUP color_to 1

:M81_669
wait 100
if 
  not is_car_dead $M8CAR
goto_if_false @M81_1096
if 
  is_player_in_car $PLAYER_CHAR in_car $M8CAR
goto_if_false @M81_669
add_blip_for_coord_old $M8PICK = create_marker_at 1141.688 50.9375 0.0625 color 5 display 2
change_blip_scale $M8PICK size 3
add_sphere $M81SPHERE = create_sphere 1141.688 50.9375 0.0625 4.0

:M81_750
wait 10
if and
  is_player_in_car $PLAYER_CHAR in_car $M8CAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1141.688 50.9375 0.0625 radius 4.0 4.0 3.0
goto_if_false @M81_820
print_now 'M81_9' time 2000 1
goto @M81_883

:M81_820
if 
  not is_car_dead $M8CAR
goto_if_false @M81_1096
if 
  is_player_in_car $PLAYER_CHAR in_car $M8CAR
goto_if_false @M81_869
change_blip_display $TAXI_PICKUP display 0
goto @M81_750

:M81_869
change_blip_display $TAXI_PICKUP display 3
goto @M81_750

:M81_883
wait 10
if 
  not is_car_dead $M8CAR
goto_if_false @M81_1096
if 
  not is_player_in_car $PLAYER_CHAR in_car $M8CAR
goto_if_false @M81_883
set_player_control $PLAYER_CHAR can_move 0
remove_sphere $M81SPHERE
set_car_health $M8CAR health_to 1000
if 
  is_crane_lifting_car $M8CAR picked_up_by_crane 1120.0 46.0
goto_if_false @M81_883
wait 1000
set_player_control $PLAYER_CHAR can_move 1
change_blip_display $TAXI_PICKUP display 0

:M81_983
wait 0
if 
  is_car_crushed $M8CAR
goto_if_false @M81_983
print_now 'M81_7' time 4000 1
wait 4000
$4429 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 1000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 1000
start_new_script @NINE 
register_mission_passed 'M81_2'
return 

:M81_1096
print_big 'M_FAIL' 6000 ms 1
$4429 = 0
change_blip_display $8BALL display 3
return 

:M81_1127
$ONMISSION = 0
remove_blip $M8PICK
remove_sphere $M81SPHERE
remove_char_elegantly $8BALL_CHAR
remove_blip $TAXI_PICKUP
mark_model_as_no_longer_needed 115
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 8---------------
// Originally: A Ride In The Park

:M82
gosub @M82_36
if 
  has_deatharrest_been_executed 
goto_if_false @M82_27
gosub @M82_2796

:M82_27
gosub @M82_2857
terminate_this_script 

:M82_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'M82'
request_model 40
request_model 39
load_special_character 1 'EIGHT2'
load_special_character 2 'MISTY'
load_all_models_now 
print_big 'M82_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 500
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1296.438 -108.1875 14.875 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
load_splash_screen '8BALL'
do_fade 0 1000
wait 1000
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 -100.0
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 -100.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:M82_292
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @M82_320
goto @M82_568

:M82_320
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @M82_292
clear_help 
load_mission_audio 'J4T_2'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'M82_3' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M82_392
wait 0
if 
  TIMERA >= 4160
goto_if_false @M82_392
print_now 'M82_3A' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M82_440
wait 0
if 
  TIMERA >= 9190
goto_if_false @M82_440
print_now 'M82_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M82_488
wait 0
if 
  TIMERA >= 11040
goto_if_false @M82_488
print_now 'M82_5' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M82_536
wait 0
if 
  TIMERA >= 13110
goto_if_false @M82_536
clear_prints 
wait 1000
clear_mission_audio 

:M82_568
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$M821 = 0
$M822 = 0
$M823 = 0
print_now 'M82_6' time 5000 1
create_char $M8NPC1 = create_actor 20 39 at 1401.25 -458.1875 50.0625
set_char_heading $M8NPC1 z_angle_to 180.0
clear_char_threat_search $M8NPC1
add_blip_for_char $M8NPCPICK1 = create_marker_above_actor $M8NPC1
char_wander_dir $M8NPC1 wander_direction 0
create_char $M8NPC2 = create_actor 20 40 at 1156.75 -56.8125 9.75
set_char_heading $M8NPC2 z_angle_to 180.0
clear_char_threat_search $M8NPC2
add_blip_for_char $M8NPCPICK2 = create_marker_above_actor $M8NPC2
char_wander_dir $M8NPC2 wander_direction 0
create_char $M8NPC3 = create_actor 20 27 at 1157.375 -511.625 25.75
set_char_heading $M8NPC3 z_angle_to 180.0
clear_char_threat_search $M8NPC3
add_blip_for_char $M8NPCPICK3 = create_marker_above_actor $M8NPC3
char_wander_dir $M8NPC3 wander_direction 0
set_anim_group_for_char $M8NPC3 walk_style_to 15
set_char_cant_be_dragged_out $M8NPC1 locked_while_in_vehicle 1
set_char_cant_be_dragged_out $M8NPC2 locked_while_in_vehicle 1
set_char_cant_be_dragged_out $M8NPC3 locked_while_in_vehicle 1
$M81_TIME = 240000
wait 5000
display_onscreen_timer $M81_TIME
print_now 'M82_7' time 4000 1

:M82_875
wait 100
if 
  $M81_TIME > 0
goto_if_false @M82_2796
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @M82_1018
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
if 
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $M8NPC1 radius 8.0 8.0 2.0
goto_if_false @M82_1051
if 
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $M8NPC2 radius 8.0 8.0 2.0
goto_if_false @M82_1659
if 
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $M8NPC3 radius 8.0 8.0 2.0
goto_if_false @M82_2178
goto @M82_875

:M82_1018
if and
  not is_char_dead $M8NPC1
  not is_char_dead $M8NPC2
  not is_char_dead $M8NPC3
goto_if_false @M82_2796
goto @M82_875

:M82_1051
if 
  $M821 == 0
goto_if_false @M82_875
set_char_obj_enter_car_as_passenger $M8NPC1 go_to_car $PLAYCAR
if and
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 151
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 152
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 153
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 92
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 101
goto_if_false @M82_1182
if and
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 105
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 119
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 136
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 137
goto_if_false @M82_1182
print_now 'M82_11' time 5000 1

:M82_1182
wait 100
if or
  not is_char_in_car $M8NPC1 in_car $PLAYCAR
  not is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_1236
if 
  not is_char_dead $M8NPC1
goto_if_false @M82_2796
goto @M82_1182

:M82_1236
change_blip_display $M8NPCPICK2 display 0
change_blip_display $M8NPCPICK3 display 0
add_blip_for_coord_old $M8PICK = create_marker_at 1155.25 -256.25 16.625 color 5 display 2
change_blip_scale $M8PICK size 3
add_sphere $M82SPHERE = create_sphere 1155.25 -256.25 16.625 4.0
print_now 'M82_9' time 5000 1
change_blip_display $M8NPCPICK1 display 0

:M82_1314
wait 10
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_1588
change_blip_display $M8NPCPICK1 display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1155.25 -256.25 16.625 radius 4.0 4.0 3.0
goto_if_false @M82_1588
remove_blip $M8PICK
remove_sphere $M82SPHERE
set_player_control $PLAYER_CHAR can_move 0
wait 100
set_char_obj_leave_car $M8NPC1 leave_car $PLAYCAR
set_char_obj_goto_coord_on_foot $M8NPC1 walk_to 1147.625 -263.125
change_blip_display $M8NPCPICK2 display 3
change_blip_display $M8NPCPICK3 display 3
remove_blip $M8NPCPICK1
get_game_timer $GAME_TIME1

:M82_1452
wait 0
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if or
  $GAME_TIME2 > 5000
  locate_char_any_means_2d $M8NPC1 0 1147.625 -263.125 radius 2.0 2.0
goto_if_false @M82_1452
remove_char_elegantly $M8NPC1
wait 1000
create_char $M8NPC1 = create_actor 20 39 at 1087.75 -312.1875 11.1875
set_player_control $PLAYER_CHAR can_move 1
$M821 = 1
if and
  $M821 == 1
  $M822 == 1
  $M823 == 1
goto_if_false @M82_875
goto @M82_2708

:M82_1588
wait 100
if 
  $M81_TIME > 0
goto_if_false @M82_2796
if 
  not is_char_dead $M8NPC1
goto_if_false @M82_2796
if 
  not is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_1314
change_blip_display $M8NPCPICK1 display 3
goto @M82_1314

:M82_1659
if 
  $M822 == 0
goto_if_false @M82_875
set_char_obj_enter_car_as_passenger $M8NPC2 go_to_car $PLAYCAR

:M82_1685
wait 100
if or
  not is_char_in_car $M8NPC2 in_car $PLAYCAR
  not is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_1739
if 
  not is_char_dead $M8NPC2
goto_if_false @M82_2796
goto @M82_1685

:M82_1739
change_blip_display $M8NPCPICK1 display 0
change_blip_display $M8NPCPICK3 display 0
add_blip_for_coord_old $M8PICK = create_marker_at 1118.125 -536.0625 17.6875 color 5 display 2
change_blip_scale $M8PICK size 3
add_sphere $M82SPHERE = create_sphere 1118.125 -536.0625 17.6875 4.0
print_now 'M82_10' time 6000 1
change_blip_display $M8NPCPICK2 display 0

:M82_1817
wait 100
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_2107
change_blip_display $M8NPCPICK2 display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1118.125 -536.0625 17.6875 radius 4.0 4.0 3.0
goto_if_false @M82_2107
remove_blip $M8PICK
remove_sphere $M82SPHERE
set_player_control $PLAYER_CHAR can_move 0
wait 100
set_char_obj_leave_car $M8NPC2 leave_car $PLAYCAR
set_char_obj_goto_coord_on_foot $M8NPC2 walk_to 1115.75 -536.25
change_blip_display $M8NPCPICK1 display 3
change_blip_display $M8NPCPICK3 display 3
remove_blip $M8NPCPICK2
get_game_timer $GAME_TIME1

:M82_1955
wait 0
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if or
  $GAME_TIME2 > 5000
  locate_char_any_means_2d $M8NPC2 0 1115.75 -536.25 radius 2.0 2.0
goto_if_false @M82_1955
set_char_obj_goto_coord_on_foot $M8NPC2 walk_to 1113.625 -536.1875
wait 3000
remove_char_elegantly $M8NPC2
wait 1000
create_char $M8NPC2 = create_actor 20 39 at 1089.75 -312.1875 11.1875
set_player_control $PLAYER_CHAR can_move 1
$M822 = 1
if and
  $M821 == 1
  $M822 == 1
  $M823 == 1
goto_if_false @M82_875
goto @M82_2708

:M82_2107
wait 100
if 
  $M81_TIME > 0
goto_if_false @M82_2796
if 
  not is_char_dead $M8NPC2
goto_if_false @M82_2796
if 
  not is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_1817
change_blip_display $M8NPCPICK2 display 3
goto @M82_1817

:M82_2178
if 
  $M823 == 0
goto_if_false @M82_875
set_char_obj_enter_car_as_passenger $M8NPC3 go_to_car $PLAYCAR

:M82_2204
wait 100
if or
  not is_char_in_car $M8NPC3 in_car $PLAYCAR
  not is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_2258
if 
  not is_char_dead $M8NPC3
goto_if_false @M82_2796
goto @M82_2204

:M82_2258
change_blip_display $M8NPCPICK1 display 0
change_blip_display $M8NPCPICK2 display 0
add_blip_for_coord_old $M8PICK = create_marker_at 1193.813 -872.4375 14.9375 color 5 display 2
change_blip_scale $M8PICK size 3
add_sphere $M82SPHERE = create_sphere 1193.813 -872.4375 14.9375 4.0
print_now 'M82_8' time 5000 1
change_blip_display $M8NPCPICK3 display 0

:M82_2336
wait 100
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_2610
change_blip_display $M8NPCPICK3 display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1193.813 -872.4375 14.9375 radius 4.0 4.0 3.0
goto_if_false @M82_2610
remove_blip $M8PICK
remove_sphere $M82SPHERE
set_player_control $PLAYER_CHAR can_move 0
wait 100
set_char_obj_leave_car $M8NPC3 leave_car $PLAYCAR
set_char_obj_goto_coord_on_foot $M8NPC3 walk_to 1190.938 -869.5
change_blip_display $M8NPCPICK1 display 3
change_blip_display $M8NPCPICK2 display 3
remove_blip $M8NPCPICK3
get_game_timer $GAME_TIME1

:M82_2474
wait 0
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if or
  $GAME_TIME2 > 5000
  locate_char_any_means_2d $M8NPC3 0 1190.938 -869.5 radius 2.0 2.0
goto_if_false @M82_2474
remove_char_elegantly $M8NPC3
wait 1000
create_char $M8NPC3 = create_actor 20 39 at 1085.75 -312.1875 11.1875
set_player_control $PLAYER_CHAR can_move 1
$M823 = 1
if and
  $M821 == 1
  $M822 == 1
  $M823 == 1
goto_if_false @M82_875
goto @M82_2708

:M82_2610
wait 100
if 
  $M81_TIME > 0
goto_if_false @M82_2796
if 
  not is_char_dead $M8NPC3
goto_if_false @M82_2681
if 
  not is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M82_2336
change_blip_display $M8NPCPICK3 display 3
goto @M82_2336

:M82_2681
print_now 'M82_13' time 4000 1
wait 4000
goto @M82_2796

:M82_2708
$4430 = 1
print_now 'M82_14' time 3000 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 4000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 4000
start_new_script @TEN 
register_mission_passed 'M82_2'
return 

:M82_2796
print_big 'M_FAIL' 6000 ms 1
remove_char_elegantly $M8NPC1
remove_char_elegantly $M8NPC2
remove_char_elegantly $M8NPC3
remove_blip $M8NPCPICK1
remove_blip $M8NPCPICK2
remove_blip $M8NPCPICK3
$4430 = 0
change_blip_display $8BALL display 3
return 

:M82_2857
$ONMISSION = 0
clear_onscreen_timer $M81_TIME
freeze_onscreen_timer 0
remove_blip $M8PICK
remove_sphere $M82SPHERE
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 39
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 9---------------
// Originally: Gripped!

:M83
gosub @M83_36
if 
  has_deatharrest_been_executed 
goto_if_false @M83_27
gosub @M83_2641

:M83_27
gosub @M83_2672
terminate_this_script 

:M83_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'M83'
request_model 100
request_model 14
load_special_character 1 'EIGHT2'
load_all_models_now 
switch_widescreen 1
load_splash_screen '8BALL'
do_fade 0 1000
print_big 'M83_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1300.25 -110.0 14.9375 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 -100.0
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 -100.0
create_car $M10CAR = create_car 100 at 1300.25 -110.0 14.9375
set_car_heading $M10CAR z_angle_to 6.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:M83_299
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @M83_327
goto @M83_623

:M83_327
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @M83_299
clear_help 
load_mission_audio 'J4T_3'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'M83_3' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M83_399
wait 0
if 
  TIMERA >= 5080
goto_if_false @M83_399
print_now 'M83_4' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M83_447
wait 0
if 
  TIMERA >= 9220
goto_if_false @M83_447
print_now 'M83_5' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M83_495
wait 0
if 
  TIMERA >= 12080
goto_if_false @M83_495
print_now 'M83_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M83_543
wait 0
if 
  TIMERA >= 15270
goto_if_false @M83_543
print_now 'M83_7' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M83_591
wait 0
if 
  TIMERA >= 21070
goto_if_false @M83_591
clear_prints 
wait 1000
clear_mission_audio 

:M83_623
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $M10CAR
change_blip_colour $TAXI_PICKUP color_to 1
$M83_TIME = 60000
$PLAYER_FAST = 0
display_onscreen_timer $M83_TIME
$M10CARDAM = 100
display_onscreen_counter_with_string $M10CARDAM 1 'DAM'
$M10CAR_HEALTH_COUNTER = 1000
print_now 'M83_8' time 6000 1

:M83_780
wait 10
if 
  is_player_in_car $PLAYER_CHAR in_car $M10CAR
goto_if_false @M83_780
add_blip_for_coord_old $M8PICK = create_marker_at 890.3125 -206.0 4.0 color 5 display 2
change_blip_scale $M8PICK size 3
add_sphere $M83SPHERE = create_sphere 890.3125 -206.0 4.0 4.0

:M83_845
wait 10
get_car_health $M10CAR_HEALTH = car $M10CAR
$M10CAR_HEALTH_COUNTER = 900
sub_int_var_from_int_var $M10CAR_HEALTH -= $M10CAR_HEALTH_COUNTER
set_var_int_to_var_int $M10CARDAM = $M10CAR_HEALTH
if and
  is_player_in_car $PLAYER_CHAR in_car $M10CAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 890.3125 -206.0 4.0 radius 4.0 4.0 3.0
goto_if_false @M83_958
if 
  $M83_TIME > 10000
goto_if_false @M83_1063
$PLAYER_FAST = 1
goto @M83_1063

:M83_958
if 
  $M10CARDAM > 0
goto_if_false @M83_1046
if and
  $M83_TIME > 0
  not is_car_dead $M10CAR
goto_if_false @M83_2641
if 
  is_player_in_car $PLAYER_CHAR in_car $M10CAR
goto_if_false @M83_1032
change_blip_display $TAXI_PICKUP display 0
goto @M83_845

:M83_1032
change_blip_display $TAXI_PICKUP display 3
goto @M83_845

:M83_1046
explode_car $M10CAR
clear_onscreen_counter $M10CARDAM
goto @M83_2641

:M83_1063
remove_blip $M8PICK
remove_sphere $M83SPHERE
clear_onscreen_counter $M10CARDAM
clear_onscreen_timer $M83_TIME
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
clear_area 3 at 890.3125 -206.0 4.0 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 881.5625 -204.25 3.5625 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
set_car_coordinates $M10CAR at 890.3125 -206.0 4.0
create_char $M83NPC = create_actor 21 14 at 890.5625 -203.375 4.0
set_char_heading $M83NPC z_angle_to 180.0
set_car_heading $M10CAR z_angle_to 272.0
switch_widescreen 1
wait 1000
do_fade 1 1000
wait 1000
if 
  $PLAYER_FAST == 0
goto_if_false @M83_1332
print_now 'M83_9' time 5000 1
wait 5000
do_fade 0 1000
wait 1000
restore_camera_jumpcut 
delete_char $M83NPC
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
print_now 'M83_10' time 4000 1
goto @M83_2568

:M83_1332
print_now 'M83_9A' time 5000 1
wait 5000
do_fade 0 1000
wait 1000
restore_camera_jumpcut 
delete_char $M83NPC
switch_widescreen 0
do_fade 1 1000
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_pager_message 'M83_9B' 140 10 2
wait 2000
print_now 'M83_9C' time 6000 1
wait 6000
remove_blip $TAXI_PICKUP
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1435.313 -183.3125 55.5625 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
$M83_TIME = 240000
$M83CAR_NUM = 3
display_onscreen_timer $M83_TIME
display_onscreen_counter_with_string $M83CAR_NUM 0 'NUM_D'
set_player_control $PLAYER_CHAR can_move 1
print_now 'M83_9D' time 6000 1
$M83_COLOUR1_PASS0 = 0
$M83_COLOUR1_PASS78 = 0
$M83_COLOUR1_PASS62 = 0

:M83_1546
wait 0
if 
  $M83_TIME > 0
goto_if_false @M83_2641
if and
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 137
  locate_player_any_means_3d $PLAYER_CHAR 0 1434.188 -183.4375 49.5625 radius 30.0 30.0 30.0
goto_if_false @M83_1546
store_car_player_is_in_no_save $DIABLOS_CAR1 = player $PLAYER_CHAR
get_car_colours $DIABLOS_CAR1 color $M83_COLOUR1 $M83_COLOUR2
wait 0
if 
  $M83_COLOUR1_PASS0 == 0
goto_if_false @M83_1685
if and
  $M83_COLOUR1 == 0
  $M83_COLOUR2 == 0
goto_if_false @M83_1685
goto @M83_1785

:M83_1685
if 
  $M83_COLOUR1_PASS78 == 0
goto_if_false @M83_1735
if and
  $M83_COLOUR1 == 78
  $M83_COLOUR2 == 78
goto_if_false @M83_1735
goto @M83_1785

:M83_1735
if 
  $M83_COLOUR1_PASS62 == 0
goto_if_false @M83_1546
if and
  $M83_COLOUR1 == 62
  $M83_COLOUR2 == 62
goto_if_false @M83_1546
goto @M83_1785

:M83_1785
set_target_car_for_mission_garage $FRANKIE_GARAGE to_accept_car $DIABLOS_CAR1

:M83_1793
wait 0
if 
  $M83_TIME > 0
goto_if_false @M83_2641
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @M83_1869
if or
  does_garage_contain_car $FRANKIE_GARAGE $DIABLOS_CAR1
  is_player_in_car $PLAYER_CHAR in_car $DIABLOS_CAR1
goto_if_false @M83_1546
get_car_colours $DIABLOS_CAR1 color $M83_COLOUR1 $M83_COLOUR2

:M83_1869
if 
  is_car_in_mission_garage $FRANKIE_GARAGE
goto_if_false @M83_1793
$M83CAR_NUM -= 1
$M83_TIME += 20000
set_target_car_for_mission_garage $FRANKIE_GARAGE to_accept_car -1
delete_car $DIABLOS_CAR1
wait 0
if 
  $M83_COLOUR1 == 0
goto_if_false @M83_1948
$M83_COLOUR1_PASS0 = 1
goto @M83_2005

:M83_1948
if 
  $M83_COLOUR1 == 78
goto_if_false @M83_1980
$M83_COLOUR1_PASS78 = 1
goto @M83_2005

:M83_1980
if 
  $M83_COLOUR1 == 62
goto_if_false @M83_2005
$M83_COLOUR1_PASS62 = 1

:M83_2005
if 
  $M83CAR_NUM == 0
goto_if_false @M83_1546
clear_onscreen_counter $M83CAR_NUM
clear_onscreen_timer $M83_TIME
add_pager_message 'M83_11' 140 10 2
remove_blip $TAXI_PICKUP
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1271.875 -94.625 14.8125 color 5 display 2
add_sphere $M83SPHERE2 = create_sphere 1271.875 -94.625 14.8125 2.0
change_blip_scale $TAXI_PICKUP size 3
goto @M83_2104

:M83_2104
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 1271.875 -94.625 14.8125 radius 1.0 1.0 2.0
goto_if_false @M83_2104
remove_sphere $M83SPHERE2
remove_blip $TAXI_PICKUP
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
switch_widescreen 1
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1300.25 -110.0 14.9375 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 -100.0
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 -100.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
wait 1000
do_fade 1 1000
wait 1000
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 2500
print_now 'M83_12' time 4000 1
wait 4000
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 2000
print_now 'M83_13' time 4000 1
wait 4000
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 2000
print_now 'M83_14' time 5000 1
wait 5000
print_now 'M83_15' time 6000 1
wait 6000
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$4431 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 12000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 12000
start_new_script @ELEV 
register_mission_passed 'M83_2'
return 

:M83_2568
$4431 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 6000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 6000
start_new_script @ELEV 
register_mission_passed 'M83_2'
return 

:M83_2641
print_big 'M_FAIL' 6000 ms 1
$4431 = 0
change_blip_display $8BALL display 3
return 

:M83_2672
$ONMISSION = 0
remove_blip $M8PICK
remove_blip $TAXI_PICKUP
clear_onscreen_counter $M10CARDAM
clear_onscreen_timer $M83_TIME
clear_onscreen_counter $M83CAR_NUM
remove_sphere $M83SPHERE
remove_sphere $M83SPHERE2
remove_char_elegantly $M83NPC
mark_model_as_no_longer_needed 14
mark_model_as_no_longer_needed 100
unload_special_character 1
$M10CAR = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 10---------------
// Originally: Multistorey Mayhem

:M84
gosub @M84_36
if 
  has_deatharrest_been_executed 
goto_if_false @M84_27
gosub @M84_3282

:M84_27
gosub @M84_3313
terminate_this_script 

:M84_36
$ONMISSION = 1
set_fading_colour 0 0 0
register_mission_given 
script_name 'M84'
request_model 137
request_model 139
request_model 22
request_model 23
load_special_character 1 'EIGHT2'
load_all_models_now 
switch_widescreen 1
load_splash_screen '8BALL'
do_fade 0 1000
print_big 'M84_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1296.438 -108.1875 14.875 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 -100.0
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 -100.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:M84_285
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @M84_313
goto @M84_705

:M84_313
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @M84_285
clear_help 
load_mission_audio 'J4T_4'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'M84_3' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M84_385
wait 0
if 
  TIMERA >= 5220
goto_if_false @M84_385
print_now 'M84_4' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M84_433
wait 0
if 
  TIMERA >= 11000
goto_if_false @M84_433
print_now 'M84_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M84_481
wait 0
if 
  TIMERA >= 15050
goto_if_false @M84_481
print_now 'M84_6' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M84_529
wait 0
if 
  TIMERA >= 20170
goto_if_false @M84_529
print_now 'M84_7' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M84_577
wait 0
if 
  TIMERA >= 23180
goto_if_false @M84_577
print_now 'M84_8' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M84_625
wait 0
if 
  TIMERA >= 27160
goto_if_false @M84_625
print_now 'M84_9' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M84_673
wait 0
if 
  TIMERA >= 32080
goto_if_false @M84_673
clear_prints 
wait 1000
clear_mission_audio 

:M84_705
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
create_char $SKL = create_actor 21 23 at 1088.875 -935.75 14.9375
create_char $M84KILL1 = create_actor 21 22 at 1101.688 -886.4375 15.0
create_char $M84KILL2 = create_actor 21 23 at 1085.5 -883.875 15.0
create_char $M84KILL3 = create_actor 21 22 at 1089.813 -883.9375 15.0
create_char $M84KILL4 = create_actor 21 23 at 1090.813 -859.1875 20.1875
create_char $M84KILL5 = create_actor 21 22 at 1078.313 -901.25 15.25
set_char_stay_in_same_place $SKL maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL5 maintain_position_when_attacked 1
char_look_at_player_always $SKL to_look_at_player $PLAYER_CHAR
char_look_at_player_always $M84KILL1 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $M84KILL2 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $M84KILL3 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $M84KILL4 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $M84KILL5 to_look_at_player $PLAYER_CHAR
give_weapon_to_char $SKL weapon 4 ammo 250
give_weapon_to_char $M84KILL1 weapon 3 ammo 250
give_weapon_to_char $M84KILL2 weapon 2 ammo 250
give_weapon_to_char $M84KILL3 weapon 2 ammo 250
give_weapon_to_char $M84KILL4 weapon 3 ammo 250
give_weapon_to_char $M84KILL5 weapon 3 ammo 250
wait 1000
set_char_obj_kill_player_on_foot $SKL kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL5 kill_player $PLAYER_CHAR
add_blip_for_char $M84PICK1 = create_marker_above_actor $M84KILL1
add_blip_for_char $M84PICK2 = create_marker_above_actor $M84KILL2
add_blip_for_char $M84PICK3 = create_marker_above_actor $M84KILL3
add_blip_for_char $M84PICK4 = create_marker_above_actor $M84KILL4
add_blip_for_char $M84PICK5 = create_marker_above_actor $M84KILL5
add_blip_for_char $M84PICK6 = create_marker_above_actor $SKL
change_blip_colour $M84PICK1 color_to 0
change_blip_colour $M84PICK2 color_to 0
change_blip_colour $M84PICK3 color_to 0
change_blip_colour $M84PICK4 color_to 0
change_blip_colour $M84PICK5 color_to 0
change_blip_colour $M84PICK6 color_to 0
change_blip_display $M84PICK1 display 0
change_blip_display $M84PICK2 display 0
change_blip_display $M84PICK3 display 0
change_blip_display $M84PICK4 display 0
change_blip_display $M84PICK5 display 0
change_blip_display $M84PICK6 display 0
wait 1000
add_blip_for_coord $M84PICK = create_checkpoint_at 1085.5 -883.875 15.0

:M84_1237
wait 10
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1085.5 -883.875 15.0 radius 40.0 40.0 40.0
goto_if_false @M84_1237
remove_blip $M84PICK
print_now 'M84_10' time 4000 1
change_blip_display $M84PICK1 display 2
change_blip_display $M84PICK2 display 2
change_blip_display $M84PICK3 display 2
change_blip_display $M84PICK4 display 2
change_blip_display $M84PICK5 display 2
change_blip_display $M84PICK6 display 2

:M84_1339
wait 10
if 
  is_char_dead $M84KILL1
goto_if_false @M84_1366
change_blip_display $M84PICK1 display 0

:M84_1366
if 
  is_char_dead $M84KILL2
goto_if_false @M84_1389
change_blip_display $M84PICK2 display 0

:M84_1389
if 
  is_char_dead $M84KILL3
goto_if_false @M84_1412
change_blip_display $M84PICK3 display 0

:M84_1412
if 
  is_char_dead $M84KILL4
goto_if_false @M84_1435
change_blip_display $M84PICK4 display 0

:M84_1435
if 
  is_char_dead $M84KILL5
goto_if_false @M84_1458
change_blip_display $M84PICK5 display 0

:M84_1458
if 
  is_char_dead $SKL
goto_if_false @M84_1481
change_blip_display $M84PICK6 display 0

:M84_1481
wait 10
if and
  is_char_dead $M84KILL1
  is_char_dead $M84KILL2
  is_char_dead $M84KILL3
  is_char_dead $M84KILL4
  is_char_dead $M84KILL5
  is_char_dead $SKL
goto_if_false @M84_1339
change_blip_display $M84PICK1 display 0
change_blip_display $M84PICK2 display 0
change_blip_display $M84PICK3 display 0
change_blip_display $M84PICK4 display 0
change_blip_display $M84PICK5 display 0
change_blip_display $M84PICK6 display 0
add_pager_message 'M84_11' 140 10 2
create_car $M84CAR1 = create_car 137 at 884.625 -195.4375 3.5625
change_car_colour $M84CAR1 color_to 62 62
set_car_heading $M84CAR1 z_angle_to 180.0
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $M84CAR1
change_blip_colour $TAXI_PICKUP color_to 1

:M84_1634
wait 10
if 
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
goto_if_false @M84_1634
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
print_now 'M84_12' time 4000 1
clear_area 1 at 841.875 -203.75 4.8125 range 20.0
create_car $M84CAR2 = create_car 139 at 833.3125 -219.4375 4.8125
create_car $M84CAR3 = create_car 139 at 841.5 -174.0625 4.875
wait 500
create_char_inside_car $M84KILL6 = create_actor 21 23 in_car $M84CAR2
create_char_as_passenger $M84KILL7 = create_actor 21 22 in_car $M84CAR2 passenger_seat 0
create_char_inside_car $M84KILL8 = create_actor 21 23 in_car $M84CAR3
create_char_as_passenger $M84KILL9 = create_actor 21 22 in_car $M84CAR3 passenger_seat 0
wait 500
set_car_heading $M84CAR2 z_angle_to 356.0
set_car_heading $M84CAR3 z_angle_to 180.0
set_car_driving_style $M84CAR2 traffic_behavior_to 2
set_car_driving_style $M84CAR3 traffic_behavior_to 2
set_car_cruise_speed $M84CAR2 max_speed_to 25.0
set_car_cruise_speed $M84CAR3 max_speed_to 25.0
set_fixed_camera_position 864.6875 -212.5625 5.1875 rotation 0.0 0.0 0.0
point_camera_at_point 844.6875 -203.9375 4.8125 switchstyle 2
car_goto_coordinates $M84CAR2 drive_to 842.75 -205.6875 4.8125
car_goto_coordinates $M84CAR3 drive_to 845.0625 -201.625 4.8125
wait 2000
create_car $M84CAR4 = create_car 139 at 882.5 -222.0625 3.5625
create_char_inside_car $M84KILL10 = create_actor 21 23 in_car $M84CAR4
set_car_heading $M84CAR4 z_angle_to 353.0
set_car_cruise_speed $M84CAR4 max_speed_to 0.0
create_char $M84KILL11 = create_actor 21 22 at 897.25 -225.375 5.25
create_char $M84KILL12 = create_actor 21 23 at 875.75 -215.125 3.875
change_car_lock 2 = car $M84CAR4
set_car_only_damaged_by_player $M84CAR4 immune_to_nonplayer 1
wait 2000
add_blip_for_car $TAXI_PICKUP2 = create_marker_above_car $M84CAR4
change_blip_colour $TAXI_PICKUP2 color_to 0
set_char_obj_kill_player_on_foot $M84KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL9 kill_player $PLAYER_CHAR
set_char_stay_in_same_place $M84KILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL12 maintain_position_when_attacked 1
give_weapon_to_char $M84KILL6 weapon 2 ammo 250
give_weapon_to_char $M84KILL7 weapon 2 ammo 250
give_weapon_to_char $M84KILL8 weapon 2 ammo 250
give_weapon_to_char $M84KILL9 weapon 2 ammo 250
give_weapon_to_char $M84KILL11 weapon 5 ammo 250
give_weapon_to_char $M84KILL12 weapon 5 ammo 250
wait 1000
restore_camera_jumpcut 
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0
wait 500
create_char $M84KILL13 = create_actor 21 22 at 862.75 -221.625 4.625
create_char $M84KILL14 = create_actor 21 23 at 851.125 -197.5625 5.1875
give_weapon_to_char $M84KILL13 weapon 5 ammo 250
give_weapon_to_char $M84KILL14 weapon 5 ammo 250
set_char_stay_in_same_place $M84KILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $M84KILL14 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $M84KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M84KILL14 kill_player $PLAYER_CHAR
set_car_driving_style $M84CAR4 traffic_behavior_to 2
set_car_mission $M84CAR4 driver_behaviour_to 2
set_car_cruise_speed $M84CAR4 max_speed_to 25.0

:M84_2289
wait 0
if 
  not is_car_dead $M84CAR1
goto_if_false @M84_3282
if 
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
goto_if_false @M84_2342
change_blip_display $TAXI_PICKUP display 0
goto @M84_2349

:M84_2342
change_blip_display $TAXI_PICKUP display 3

:M84_2349
if 
  not is_car_dead $M84CAR1
goto_if_false @M84_3282
if 
  is_car_dead $M84CAR4
goto_if_false @M84_2289
print_now 'M84_16' time 5000 1
change_blip_display $TAXI_PICKUP2 display 0
remove_blip $TAXI_PICKUP2
add_sphere $PICKUP = create_sphere 925.625 -358.6875 10.375 4.0

:M84_2425
wait 0
if 
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
goto_if_false @M84_2462
change_blip_display $TAXI_PICKUP display 0
goto @M84_2469

:M84_2462
change_blip_display $TAXI_PICKUP display 3

:M84_2469
if 
  not locate_player_any_means_3d $PLAYER_CHAR 0 852.375 58.9375 9.8125 radius 90.0 90.0 90.0
goto_if_false @M84_2425
clear_area 1 at 908.1875 -14.5625 7.625 range 10.0
wait 500
create_car $M84CAR5 = create_car 139 at 913.4375 -300.1875 4.75
create_char_inside_car $M84KILL15 = create_actor 21 23 in_car $M84CAR5
give_weapon_to_char $M84KILL15 weapon 3 ammo 250
set_car_driving_style $M84CAR5 traffic_behavior_to 3
set_car_cruise_speed $M84CAR5 max_speed_to 25.0
set_car_heading $M84CAR5 z_angle_to 0.0
set_car_mission $M84CAR5 driver_behaviour_to 2
change_car_lock 2 = car $M84CAR5
  has_respray_happened $SPRAYSHOP1
goto @M84_2621

:M84_2614
change_blip_display $TAXI_PICKUP display 3

:M84_2621
wait 10
if 
  not is_car_dead $M84CAR1
goto_if_false @M84_3282
if 
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
goto_if_false @M84_2614
change_blip_display $TAXI_PICKUP display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
  has_respray_happened $SPRAYSHOP1
goto_if_false @M84_2621
remove_sphere $PICKUP
add_pager_message 'M84_13' 140 10 2
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 1262.375 -111.25 14.9375 color 5 display 2
change_blip_scale $TAXI_PICKUP2 size 3
add_sphere $M84SPHERE = create_sphere 1262.375 -111.25 14.9375 4.0
goto @M84_2769

:M84_2762
change_blip_display $TAXI_PICKUP display 3

:M84_2769
wait 10
if 
  not is_car_dead $M84CAR1
goto_if_false @M84_3282
if 
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
goto_if_false @M84_2762
change_blip_display $TAXI_PICKUP display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $M84CAR1
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1262.375 -111.25 14.9375 radius 4.0 4.0 3.0
goto_if_false @M84_2769
set_char_obj_leave_car $PLAYER_ACTOR leave_car $M84CAR1

:M84_2867
wait 10
if 
  not is_player_in_car $PLAYER_CHAR in_car $M84CAR1
goto_if_false @M84_2867
set_player_control $PLAYER_CHAR can_move 0
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP2
remove_sphere $M84SPHERE
switch_widescreen 1
do_fade 0 1000
wait 1000
clear_area 1 at 1271.875 -94.625 14.8125 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 -100.0
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 -100.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @M84_3138
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000
print_now 'M84_14' time 4000 1
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @M84_3138
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000
print_now 'M84_15' time 5000 1
wait 5000

:M84_3138
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$4432 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 5000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 5000
wait 3000
start_new_script @TWEL 
register_mission_passed 'M84_2'
return 

:M84_3282
print_big 'M_FAIL' 6000 ms 1
$4432 = 0
change_blip_display $8BALL display 3
return 

:M84_3313
$ONMISSION = 0
remove_blip $M84PICK
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP2
remove_blip $M84PICK1
remove_blip $M84PICK2
remove_blip $M84PICK3
remove_blip $M84PICK4
remove_blip $M84PICK5
remove_blip $M84PICK6
remove_sphere $M84SPHERE
remove_sphere $PICKUP
remove_char_elegantly $M84KILL1
remove_char_elegantly $M84KILL2
remove_char_elegantly $M84KILL3
remove_char_elegantly $M84KILL4
remove_char_elegantly $M84KILL5
remove_char_elegantly $M84KILL6
remove_char_elegantly $M84KILL7
remove_char_elegantly $M84KILL8
remove_char_elegantly $M84KILL9
remove_char_elegantly $M84KILL10
remove_char_elegantly $M84KILL11
remove_char_elegantly $M84KILL12
remove_char_elegantly $M84KILL13
remove_char_elegantly $M84KILL14
remove_char_elegantly $M84KILL15
$M84CAR1 = -1
delete_car $M84CAR4
$M84CAR2 = -1
$M84CAR3 = -1
$M84CAR5 = -1
unload_special_character 1
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 137
mark_model_as_no_longer_needed 139
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 11---------------
// Originally: Paramedic

:M85
gosub @M85_36
if 
  has_deatharrest_been_executed 
goto_if_false @M85_27
gosub @M85_2608

:M85_27
gosub @M85_2639
terminate_this_script 

:M85_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'M85'
request_model 119
request_model 23
request_model 22
load_special_character 1 'EIGHT2'
load_special_character 2 'CHUNKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen '8BALL'
do_fade 0 1000
print_big 'M85_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1296.438 -108.1875 14.875 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1271.875 -94.625 14.8125
create_char $8BALL_CHAR = create_actor 21 26 at 1271.813 -91.8125 14.875
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:M85_291
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @M85_319
goto @M85_615

:M85_319
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @M85_291
clear_help 
load_mission_audio 'J6_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'M85_3' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M85_391
wait 0
if 
  TIMERA >= 5180
goto_if_false @M85_391
print_now 'M85_4' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M85_439
wait 0
if 
  TIMERA >= 10170
goto_if_false @M85_439
print_now 'M85_4A' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M85_487
wait 0
if 
  TIMERA >= 14110
goto_if_false @M85_487
print_now 'M85_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M85_535
wait 0
if 
  TIMERA >= 19140
goto_if_false @M85_535
print_now 'M85_6' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M85_583
wait 0
if 
  TIMERA >= 24050
goto_if_false @M85_583
clear_prints 
wait 1000
clear_mission_audio 

:M85_615
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $8BALL_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1523.5 -775.0625 11.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $M85SPHERE = create_sphere 1523.5 -775.0625 11.8125 4.0

:M85_727
wait 10
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1523.5 -775.0625 11.8125 radius 4.0 4.0 4.0
goto_if_false @M85_727
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @M85_727
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
remove_blip $TAXI_PICKUP
remove_sphere $M85SPHERE
wait 100
set_player_control $PLAYER_CHAR can_move 0
create_char $JONI = create_actor 21 27 at 1516.063 -785.6875 11.8125
set_char_obj_run_to_coord $JONI run_to 1520.0 -776.5625
set_fixed_camera_position 1514.625 -783.0625 11.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1527.688 -770.5625 11.8125 switchstyle 1
switch_widescreen 1
wait 3600
turn_char_to_face_char $JONI look_at_actor $PLAYER_ACTOR
print_now 'M85_7' time 4000 1
wait 4000
print_now 'M85_8' time 5000 1
wait 5000
print_now 'M85_9' time 5000 1
wait 5000
set_char_obj_enter_car_as_passenger $JONI go_to_car $PLAYCAR
print_now 'M85_10' time 5000 1
wait 5000

:M85_979
wait 10
if 
  is_char_in_car $JONI in_car $PLAYCAR
goto_if_false @M85_979
clear_prints 
load_splash_screen 'MAINSC1'
print_now 'M85_11' time 5000 1
wait 1000
point_camera_at_point 1514.875 -772.3125 11.375 switchstyle 1
create_char $M85KILL1 = create_actor 21 22 at 1509.5 -758.125 11.8125
create_char $M85KILL2 = create_actor 21 23 at 1512.0 -753.6875 11.8125
create_char $M85KILL3 = create_actor 21 22 at 1492.5 -818.8125 11.8125
create_char $M85KILL4 = create_actor 21 23 at 1523.563 -764.5625 22.4375
create_char $M85KILL7 = create_actor 21 22 at 1481.75 -773.875 11.8125
create_char $M85KILL8 = create_actor 21 23 at 1524.0 -833.3125 11.8125
set_char_heading $M85KILL1 z_angle_to 210.0
set_char_heading $M85KILL2 z_angle_to 210.0
create_car $M85CAR1 = create_car 119 at 1442.25 -773.625 11.8125
create_car $M85CAR2 = create_car 119 at 1516.0 -821.9375 11.8125
create_char_inside_car $M85KILL5 = create_actor 21 23 in_car $M85CAR1
create_char_inside_car $M85KILL6 = create_actor 21 22 in_car $M85CAR2
set_car_heading $M85CAR1 z_angle_to 270.0
set_car_heading $M85CAR2 z_angle_to 360.0
set_car_cruise_speed $M85CAR1 max_speed_to 25.0
set_car_cruise_speed $M85CAR2 max_speed_to 25.0
set_char_stay_in_same_place $M85KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $M85KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $M85KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $M85KILL8 maintain_position_when_attacked 1
char_look_at_player_always $M85KILL3 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $M85KILL4 to_look_at_player $PLAYER_CHAR
give_weapon_to_char $M85KILL1 weapon 3 ammo 250
give_weapon_to_char $M85KILL2 weapon 3 ammo 250
give_weapon_to_char $M85KILL3 weapon 5 ammo 250
give_weapon_to_char $M85KILL4 weapon 5 ammo 250
give_weapon_to_char $M85KILL5 weapon 3 ammo 250
give_weapon_to_char $M85KILL6 weapon 3 ammo 250
give_weapon_to_char $M85KILL7 weapon 4 ammo 250
give_weapon_to_char $M85KILL8 weapon 4 ammo 250
set_char_obj_kill_player_on_foot $M85KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $M85KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $M85KILL6 kill_player $PLAYER_CHAR
wait 3000
set_player_control $PLAYER_CHAR can_move 1
restore_camera_jumpcut 
switch_widescreen 0
$M85_TIME = 60000
wait 100
display_onscreen_timer $M85_TIME
add_blip_for_char $JONI_PICKUP = create_marker_above_actor $JONI

:M85_1492
change_blip_display $JONI_PICKUP display 3

:M85_1499
wait 10
if 
  not is_char_dead $JONI
goto_if_false @M85_2608
if 
  $M85_TIME > 0
goto_if_false @M85_2608
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M85_1492
change_blip_display $JONI_PICKUP display 0
if 
  not locate_player_any_means_3d $PLAYER_CHAR 0 1523.5 -775.0625 11.8125 radius 150.0 150.0 150.0
goto_if_false @M85_1499
clear_onscreen_timer $M85_TIME
print_now 'M85_12' time 4000 1
change_blip_display $M85PICK1 display 0
change_blip_display $M85PICK2 display 0
change_blip_display $M85PICK3 display 0
change_blip_display $M85PICK4 display 0
change_blip_display $M85PICK5 display 0
change_blip_display $M85PICK6 display 0
create_char $M85KILL7 = create_actor 21 23 at 953.6875 -350.0 9.9375
create_char $M85KILL8 = create_actor 21 22 at 921.5625 -349.375 22.1875
create_char $M85KILL9 = create_actor 21 23 at 941.6875 -346.625 9.9375
create_char $M85KILL10 = create_actor 21 23 at 940.25 -330.25 9.9375
give_weapon_to_char $M85KILL7 weapon 3 ammo 250
give_weapon_to_char $M85KILL8 weapon 5 ammo 250
give_weapon_to_char $M85KILL9 weapon 3 ammo 250
give_weapon_to_char $M85KILL10 weapon 2 ammo 250
set_char_stay_in_same_place $M85KILL8 maintain_position_when_attacked 1
char_look_at_player_always $M85KILL8 to_look_at_player $PLAYER_CHAR
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 944.0625 -340.5 9.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP2 size 3

:M85_1813
wait 10
if 
  not is_char_dead $JONI
goto_if_false @M85_2608
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @M85_1866
change_blip_display $JONI_PICKUP display 0
goto @M85_1873

:M85_1866
change_blip_display $JONI_PICKUP display 3

:M85_1873
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 944.0625 -340.5 9.8125 radius 50.0 50.0 50.0
goto_if_false @M85_1813
set_char_obj_kill_player_on_foot $M85KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M85KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_char_on_foot $M85KILL10 kill_actor $JONI
change_blip_display $TAXI_PICKUP2 display 0
set_player_control $PLAYER_CHAR can_move 0
print_now 'M85_13' time 4000 1
set_char_obj_leave_car $JONI leave_car $PLAYCAR
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR
wait 2000
remove_blip $JONI_PICKUP
change_blip_display $JONI_PICKUP display 3
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_char $M85PICK7 = create_marker_above_actor $M85KILL7
add_blip_for_char $M85PICK8 = create_marker_above_actor $M85KILL8
add_blip_for_char $M85PICK9 = create_marker_above_actor $M85KILL9
add_blip_for_char $M85PICK10 = create_marker_above_actor $M85KILL10
change_blip_colour $M85PICK7 color_to 0
change_blip_colour $M85PICK8 color_to 0
change_blip_colour $M85PICK9 color_to 0
change_blip_colour $M85PICK10 color_to 0
wait 100
add_blip_for_char $JONI_PICKUP = create_marker_above_actor $JONI

:M85_2082
wait 10
if 
  not is_char_dead $JONI
goto_if_false @M85_2608
if 
  is_char_dead $M85KILL7
goto_if_false @M85_2125
change_blip_display $M85PICK7 display 0

:M85_2125
if 
  is_char_dead $M85KILL8
goto_if_false @M85_2148
change_blip_display $M85PICK8 display 0

:M85_2148
if 
  is_char_dead $M85KILL9
goto_if_false @M85_2171
change_blip_display $M85PICK9 display 0

:M85_2171
if 
  is_char_dead $M85KILL10
goto_if_false @M85_2194
change_blip_display $M85PICK10 display 0

:M85_2194
wait 10
if and
  is_char_dead $M85KILL7
  is_char_dead $M85KILL8
  is_char_dead $M85KILL9
  is_char_dead $M85KILL10
goto_if_false @M85_2082
change_blip_display $M85PICK7 display 0
change_blip_display $M85PICK8 display 0
change_blip_display $M85PICK9 display 0
change_blip_display $M85PICK10 display 0
change_blip_display $TAXI_PICKUP2 display 3
change_blip_display $JONI_PICKUP display 3
add_sphere $M85SPHERE = create_sphere 944.0625 -340.5 9.8125 4.0
set_player_as_leader $JONI to_player $PLAYER_CHAR
print_now 'M85_15' time 6000 1
goto @M85_2318

:M85_2318
wait 10
if 
  not is_char_dead $JONI
goto_if_false @M85_2608
if 
  is_char_in_any_car $JONI
goto_if_false @M85_2376
change_blip_display $JONI_PICKUP display 0
set_player_as_leader $JONI to_player $PLAYER_CHAR
goto @M85_2391

:M85_2376
change_blip_display $JONI_PICKUP display 3
set_player_as_leader $JONI to_player $PLAYER_CHAR

:M85_2391
if and
  locate_player_any_means_3d $PLAYER_CHAR 0 944.0625 -340.5 9.8125 radius 2.0 2.0 2.0
  locate_char_any_means_3d $JONI 0 944.0625 -340.5 9.8125 radius 2.0 2.0 2.0
goto_if_false @M85_2318
set_player_control $PLAYER_CHAR can_move 0
remove_sphere $M85SPHERE
print_now 'M85_14' time 5000 1
wait 5000
do_fade 0 1000
wait 1000
remove_blip $TAXI_PICKUP2
remove_sphere $M85SPHERE
remove_char_elegantly $JONI
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
$4433 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 5000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 5000
wait 3000
register_mission_passed 'M85_2'
start_new_script @THIRT 
return 

:M85_2608
print_big 'M_FAIL' 6000 ms 1
$4433 = 0
change_blip_display $8BALL display 3
return 

:M85_2639
$ONMISSION = 0
remove_char_elegantly $M85KILL1
remove_char_elegantly $M85KILL2
remove_char_elegantly $M85KILL3
remove_char_elegantly $M85KILL4
remove_char_elegantly $M85KILL5
remove_char_elegantly $M85KILL6
remove_char_elegantly $M85KILL7
remove_char_elegantly $M85KILL8
remove_char_elegantly $M85KILL9
remove_char_elegantly $M85KILL10
remove_char_elegantly $JONI
remove_blip $JONI_PICKUP
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP2
remove_blip $M85PICK7
remove_blip $M85PICK8
remove_blip $M85PICK9
remove_blip $M85PICK10
remove_sphere $M85SPHERE
clear_onscreen_timer $M85_TIME
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 119
load_splash_screen 'MAINSC1'
mission_has_finished 
$M85CAR1 = -1
$M85CAR2 = -1
return 

//-------------Mission 12---------------
// Originally: Firefighter

:MJ1
gosub @MJ1_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ1_27
gosub @MJ1_1927

:MJ1_27
gosub @MJ1_1958
terminate_this_script 

:MJ1_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ1'
request_model 109
request_model 7
request_model 22
request_model 23
request_model 25
request_model 57
load_special_character 1 'CHUNKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ1_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 9.9375
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 9.9375
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ1_275
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ1_303
goto @MJ1_455

:MJ1_303
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ1_275
clear_help 
load_mission_audio 'DOOR_2'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ1_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ1_375
wait 0
if 
  TIMERA >= 10090
goto_if_false @MJ1_375
print_now 'MJ1_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 2000

:MJ1_423
wait 0
if 
  TIMERA >= 12210
goto_if_false @MJ1_423
clear_prints 
wait 1000
clear_mission_audio 

:MJ1_455
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $JONI_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$MJ1_TIME = 240000
wait 100
display_onscreen_timer $MJ1_TIME
create_car $MJ1CAR = create_car 109 at 833.5 -372.8125 12.6875
set_car_only_damaged_by_player $MJ1CAR immune_to_nonplayer 1
set_car_heading $MJ1CAR z_angle_to 358.0
set_car_cruise_speed $MJ1CAR max_speed_to 25.0
set_car_driving_style $MJ1CAR traffic_behavior_to 2
set_car_mission $MJ1CAR driver_behaviour_to 1
create_char_inside_car $MJ1KILL1 = create_actor 21 57 in_car $MJ1CAR
add_blip_for_char $MJ1PICK1 = create_marker_above_actor $MJ1KILL1
change_blip_colour $MJ1PICK1 color_to 0
wait 100
create_char $MJ1KILL2 = create_actor 21 25 at 946.375 -841.625 14.75
set_char_heading $MJ1KILL2 z_angle_to 0.0
give_weapon_to_char $MJ1KILL2 weapon 3 ammo 250
add_blip_for_char $MJ1PICK2 = create_marker_above_actor $MJ1KILL2
change_blip_colour $MJ1PICK2 color_to 0
wait 100
create_char $MJ1KILL3 = create_actor 21 23 at 869.5 212.8125 9.3125
set_char_heading $MJ1KILL3 z_angle_to 270.0
give_weapon_to_char $MJ1KILL3 weapon 4 ammo 250
add_blip_for_char $MJ1PICK3 = create_marker_above_actor $MJ1KILL3
change_blip_colour $MJ1PICK3 color_to 0
wait 100
create_char $MJ1KILL4 = create_actor 21 7 at 968.875 -1134.313 14.625
set_char_heading $MJ1KILL4 z_angle_to 90.0
add_blip_for_char $MJ1PICK4 = create_marker_above_actor $MJ1KILL4
change_blip_colour $MJ1PICK4 color_to 0
wait 1000
create_char $MJ1KILL5 = create_actor 21 22 at 1005.375 158.9375 9.3125
create_char $MJ1KILL6 = create_actor 21 23 at 968.6875 183.6875 10.8125
create_char $MJ1KILL7 = create_actor 21 22 at 968.8125 205.9375 12.75
create_char $MJ1KILL8 = create_actor 21 23 at 934.25 184.875 9.3125
create_char $MJ1KILL9 = create_actor 21 22 at 898.5625 203.3125 13.0625
create_char $MJ1KILL10 = create_actor 21 23 at 886.5 211.3125 9.3125
set_char_stay_in_same_place $MJ1KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ1KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ1KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ1KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ1KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ1KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ1KILL10 maintain_position_when_attacked 1
char_look_at_player_always $MJ1KILL5 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MJ1KILL6 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MJ1KILL7 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MJ1KILL8 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MJ1KILL9 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MJ1KILL10 to_look_at_player $PLAYER_CHAR
give_weapon_to_char $MJ1KILL5 weapon 3 ammo 250
give_weapon_to_char $MJ1KILL6 weapon 5 ammo 250
give_weapon_to_char $MJ1KILL7 weapon 3 ammo 250
give_weapon_to_char $MJ1KILL8 weapon 4 ammo 250
give_weapon_to_char $MJ1KILL9 weapon 5 ammo 250
give_weapon_to_char $MJ1KILL10 weapon 5 ammo 250
set_char_obj_kill_player_on_foot $MJ1KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ1KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ1KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ1KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ1KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ1KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ1KILL10 kill_player $PLAYER_CHAR
$MJ1DEAD1 = 0
$MJ1DEAD2 = 0
$MJ1DEAD3 = 0
$MJ1DEAD4 = 0
$MJ1SAY1 = 0
$MJ1SAY2 = 0
$MJ1SAY3 = 0
$MJ1SAY4 = 0

:MJ1_1171
wait 0
if 
  $MJ1_TIME > 0
goto_if_false @MJ1_1927
goto @MJ1_1200

:MJ1_1200
if and
  $MJ1DEAD1 == 0
  $MJ1SAY1 == 0
goto_if_false @MJ1_1277
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MJ1KILL1 radius 10.0 10.0 10.0
goto_if_false @MJ1_1277
print_now 'MJ1_5' time 4000 1
$MJ1SAY1 = 1

:MJ1_1277
if and
  $MJ1DEAD2 == 0
  $MJ1SAY2 == 0
goto_if_false @MJ1_1368
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 946.375 -841.625 14.75 radius 20.0 20.0 20.0
goto_if_false @MJ1_1368
set_char_obj_kill_player_on_foot $MJ1KILL2 kill_player $PLAYER_CHAR
print_now 'MJ1_7' time 5000 1
$MJ1SAY2 = 1

:MJ1_1368
if and
  $MJ1DEAD3 == 0
  $MJ1SAY3 == 0
goto_if_false @MJ1_1451
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1010.313 157.6875 9.3125 radius 20.0 20.0 20.0
goto_if_false @MJ1_1451
print_now 'MJ1_9' time 5000 1
$MJ1SAY3 = 1

:MJ1_1451
if and
  $MJ1DEAD4 == 0
  $MJ1SAY4 == 0
goto_if_false @MJ1_1549
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 972.8125 -1120.313 13.125 radius 20.0 20.0 20.0
goto_if_false @MJ1_1549
set_char_obj_flee_player_on_foot_always $MJ1KILL4 avoid_player $PLAYER_CHAR
set_anim_group_for_char $MJ1KILL4 walk_style_to 18
print_now 'MJ1_11' time 4000 1
$MJ1SAY4 = 1

:MJ1_1549
if 
  $MJ1DEAD1 == 0
goto_if_false @MJ1_1610
if 
  is_char_dead $MJ1KILL1
goto_if_false @MJ1_1610
remove_blip $MJ1PICK1
print_now 'MJ1_6' time 3000 1
$MJ1DEAD1 = 1

:MJ1_1610
if 
  $MJ1DEAD2 == 0
goto_if_false @MJ1_1671
if 
  is_char_dead $MJ1KILL2
goto_if_false @MJ1_1671
remove_blip $MJ1PICK2
print_now 'MJ1_8' time 3000 1
$MJ1DEAD2 = 1

:MJ1_1671
if 
  $MJ1DEAD3 == 0
goto_if_false @MJ1_1732
if 
  is_char_dead $MJ1KILL3
goto_if_false @MJ1_1732
remove_blip $MJ1PICK3
print_now 'MJ1_10' time 4000 1
$MJ1DEAD3 = 1

:MJ1_1732
if 
  $MJ1DEAD4 == 0
goto_if_false @MJ1_1793
if 
  is_char_dead $MJ1KILL4
goto_if_false @MJ1_1793
remove_blip $MJ1PICK4
$MJ1DEAD4 = 1
print_now 'MJ1_13' time 4000 1

:MJ1_1793
if and
  is_char_dead $MJ1KILL1
  is_char_dead $MJ1KILL2
  is_char_dead $MJ1KILL3
  is_char_dead $MJ1KILL4
goto_if_false @MJ1_1171
clear_onscreen_timer $MJ1_TIME
wait 4000
print_now 'MJ1_12' time 6000 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 5000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 5000
$4434 = 1
wait 3000
register_mission_passed 'MJ1_2'
start_new_script @FORT 
return 

:MJ1_1927
print_big 'M_FAIL' 6000 ms 1
$4434 = 0
change_blip_display $JONI display 3
return 

:MJ1_1958
$ONMISSION = 0
wait 1000
remove_char_elegantly $MJ1KILL1
remove_char_elegantly $MJ1KILL2
remove_char_elegantly $MJ1KILL3
remove_char_elegantly $MJ1KILL4
remove_char_elegantly $MJ1KILL5
remove_char_elegantly $MJ1KILL6
remove_char_elegantly $MJ1KILL7
remove_char_elegantly $MJ1KILL8
remove_blip $MJ1PICK1
remove_blip $MJ1PICK2
remove_blip $MJ1PICK3
remove_blip $MJ1PICK4
clear_onscreen_timer $MJ1_TIME
mark_model_as_no_longer_needed 7
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 57
mark_model_as_no_longer_needed 109
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
$MJ1CAR1 = -1
return 

//-------------Mission 13---------------
// Originally: Vigilante

:MJ2
gosub @MJ2_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ2_27
gosub @MJ2_2543

:MJ2_27
gosub @MJ2_2574
terminate_this_script 

:MJ2_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ2'
request_model 119
request_model 139
request_model 98
request_model 121
request_model 66
request_model 61
request_model 22
request_model 23
load_special_character 1 'CHUNKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ2_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 8.9375
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 8.9375
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ2_284
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ2_312
goto @MJ2_560

:MJ2_312
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ2_284
clear_help 
load_mission_audio 'DOOR_4'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ2_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ2_384
wait 0
if 
  TIMERA >= 6050
goto_if_false @MJ2_384
print_now 'MJ2_4' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ2_432
wait 0
if 
  TIMERA >= 10250
goto_if_false @MJ2_432
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MJ2_5' time 10000 1

:MJ2_480
wait 0
if 
  TIMERA >= 14110
goto_if_false @MJ2_480
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000
print_now 'MJ2_6' time 10000 1

:MJ2_528
wait 0
if 
  TIMERA >= 23100
goto_if_false @MJ2_528
clear_prints 
wait 1000
clear_mission_audio 

:MJ2_560
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
create_char $MJ2NPC1 = create_actor 20 66 at 942.875 -347.6875 9.9375
set_player_as_leader $MJ2NPC1 to_player $PLAYER_CHAR
remove_blip $MJ2PICK1
add_blip_for_char $MJ2PICK1 = create_marker_above_actor $MJ2NPC1
delete_char $JONI_CHAR
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
wait 1000
do_fade 1 1000
wait 1000
print_now 'MJ2_20' time 4000 1
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
get_game_timer $GAME_TIME1
$MJ2SAY21 = 0
TIMERA = 0

:MJ2_713
wait 0
if and
  $MJ2SAY21 == 0
  TIMERA >= 3000
goto_if_false @MJ2_765
print_now 'MJ2_21' time 3000 1
$MJ2SAY21 = 1

:MJ2_765
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MJ2_713
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
if 
  is_char_in_car $MJ2NPC1 in_car $PLAYCAR
goto_if_false @MJ2_713
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1017.063 -451.0 14.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MJ2SPHERE = create_sphere 1017.063 -451.0 14.8125 4.0
change_blip_display $MJ2PICK1 display 0
remove_blip $MJ2PICK1
print_now 'MJ2_7' time 5000 1
wait 5000
print_now 'MJ2_8' time 3000 1
goto @MJ2_927

:MJ2_920
change_blip_display $MJ2PICK1 display 3

:MJ2_927
wait 10
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
if 
  is_char_in_any_car $MJ2NPC1
goto_if_false @MJ2_920
change_blip_display $MJ2PICK1 display 0
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MJ2_927
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
if and
  is_char_in_car $MJ2NPC1 in_car $PLAYCAR
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1017.063 -451.0 14.8125 radius 4.0 4.0 3.0
goto_if_false @MJ2_927
set_player_control $PLAYER_CHAR can_move 0
restore_camera_jumpcut 
wait 500
leave_group $MJ2NPC1
remove_blip $TAXI_PICKUP
remove_sphere $MJ2SPHERE
set_char_obj_leave_car $MJ2NPC1 leave_car $PLAYCAR
wait 1000
set_char_obj_goto_coord_on_foot $MJ2NPC1 walk_to 1017.188 -443.4375
wait 2000
do_fade 0 1000
wait 800
delete_char $MJ2NPC1
wait 200
create_char $MJ2NPC1 = create_actor 20 66 at 1022.438 -419.25 14.9375
create_char $MJ2KILL1 = create_actor 21 22 at 1013.813 -432.625 14.875
create_char $MJ2KILL2 = create_actor 21 23 at 1032.063 -438.25 14.875
create_char $MJ2KILL3 = create_actor 21 22 at 1014.438 -413.125 15.3125
create_char $MJ2KILL4 = create_actor 21 23 at 1029.125 -417.5625 14.875
add_blip_for_char $MJ2KILL_PICK1 = create_marker_above_actor $MJ2KILL1
add_blip_for_char $MJ2KILL_PICK2 = create_marker_above_actor $MJ2KILL2
add_blip_for_char $MJ2KILL_PICK3 = create_marker_above_actor $MJ2KILL3
add_blip_for_char $MJ2KILL_PICK4 = create_marker_above_actor $MJ2KILL4
change_blip_colour $MJ2KILL_PICK1 color_to 0
change_blip_colour $MJ2KILL_PICK2 color_to 0
change_blip_colour $MJ2KILL_PICK3 color_to 0
change_blip_colour $MJ2KILL_PICK4 color_to 0
give_weapon_to_char $MJ2KILL1 weapon 3 ammo 250
give_weapon_to_char $MJ2KILL2 weapon 3 ammo 250
give_weapon_to_char $MJ2KILL3 weapon 5 ammo 250
give_weapon_to_char $MJ2KILL4 weapon 5 ammo 250
set_char_stay_in_same_place $MJ2KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ2KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ2KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ2KILL4 maintain_position_when_attacked 1
set_char_heading $MJ2NPC1 z_angle_to 269.5
set_char_stay_in_same_place $MJ2NPC1 maintain_position_when_attacked 1
do_fade 1 1000
print_now 'MJ2_9' time 3000 1
wait 2000
set_char_wait_state $MJ2NPC1 anim 14 wait_state_time 100000
set_player_control $PLAYER_CHAR can_move 1
wait 1000
set_char_obj_kill_player_on_foot $MJ2KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ2KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ2KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ2KILL4 kill_player $PLAYER_CHAR
print_now 'MJ2_10' time 6000 1
change_blip_display $MJ2PICK1 display 3
set_char_stay_in_same_place $MJ2NPC1 maintain_position_when_attacked 1
set_char_wait_state $MJ2NPC1 anim 14 wait_state_time 100000

:MJ2_1483
wait 0
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
if 
  is_char_dead $MJ2KILL1
goto_if_false @MJ2_1524
remove_blip $MJ2KILL_PICK1

:MJ2_1524
wait 0
if 
  is_char_dead $MJ2KILL2
goto_if_false @MJ2_1549
remove_blip $MJ2KILL_PICK2

:MJ2_1549
wait 0
if 
  is_char_dead $MJ2KILL3
goto_if_false @MJ2_1574
remove_blip $MJ2KILL_PICK3

:MJ2_1574
wait 0
if 
  is_char_dead $MJ2KILL4
goto_if_false @MJ2_1599
remove_blip $MJ2KILL_PICK4

:MJ2_1599
wait 0
if and
  is_char_dead $MJ2KILL1
  is_char_dead $MJ2KILL2
  is_char_dead $MJ2KILL3
  is_char_dead $MJ2KILL4
goto_if_false @MJ2_1483
remove_blip $MJ2KILL_PICK1
remove_blip $MJ2KILL_PICK2
remove_blip $MJ2KILL_PICK3
remove_blip $MJ2KILL_PICK4
remove_blip $MJ2PICK1
add_blip_for_char $MJ2PICK1 = create_marker_above_actor $MJ2NPC1
print_now 'MJ2_14' time 6000 1

:MJ2_1682
wait 0
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
if and
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MJ2NPC1 radius 2.0 2.0 2.0
  is_char_dead $MJ2KILL1
  is_char_dead $MJ2KILL2
goto_if_false @MJ2_1682
set_player_as_leader $MJ2NPC1 to_player $PLAYER_CHAR
set_char_stay_in_same_place $MJ2NPC1 maintain_position_when_attacked 0

:MJ2_1757
wait 10
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MJ2_1757
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
if and
  is_char_in_car $MJ2NPC1 in_car $PLAYCAR
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @MJ2_1757
leave_group $MJ2NPC1
change_blip_display $MJ2PICK1 display 0
set_player_control $PLAYER_CHAR can_move 0
restore_camera_jumpcut 
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
print_now 'MJ2_11' time 4000 1
wait 4000
print_now 'MJ2_12' time 4000 1
wait 4000
print_now 'MJ2_13' time 4000 1
wait 3000
create_car $MJ2CARA = create_car 98 at 1192.0 -525.8125 24.25
create_car $MJ2CARB = create_car 121 at 1198.75 -530.75 23.25
set_car_heading $MJ2CARA z_angle_to 262.0
set_car_heading $MJ2CARB z_angle_to 72.0
create_car $MJ2CAR = create_car 119 at 1072.0 -496.25 15.4375
create_char_inside_car $MJ2KILL3 = create_actor 21 61 in_car $MJ2CAR
set_car_heading $MJ2CAR z_angle_to 90.0
set_car_cruise_speed $MJ2CAR max_speed_to 0.0
wait 1000
set_fixed_camera_position 1051.75 -479.8125 21.4375 rotation 0.0 0.0 0.0
point_camera_at_point 1072.0 -496.25 15.4375 switchstyle 2
print_now 'MJ2_15' time 6000 1
wait 3000
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
$MJ2_TIME = 60000
display_onscreen_timer $MJ2_TIME
wait 100
set_car_cruise_speed $MJ2CAR max_speed_to 30.0
set_car_driving_style $MJ2CAR traffic_behavior_to 2
add_blip_for_char $MJ2PICK2 = create_marker_above_actor $MJ2KILL3
change_blip_colour $MJ2PICK2 color_to 0
set_char_obj_kill_player_any_means $MJ2KILL3 kill_player $PLAYER_CHAR
remove_blip $TAXI_PICKUP
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1203.125 -555.5 20.75 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MJ2SPHERE = create_sphere 1203.125 -555.5 20.75 4.0

:MJ2_2188
change_blip_display $MJ2PICK1 display 3

:MJ2_2195
wait 10
if 
  $MJ2_TIME > 0
goto_if_false @MJ2_2543
if 
  not is_char_dead $MJ2NPC1
goto_if_false @MJ2_2543
if 
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $MJ2KILL3 radius 10.0 10.0 10.0
goto_if_false @MJ2_2528
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @MJ2_2188
change_blip_display $MJ2PICK1 display 0
if and
  is_char_in_car $MJ2NPC1 in_car $PLAYCAR
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1203.125 -555.5 20.75 radius 4.0 4.0 3.0
goto_if_false @MJ2_2195
set_player_control $PLAYER_CHAR can_move 0
remove_blip $TAXI_PICKUP
remove_sphere $MJ2SPHERE
remove_blip $KILLPICK
remove_char_elegantly $MJ2KILL3
clear_onscreen_timer $MJ2_TIME
switch_widescreen 1
print_now 'MJ2_17' time 4000 1
wait 4000
set_char_obj_leave_car $MJ2NPC1 leave_car $PLAYCAR
wait 2000
do_fade 0 1000
wait 1000
remove_char_elegantly $MJ2NPC1
do_fade 1 1000
wait 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 6000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 6000
$4435 = 1
wait 3000
register_mission_passed 'MJ2_2'
start_new_script @FIFT 
return 

:MJ2_2528
print_now 'MJ2_16' time 3000 1

:MJ2_2543
print_big 'M_FAIL' 6000 ms 1
$4435 = 0
change_blip_display $JONI display 3
return 

:MJ2_2574
$ONMISSION = 0
wait 1000
remove_blip $TAXI_PICKUP
remove_blip $KILLPICK
remove_blip $MJ2PICK
remove_blip $MJ2PICK2
remove_blip $MJ2PICK1
remove_blip $MJ2KILL_PICK1
remove_blip $MJ2KILL_PICK2
remove_blip $MJ2KILL_PICK3
remove_blip $MJ2KILL_PICK4
remove_char_elegantly $MJ2NPC1
remove_char_elegantly $MJ2KILL1
remove_char_elegantly $MJ2KILL2
remove_char_elegantly $MJ2KILL3
remove_char_elegantly $MJ2KILL4
clear_onscreen_timer $MJ2_TIME
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 66
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 139
mark_model_as_no_longer_needed 98
mark_model_as_no_longer_needed 119
remove_sphere $MJ2SPHERE
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
$MJ2CAR1 = -1
return 

//-------------Mission 14---------------
// Originally: Taxi Driver

:MJ3
gosub @MJ3_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ3_27
gosub @MJ3_2267

:MJ3_27
gosub @MJ3_2327
terminate_this_script 

:MJ3_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ3'
request_model 149
request_model 25
request_model 13
request_model 53
request_model 50
load_special_character 1 'CHUNKY'
load_special_character 2 'BOMBER'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ3_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 8.9375
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 8.9375
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ3_284
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ3_312
goto @MJ3_512

:MJ3_312
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ3_284
clear_help 
load_mission_audio 'DOOR_5'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ3_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ3_384
wait 0
if 
  TIMERA >= 11110
goto_if_false @MJ3_384
print_now 'MJ3_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MJ3_432
wait 0
if 
  TIMERA >= 14100
goto_if_false @MJ3_432
print_now 'MJ3_5' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ3_480
wait 0
if 
  TIMERA >= 19030
goto_if_false @MJ3_480
clear_prints 
wait 1000
clear_mission_audio 

:MJ3_512
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $JONI_CHAR
do_fade 1 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
create_char $MJ3NPC1 = create_actor 20 13 at 1008.5 -775.6875 14.9375
create_char $MJ3NPC2 = create_actor 20 50 at 1033.188 -1011.938 14.9375
create_char $MJ3NPC3 = create_actor 20 53 at 1260.625 -1102.063 11.8125
create_char $MJ3NPC4 = create_actor 20 25 at 1118.438 -581.8125 14.9375
create_char $MJ3NPC5 = create_actor 20 27 at 1170.75 -430.6875 23.5
create_car $MJ3CAR = create_car 149 at 952.9375 -353.8125 10.625
add_blip_for_car $CARPICK = create_marker_above_car $MJ3CAR
change_blip_colour $CARPICK color_to 1
create_pickup $TAXI_PICKUP1 = create_pickup 1343 type 13 at 1008.438 -771.25 14.8125
create_pickup $TAXI_PICKUP2 = create_pickup 1343 type 13 at 1032.875 -1015.875 14.9375
create_pickup $TAXI_PICKUP3 = create_pickup 1343 type 13 at 1258.0 -1099.063 11.6875
create_pickup $TAXI_PICKUP4 = create_pickup 1343 type 13 at 1122.5 -581.9375 14.8125
create_pickup $TAXI_PICKUP5 = create_pickup 1343 type 13 at 1171.0 -426.4375 23.375
add_blip_for_pickup $MJ3_BLIP1 = create_marker_above_pickup $TAXI_PICKUP1
add_blip_for_pickup $MJ3_BLIP2 = create_marker_above_pickup $TAXI_PICKUP2
add_blip_for_pickup $MJ3_BLIP3 = create_marker_above_pickup $TAXI_PICKUP3
add_blip_for_pickup $MJ3_BLIP4 = create_marker_above_pickup $TAXI_PICKUP4
add_blip_for_pickup $MJ3_BLIP5 = create_marker_above_pickup $TAXI_PICKUP5
change_blip_scale $MJ3_BLIP1 size 3
change_blip_scale $MJ3_BLIP2 size 3
change_blip_scale $MJ3_BLIP3 size 3
change_blip_scale $MJ3_BLIP4 size 3
change_blip_scale $MJ3_BLIP5 size 3
set_car_heading $MJ3CAR z_angle_to 357.0
set_char_heading $MJ3NPC1 z_angle_to 357.0
set_char_heading $MJ3NPC2 z_angle_to 170.0
set_char_heading $MJ3NPC3 z_angle_to 40.0
set_char_heading $MJ3NPC4 z_angle_to 268.0
set_char_heading $MJ3NPC5 z_angle_to 1.6875
$MJ31 = 0
$MJ32 = 0
$MJ33 = 0
$MJ34 = 0
$MJ35 = 0
$MJ3_TIME = 240000
display_onscreen_timer $MJ3_TIME
$MJ3CARDAM = 100
$MJ3CAR_HEALTH = 1000
$MJ3CAR_HEALTH2 = 4
display_onscreen_counter_with_string $MJ3CARDAM 1 'HEALTH'

:MJ3_1009
wait 0
change_blip_display $CARPICK display 3

:MJ3_1020
if and
  not is_char_dead $MJ3NPC1
  not is_char_dead $MJ3NPC2
  not is_char_dead $MJ3NPC3
  not is_char_dead $MJ3NPC4
  not is_char_dead $MJ3NPC5
  not is_car_dead $MJ3CAR
  $MJ3_TIME > 0
  $MJ3CARDAM > 0
goto_if_false @MJ3_2267
get_car_health $MJ3CAR_HEALTH3 = car $MJ3CAR
sub_int_var_from_int_var $MJ3CAR_HEALTH -= $MJ3CAR_HEALTH3
mult_int_var_by_int_var $MJ3CAR_HEALTH *= $MJ3CAR_HEALTH2
$MJ3CAR_HEALTH /= 10
sub_int_var_from_int_var $MJ3CARDAM -= $MJ3CAR_HEALTH
set_var_int_to_var_int $MJ3CAR_HEALTH = $MJ3CAR_HEALTH3
if 
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
goto_if_false @MJ3_1009
change_blip_display $CARPICK display 0
goto @MJ3_1155

:MJ3_1155
wait 10
if 
  $MJ31 == 0
goto_if_false @MJ3_1267
if and
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
  has_pickup_been_collected $TAXI_PICKUP1
goto_if_false @MJ3_1267
set_player_control $PLAYER_CHAR can_move 0
set_char_wait_state $MJ3NPC1 anim 19 wait_state_time 4000
turn_char_to_face_char $MJ3NPC1 look_at_actor $PLAYER_ACTOR
print_now 'MJ3_6' time 4000 1
wait 2000
$MJ31 = 1
$MJ3CAR_HEALTH2 += 1
set_player_control $PLAYER_CHAR can_move 1

:MJ3_1267
wait 10
if 
  $MJ32 == 0
goto_if_false @MJ3_1379
if and
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
  has_pickup_been_collected $TAXI_PICKUP2
goto_if_false @MJ3_1379
set_player_control $PLAYER_CHAR can_move 0
set_char_wait_state $MJ3NPC2 anim 19 wait_state_time 4000
turn_char_to_face_char $MJ3NPC2 look_at_actor $PLAYER_ACTOR
print_now 'MJ3_7' time 6000 1
wait 2000
$MJ32 = 1
$MJ3CAR_HEALTH2 += 2
set_player_control $PLAYER_CHAR can_move 1

:MJ3_1379
wait 10
if 
  $MJ33 == 0
goto_if_false @MJ3_1511
if and
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
  has_pickup_been_collected $TAXI_PICKUP3
goto_if_false @MJ3_1511
set_player_control $PLAYER_CHAR can_move 0
set_char_wait_state $MJ3NPC3 anim 19 wait_state_time 4000
turn_char_to_face_char $MJ3NPC3 look_at_actor $PLAYER_ACTOR
print_now 'MJ3_8' time 6000 1
wait 2000
$MJ33 = 1
$MJ3CAR_HEALTH2 += 2
set_player_control $PLAYER_CHAR can_move 1
wait 4000
print_now 'MJ3_9' time 4000 1

:MJ3_1511
wait 10
if 
  $MJ34 == 0
goto_if_false @MJ3_1616
if and
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
  has_pickup_been_collected $TAXI_PICKUP4
goto_if_false @MJ3_1616
set_player_control $PLAYER_CHAR can_move 0
set_char_wait_state $MJ3NPC4 anim 19 wait_state_time 4000
turn_char_to_face_char $MJ3NPC4 look_at_actor $PLAYER_ACTOR
print_now 'MJ3_10' time 6000 1
wait 2000
$MJ34 = 1
set_player_control $PLAYER_CHAR can_move 1

:MJ3_1616
wait 10
if 
  $MJ35 == 0
goto_if_false @MJ3_1728
if and
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
  has_pickup_been_collected $TAXI_PICKUP5
goto_if_false @MJ3_1728
set_player_control $PLAYER_CHAR can_move 0
set_char_wait_state $MJ3NPC5 anim 19 wait_state_time 4000
turn_char_to_face_char $MJ3NPC5 look_at_actor $PLAYER_ACTOR
print_now 'MJ3_11' time 6000 1
wait 2000
$MJ35 = 1
$MJ3CAR_HEALTH2 += 1
set_player_control $PLAYER_CHAR can_move 1

:MJ3_1728
wait 10
if and
  $MJ31 == 1
  $MJ32 == 1
  $MJ33 == 1
  $MJ34 == 1
  $MJ35 == 1
goto_if_false @MJ3_1020
add_pager_message 'MJ3_12' 140 10 2
add_blip_for_coord_old $TAXI_PICKUP6 = create_marker_at 943.125 -341.5 9.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP6 size 3
add_sphere $MJ3SPHERE6 = create_sphere 943.125 -341.5 9.8125 4.0

:MJ3_1837
wait 0
get_car_health $MJ3CAR_HEALTH3 = car $MJ3CAR
sub_int_var_from_int_var $MJ3CAR_HEALTH -= $MJ3CAR_HEALTH3
mult_int_var_by_int_var $MJ3CAR_HEALTH *= $MJ3CAR_HEALTH2
$MJ3CAR_HEALTH /= 10
sub_int_var_from_int_var $MJ3CARDAM -= $MJ3CAR_HEALTH
set_var_int_to_var_int $MJ3CAR_HEALTH = $MJ3CAR_HEALTH3
if and
  not is_car_dead $MJ3CAR
  $MJ3_TIME > 0
  $MJ3CARDAM > 0
goto_if_false @MJ3_2267
if and
  is_player_in_car $PLAYER_CHAR in_car $MJ3CAR
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 943.125 -341.5 9.8125 radius 4.0 4.0 3.0
goto_if_false @MJ3_1837
$MJ3FIN = 1
remove_blip $TAXI_PICKUP6
remove_sphere $MJ3SPHERE6
do_fade 0 1000
wait 1000
clear_onscreen_timer $MJ3_TIME
clear_onscreen_counter $MJ3CARDAM
switch_widescreen 1
warp_player_from_car_to_coord $PLAYER_CHAR at 932.8125 -382.25 14.875
set_fixed_camera_position 950.8125 -340.875 9.8125 rotation 0.0 0.0 0.0
point_camera_at_point 947.125 -345.8125 11.8125 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
do_fade 1 1000
clear_wanted_level $PLAYER_CHAR
print_now 'MJ3_13' time 6000 1
wait 6000
print_now 'MJ3_14' time 6000 1
wait 6000
print_now 'MJ3_15' time 5000 1
wait 5000
do_fade 0 1000
wait 1000
switch_widescreen 0
restore_camera_jumpcut 
set_player_coordinates $PLAYER_CHAR at 942.25 -345.9375 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 5000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 5000
$4436 = 1
wait 3000
start_new_script @SIXT 
register_mission_passed 'MJ3_2'
return 

:MJ3_2267
$MJ3FIN = 1
print_now 'MJ3_16' time 4000 1
print_big 'M_FAIL' 6000 ms 1
$4436 = 0
change_blip_display $JONI display 3
$MJ3FIN = 0
return 

:MJ3_2327
$ONMISSION = 0
wait 1000
remove_pickup $TAXI_PICKUP1
remove_pickup $TAXI_PICKUP2
remove_pickup $TAXI_PICKUP3
remove_pickup $TAXI_PICKUP4
remove_pickup $TAXI_PICKUP5
remove_blip $TAXI_PICKUP6
remove_sphere $MJ3SPHERE6
remove_blip $TAXI_PICKUP6
remove_blip $CARPICK
remove_blip $MJ3_BLIP1
remove_blip $MJ3_BLIP2
remove_blip $MJ3_BLIP3
remove_blip $MJ3_BLIP4
remove_blip $MJ3_BLIP5
remove_sphere $MJ3SPHERE1
remove_sphere $MJ3SPHERE2
remove_sphere $MJ3SPHERE3
remove_sphere $MJ3SPHERE4
remove_sphere $MJ3SPHERE5
remove_char_elegantly $MJ3NPC1
remove_char_elegantly $MJ3NPC2
remove_char_elegantly $MJ3NPC3
remove_char_elegantly $MJ3NPC4
remove_char_elegantly $MJ3NPC5
clear_onscreen_timer $MJ3_TIME
clear_onscreen_counter $MJ3CARDAM
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 13
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 53
mark_model_as_no_longer_needed 149
load_splash_screen 'MAINSC1'
mission_has_finished 
$MJ3CAR = -1
return 
terminate_this_script 

//-------------Mission 15---------------
// Originally: The Crook

:MJ4
gosub @MJ4_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ4_27
gosub @MJ4_2780

:MJ4_27
gosub @MJ4_2811
terminate_this_script 

:MJ4_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ4'
request_model 9
request_model 39
request_model 40
request_model 91
request_model 99
load_special_character 1 'CHUNKY'
load_special_character 2 'KEEPER'
load_special_character 3 'CURLY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ4_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 -100.0
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 -100.0
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
create_car $MJ4CAR = create_car 91 at 953.0 -352.6875 10.4375
set_car_heading $MJ4CAR z_angle_to 0.0
set_car_health $MJ4CAR health_to 500
create_char $MJ4NPC1 = create_actor 21 28 at 844.5625 -401.8125 14.9375
create_char $MJ4NPC2 = create_actor 21 28 at 844.625 -397.3125 14.9375
create_char $MJ4NPC3 = create_actor 21 9 at 844.5625 -400.1875 14.9375
create_char $MJ4NPC4 = create_actor 21 9 at 841.5625 -403.0 14.9375
create_char $MJ4NPC5 = create_actor 21 39 at 842.375 -400.1875 14.9375
create_char $MJ4NPC6 = create_actor 21 39 at 841.5 -404.9375 14.9375
create_char $MJ4NPC7 = create_actor 21 40 at 841.25 -400.125 14.9375
create_car $MJ4NPC8 = create_car 99 at 838.0 -401.5625 14.8125
lock_car_doors $MJ4NPC8 door_status_to 3
create_char $MJ4NPC9 = create_actor 21 27 at 1279.188 -104.5625 15.0
set_char_proofs $MJ4NPC9 immunities 1 1 1 1 1
set_char_heading $MJ4NPC1 z_angle_to 90.0
set_char_heading $MJ4NPC2 z_angle_to 90.0
set_char_heading $MJ4NPC3 z_angle_to 270.0
set_char_heading $MJ4NPC4 z_angle_to 360.0
set_char_heading $MJ4NPC5 z_angle_to 270.0
set_char_heading $MJ4NPC6 z_angle_to 360.0
set_char_heading $MJ4NPC7 z_angle_to 270.0
set_car_heading $MJ4NPC8 z_angle_to 360.0
set_char_heading $MJ4NPC9 z_angle_to 298.625
give_weapon_to_char $MJ4NPC1 weapon 2 ammo 250
give_weapon_to_char $MJ4NPC2 weapon 2 ammo 250
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ4_601
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ4_629
goto @MJ4_975

:MJ4_629
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ4_601
clear_help 
load_mission_audio 'DOOR_6'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ4_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ4_701
wait 0
if 
  TIMERA >= 6020
goto_if_false @MJ4_701
print_now 'MJ4_4' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ4_749
wait 0
if 
  TIMERA >= 12150
goto_if_false @MJ4_749
print_now 'MJ4_5' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ4_797
wait 0
if 
  TIMERA >= 19070
goto_if_false @MJ4_797
print_now 'MJ4_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MJ4_845
wait 0
if 
  TIMERA >= 22050
goto_if_false @MJ4_845
print_now 'MJ4_7' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ4_893
wait 0
if 
  TIMERA >= 32020
goto_if_false @MJ4_893
print_now 'MJ4_8' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ4_941
wait 0
if 
  TIMERA >= 43260
goto_if_false @MJ4_941
clear_prints 
wait 1000
clear_mission_audio 

:MJ4_975
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $JONI_CHAR
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_car $TAXI_PICKUP = create_marker_above_car $MJ4CAR
change_blip_colour $TAXI_PICKUP color_to 1
$MJ4CARDAM = 100
display_onscreen_counter_with_string $MJ4CARDAM 1 'DAM'
get_car_health $MJ4CAR_HEALTH1 = car $MJ4CAR
$MJ4CAR_HEALTH1 /= 10
set_var_int_to_var_int $MJ4CARDAM = $MJ4CAR_HEALTH1

:MJ4_1105
wait 0
get_car_health $MJ4CAR_HEALTH1 = car $MJ4CAR
$MJ4CAR_HEALTH1 /= 10
set_var_int_to_var_int $MJ4CARDAM = $MJ4CAR_HEALTH1
if 
  not is_car_dead $MJ4CAR
goto_if_false @MJ4_2780
if 
  not is_char_dead $MJ4NPC9
goto_if_false @MJ4_2348
if and
  not is_char_dead $MJ4NPC1
  not is_char_dead $MJ4NPC2
  not is_char_dead $MJ4NPC3
  not is_char_dead $MJ4NPC4
  not is_char_dead $MJ4NPC5
  not is_char_dead $MJ4NPC6
  not is_char_dead $MJ4NPC7
  not is_car_dead $MJ4NPC8
goto_if_false @MJ4_2319
if 
  is_player_in_car $PLAYER_CHAR in_car $MJ4CAR
goto_if_false @MJ4_1105
change_blip_display $BOMB display 3
add_sphere $MJ4SPHERE = create_sphere 1282.063 -103.5625 14.75 4.0

:MJ4_1258
change_blip_display $TAXI_PICKUP display 3

:MJ4_1265
wait 0
get_car_health $MJ4CAR_HEALTH1 = car $MJ4CAR
$MJ4CAR_HEALTH1 /= 10
set_var_int_to_var_int $MJ4CARDAM = $MJ4CAR_HEALTH1
if 
  not is_car_dead $MJ4CAR
goto_if_false @MJ4_2780
if 
  not is_char_dead $MJ4NPC9
goto_if_false @MJ4_2348
if and
  not is_char_dead $MJ4NPC1
  not is_char_dead $MJ4NPC2
  not is_char_dead $MJ4NPC3
  not is_char_dead $MJ4NPC4
  not is_char_dead $MJ4NPC5
  not is_char_dead $MJ4NPC6
  not is_char_dead $MJ4NPC7
  not is_car_dead $MJ4NPC8
goto_if_false @MJ4_2319
if 
  is_player_in_car $PLAYER_CHAR in_car $MJ4CAR
goto_if_false @MJ4_1258
change_blip_display $TAXI_PICKUP display 0
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 1282.063 -103.5625 14.75 radius 6.0 6.0 6.0
goto_if_false @MJ4_1265
set_char_wait_state $MJ4NPC9 anim 19 wait_state_time 3000
turn_char_to_face_char $MJ4NPC9 look_at_actor $PLAYER_ACTOR
get_game_timer $GAME_TIME1
print_now 'MJ4_9' time 6000 1
$MJ4SAY_10 = 0
$MJ4SAY_11 = 0
$MJ4SAY_12 = 0

:MJ4_1496
wait 0
get_car_health $MJ4CAR_HEALTH1 = car $MJ4CAR
$MJ4CAR_HEALTH1 /= 10
set_var_int_to_var_int $MJ4CARDAM = $MJ4CAR_HEALTH1
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if and
  $MJ4SAY_10 == 0
  $GAME_TIME2 > 6000
goto_if_false @MJ4_1594
set_char_wait_state $MJ4NPC9 anim 19 wait_state_time 3000
print_now 'MJ4_9A' time 6000 1
$MJ4SAY_10 = 1

:MJ4_1594
if and
  $MJ4SAY_11 == 0
  $GAME_TIME2 > 12000
goto_if_false @MJ4_1642
print_now 'MJ4_10' time 6000 1
$MJ4SAY_11 = 1

:MJ4_1642
if and
  $MJ4SAY_12 == 0
  $GAME_TIME2 > 18000
goto_if_false @MJ4_1690
print_now 'MJ4_11' time 6000 1
$MJ4SAY_12 = 1

:MJ4_1690
if 
  not is_car_dead $MJ4CAR
goto_if_false @MJ4_2780
if 
  is_car_armed_with_bomb $MJ4CAR bomb_status == 3
goto_if_false @MJ4_1496
set_player_control $PLAYER_CHAR can_move 1
remove_sphere $MJ4SPHERE
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 843.4375 -387.8125 14.3125 color 5 display 2
change_blip_scale $TAXI_PICKUP2 size 3
add_sphere $MJ4SPHERE2 = create_sphere 843.4375 -387.8125 14.3125 4.0
get_car_health $MJ4CAR_HEALTHED = car $MJ4CAR
$MJ4CAR_HEALTHED /= 10
set_var_int_to_var_int $MJ4CAR_HEALTH2 = $MJ4CAR_HEALTHED

:MJ4_1801
change_blip_display $TAXI_PICKUP display 3

:MJ4_1808
wait 0
get_car_health $MJ4CAR_HEALTH1 = car $MJ4CAR
$MJ4CAR_HEALTH1 /= 10
set_var_int_to_var_int $MJ4CARDAM = $MJ4CAR_HEALTH1
set_var_int_to_var_int $MJ4CAR_HEALTH2 = $MJ4CAR_HEALTHED
sub_int_var_from_int_var $MJ4CAR_HEALTH2 -= $MJ4CAR_HEALTH1
if 
  not $MJ4CAR_HEALTH2 >= 5
goto_if_false @MJ4_2687
if 
  not is_car_dead $MJ4CAR
goto_if_false @MJ4_2780
if and
  not is_char_dead $MJ4NPC1
  not is_char_dead $MJ4NPC2
  not is_char_dead $MJ4NPC3
  not is_char_dead $MJ4NPC4
  not is_char_dead $MJ4NPC5
  not is_char_dead $MJ4NPC6
  not is_char_dead $MJ4NPC7
  not is_car_dead $MJ4NPC8
goto_if_false @MJ4_2319
if 
  is_player_in_car $PLAYER_CHAR in_car $MJ4CAR
goto_if_false @MJ4_1801
change_blip_display $TAXI_PICKUP display 0
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 843.4375 -387.8125 14.3125 radius 4.0 4.0 4.0
goto_if_false @MJ4_1808
add_pager_message 'MJ4_15' 140 10 2
remove_blip $TAXI_PICKUP2
remove_sphere $MJ4SPHERE2

:MJ4_2025
wait 0
if 
  is_car_armed_with_bomb $MJ4CAR bomb_status == 3
goto_if_false @MJ4_2141
if 
  not locate_car_3d $MJ4CAR 0 843.4375 -387.8125 14.3125 radius 4.0 4.0 3.0
goto_if_false @MJ4_2119
if 
  not locate_car_3d $MJ4CAR 1 843.4375 -387.8125 14.3125 radius 4.0 4.0 3.0
goto_if_false @MJ4_2119

:MJ4_2119
print_now 'MJ4_15A' time 1000 1
goto @MJ4_2025

:MJ4_2141
wait 0
if 
  is_car_armed_with_bomb $MJ4CAR bomb_status == 0
goto_if_false @MJ4_2141
if 
  locate_car_2d $MJ4CAR 0 843.4375 -387.8125 14.3125 4.0
goto_if_false @MJ4_2780
clear_onscreen_counter $MJ4CARDAM
wait 1500
add_explosion 2 at 843.4375 -402.5 16.6875
shake_cam 300
wait 1000
add_explosion 2 at 846.1875 -382.6875 14.6875
shake_cam 300
wait 1000
add_explosion 2 at 845.3125 -395.75 30.1875
shake_cam 300
set_char_obj_kill_player_any_means $MJ4NPC1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MJ4NPC2 kill_player $PLAYER_CHAR
wait 2000
alter_wanted_level $PLAYER_CHAR wanted_level_to 2
add_pager_message 'MJ4_13' 140 10 2
goto @MJ4_2370

:MJ4_2319
alter_wanted_level $PLAYER_CHAR wanted_level_to 2
print_now 'MJ4_16' time 4000 1
goto @MJ4_2780

:MJ4_2348
print_now 'MJ4_17' time 4000 1
goto @MJ4_2780

:MJ4_2370
wait 10
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MJ4_2370
add_blip_for_coord_old $TAXI_PICKUP3 = create_marker_at 943.625 -341.5 9.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP3 size 3
add_sphere $MJ4SPHERE3 = create_sphere 942.8125 -347.0 9.9375 2.5

:MJ4_2434
wait 10
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MJ4_2665
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.8125 -347.0 9.9375 radius 2.0 2.0 2.0
goto_if_false @MJ4_2434
do_fade 0 1000
wait 1000
remove_blip $TAXI_PICKUP3
remove_sphere $MJ4SPHERE3
switch_widescreen 1
set_fixed_camera_position 950.8125 -340.875 9.8125 rotation 0.0 0.0 0.0
point_camera_at_point 947.125 -345.8125 11.8125 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
set_player_coordinates $PLAYER_CHAR at 932.8125 -382.25 14.875
do_fade 1 1000
clear_wanted_level $PLAYER_CHAR
print_now 'MJ4_14' time 6000 1
wait 6000
do_fade 0 1000
wait 1000
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 942.25 -345.9375 9.9375
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
goto @MJ4_2699

:MJ4_2665
print_now 'WANTED1' time 1000 1
goto @MJ4_2434

:MJ4_2687
explode_car $MJ4CAR
goto @MJ4_2780

:MJ4_2699
$4437 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 6000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 6000
register_mission_passed 'MJ4_2'
start_new_script @SEVENT 
start_new_script @MAPMARK 
return 

:MJ4_2780
print_big 'M_FAIL' 6000 ms 1
$4437 = 0
change_blip_display $JONI display 3
return 

:MJ4_2811
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
remove_sphere $MJ4SPHERE1
remove_sphere $MJ4SPHERE2
remove_sphere $MJ4SPHERE3
clear_onscreen_counter $MJ4CARDAM
remove_char_elegantly $MJ4NPC1
remove_char_elegantly $MJ4NPC2
remove_char_elegantly $MJ4NPC3
remove_char_elegantly $MJ4NPC4
remove_char_elegantly $MJ4NPC5
remove_char_elegantly $MJ4NPC6
remove_char_elegantly $MJ4NPC7
$MJ4NPC8 = -1
remove_char_elegantly $MJ4NPC9
unload_special_character 1
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 9
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 39
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 91
mark_model_as_no_longer_needed 99
load_splash_screen 'MAINSC1'
mission_has_finished 
$MJ4CAR = -1
return 

//-------------Mission 16---------------
// Originally: The Thieves

:MJ5
gosub @MJ5_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ5_27
gosub @MJ5_3266

:MJ5_27
gosub @MJ5_3304
terminate_this_script 

:MJ5_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ5'
request_model 10
request_model 11
request_model 57
request_model 58
request_model 156
load_special_character 1 'CHUNKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ5_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 8.9375
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 8.9375
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ5_272
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ5_300
goto @MJ5_688

:MJ5_300
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ5_272
clear_help 
load_mission_audio 'EL3_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ5_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ5_372
wait 0
if 
  TIMERA >= 7260
goto_if_false @MJ5_372
print_now 'MJ5_4' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ5_420
wait 0
if 
  TIMERA >= 15110
goto_if_false @MJ5_420
print_now 'MJ5_5' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ5_468
wait 0
if 
  TIMERA >= 21560
goto_if_false @MJ5_468
print_now 'MJ5_6' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ5_516
wait 0
if 
  TIMERA >= 29330
goto_if_false @MJ5_516
print_now 'MJ5_7' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MJ5_564
wait 0
if 
  TIMERA >= 33220
goto_if_false @MJ5_564
print_now 'MJ5_8' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ5_614
wait 0
if 
  TIMERA >= 38840
goto_if_false @MJ5_614
print_now 'MJ5_8A' time 10000 1

:MJ5_654
wait 0
if 
  TIMERA >= 46110
goto_if_false @MJ5_654
clear_prints 
wait 1000
clear_mission_audio 

:MJ5_688
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $JONI_CHAR
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
create_char $MJ5KILL1 = create_actor 21 57 at 1583.875 -838.8125 17.125
create_char $MJ5KILL2 = create_actor 21 58 at 1600.625 -850.625 14.75
create_char $MJ5KILL3 = create_actor 21 57 at 1593.875 -1009.0 10.25
create_char $MJ5KILL4 = create_actor 21 58 at 1591.25 -891.125 10.25
create_char $MJ5KILL5 = create_actor 21 57 at 1596.375 -914.4375 5.625
create_char $MJ5KILL6 = create_actor 21 58 at 1600.688 -875.375 5.625
create_char $MJ5KILL7 = create_actor 21 57 at 1599.063 -934.3125 1.75
create_char $MJ5KILL8 = create_actor 21 58 at 1600.938 -847.4375 1.75
give_weapon_to_char $MJ5KILL1 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL2 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL3 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL4 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL5 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL6 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL7 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL8 weapon 4 ammo 999
set_char_heading $MJ5KILL3 z_angle_to 270.0
set_char_heading $MJ5KILL4 z_angle_to 270.0
set_char_heading $MJ5KILL5 z_angle_to 90.0
set_char_heading $MJ5KILL6 z_angle_to 270.0
set_char_heading $MJ5KILL7 z_angle_to 180.0
set_char_heading $MJ5KILL8 z_angle_to 180.0
$KILLWALIK = 1
$KILLWALIK2 = 1
$KILLLOOK = 0
$MJ5WHERE = 0
generate_random_int_in_range $MJ5WHERE = random_int 1 5
if 
  $MJ5WHERE == 1
goto_if_false @MJ5_1111
create_pickup $MJ5PICKUP = create_pickup 175 type 3 at 1612.625 -912.375 19.375
goto @MJ5_1287

:MJ5_1111
if 
  $MJ5WHERE == 2
goto_if_false @MJ5_1155
create_pickup $MJ5PICKUP = create_pickup 175 type 3 at 1596.5 -1020.875 14.75
goto @MJ5_1287

:MJ5_1155
if 
  $MJ5WHERE == 3
goto_if_false @MJ5_1199
create_pickup $MJ5PICKUP = create_pickup 175 type 3 at 1592.5 -1018.938 10.25
goto @MJ5_1287

:MJ5_1199
if 
  $MJ5WHERE == 4
goto_if_false @MJ5_1243
create_pickup $MJ5PICKUP = create_pickup 175 type 3 at 1599.938 -903.5625 5.625
goto @MJ5_1287

:MJ5_1243
if 
  $MJ5WHERE == 5
goto_if_false @MJ5_1268
goto @MJ5_1268

:MJ5_1268
create_pickup $MJ5PICKUP = create_pickup 175 type 3 at 1590.0 -907.5 1.75

:MJ5_1287
add_blip_for_pickup $TAXI_PICKUP = create_marker_above_pickup $MJ5PICKUP

:MJ5_1295
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1533.0 -874.4375 11.8125 radius 150.0 150.0 100.0
goto_if_false @MJ5_1295
print_now 'MJ5_13' time 4000 1

:MJ5_1350
wait 10
if 
  $KILLWALIK == 1
goto_if_false @MJ5_1420
set_char_obj_goto_coord_on_foot $MJ5KILL1 walk_to 1583.875 -838.8125
if 
  locate_char_any_means_2d $MJ5KILL1 0 1583.875 -838.8125 radius 0.5 0.5
goto_if_false @MJ5_1420
$KILLWALIK = 2

:MJ5_1420
if 
  $KILLWALIK == 2
goto_if_false @MJ5_1486
set_char_obj_goto_coord_on_foot $MJ5KILL1 walk_to 1583.875 -901.125
if 
  locate_char_any_means_2d $MJ5KILL1 0 1583.875 -901.125 radius 0.5 0.5
goto_if_false @MJ5_1486
$KILLWALIK = 1

:MJ5_1486
if 
  $KILLWALIK2 == 1
goto_if_false @MJ5_1552
set_char_obj_goto_coord_on_foot $MJ5KILL2 walk_to 1600.625 -850.625
if 
  locate_char_any_means_2d $MJ5KILL2 0 1600.625 -850.625 radius 0.5 0.5
goto_if_false @MJ5_1552
$KILLWALIK2 = 2

:MJ5_1552
if 
  $KILLWALIK2 == 2
goto_if_false @MJ5_1618
set_char_obj_goto_coord_on_foot $MJ5KILL2 walk_to 1600.625 -1002.25
if 
  locate_char_any_means_2d $MJ5KILL2 0 1600.625 -1002.25 radius 0.5 0.5
goto_if_false @MJ5_1618
$KILLWALIK2 = 1

:MJ5_1618
wait 0
if or
  is_player_shooting_in_area $PLAYER_CHAR shooting_in_area 1482.125 -832.5 1620.375 -964.25 0
  has_char_spotted_player $MJ5KILL1 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MJ5KILL2 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MJ5KILL3 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MJ5KILL4 spotted_player $PLAYER_CHAR
goto_if_false @MJ5_1698
$KILLLOOK = 1
goto @MJ5_1778

:MJ5_1698
if or
  has_char_spotted_player $MJ5KILL5 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MJ5KILL6 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MJ5KILL7 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MJ5KILL8 spotted_player $PLAYER_CHAR
goto_if_false @MJ5_1755
$KILLLOOK = 1
goto @MJ5_1778

:MJ5_1755
if 
  has_pickup_been_collected $MJ5PICKUP
goto_if_false @MJ5_1350
goto @MJ5_1778

:MJ5_1778
set_char_stay_in_same_place $MJ5KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL8 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MJ5KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL8 kill_player $PLAYER_CHAR
change_blip_colour $MJ5PICK1 color_to 0
change_blip_colour $MJ5PICK2 color_to 0
change_blip_colour $MJ5PICK3 color_to 0
change_blip_colour $MJ5PICK4 color_to 0
change_blip_colour $MJ5PICK5 color_to 0
change_blip_colour $MJ5PICK6 color_to 0
change_blip_colour $MJ5PICK7 color_to 0
change_blip_colour $MJ5PICK8 color_to 0
if 
  $KILLLOOK == 1
goto_if_false @MJ5_2890
goto @MJ5_1979

:MJ5_1979
wait 0
if 
  has_pickup_been_collected $MJ5PICKUP
goto_if_false @MJ5_1979
print_now 'MJ5_9' time 6000 1
wait 6000
create_char $MJ5KILL1 = create_actor 21 57 at 1604.688 -932.8125 30.4375
create_char $MJ5KILL2 = create_actor 21 58 at 1586.438 -964.5625 22.75
create_char $MJ5KILL3 = create_actor 21 57 at 1598.25 -920.375 19.375
create_char $MJ5KILL4 = create_actor 21 58 at 1605.063 -858.8125 33.125
create_char $MJ5KILL5 = create_actor 21 11 at 1536.375 -900.0 17.0625
create_char $MJ5KILL6 = create_actor 21 11 at 1556.188 -872.6875 11.0
create_char $MJ5KILL7 = create_actor 21 11 at 1552.0 -851.6875 11.8125
create_char $MJ5KILL8 = create_actor 21 11 at 1544.125 -868.9375 11.8125
create_char $MJ5KILL9 = create_actor 21 11 at 1521.0 -835.875 25.125
create_char $MJ5KILL10 = create_actor 21 11 at 1589.188 -964.75 35.9375
give_weapon_to_char $MJ5KILL1 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL2 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL3 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL4 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL5 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL6 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL7 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL8 weapon 5 ammo 999
give_weapon_to_char $MJ5KILL9 weapon 4 ammo 999
give_weapon_to_char $MJ5KILL10 weapon 5 ammo 999
set_char_stay_in_same_place $MJ5KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ5KILL10 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MJ5KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ5KILL10 kill_player $PLAYER_CHAR
add_blip_for_char $MJ5PICK5 = create_marker_above_actor $MJ5KILL5
add_blip_for_char $MJ5PICK6 = create_marker_above_actor $MJ5KILL6
add_blip_for_char $MJ5PICK7 = create_marker_above_actor $MJ5KILL7
add_blip_for_char $MJ5PICK8 = create_marker_above_actor $MJ5KILL8
add_blip_for_char $MJ5PICK9 = create_marker_above_actor $MJ5KILL9
add_blip_for_char $MJ5PICK10 = create_marker_above_actor $MJ5KILL10
change_blip_colour $MJ5PICK5 color_to 0
change_blip_colour $MJ5PICK6 color_to 0
change_blip_colour $MJ5PICK7 color_to 0
change_blip_colour $MJ5PICK8 color_to 0
change_blip_colour $MJ5PICK9 color_to 0
change_blip_colour $MJ5PICK10 color_to 0
create_car $MJ5CAR1 = create_car 156 at 1555.063 -857.0625 11.8125
create_car $MJ5CAR2 = create_car 156 at 1554.813 -873.8125 11.8125
set_car_heading $MJ5CAR1 z_angle_to 330.0
set_car_heading $MJ5CAR2 z_angle_to -330.0
print_now 'MJ5_10' time 5000 1
wait 3000
switch_widescreen 1
point_camera_at_char $MJ5KILL8 mode 11 switchstyle 2
wait 2000
restore_camera_jumpcut 
switch_widescreen 0

:MJ5_2633
wait 10
get_ammo_in_player_weapon $ROCKAMMO = player $PLAYER_CHAR weapon 8
if 
  $ROCKAMMO > 0
goto_if_false @MJ5_3266
if 
  is_char_dead $MJ5KILL5
goto_if_false @MJ5_2688
change_blip_display $MJ5PICK5 display 0

:MJ5_2688
if 
  is_char_dead $MJ5KILL6
goto_if_false @MJ5_2711
change_blip_display $MJ5PICK6 display 0

:MJ5_2711
if 
  is_char_dead $MJ5KILL7
goto_if_false @MJ5_2734
change_blip_display $MJ5PICK7 display 0

:MJ5_2734
if 
  is_char_dead $MJ5KILL8
goto_if_false @MJ5_2757
change_blip_display $MJ5PICK8 display 0

:MJ5_2757
if 
  is_char_dead $MJ5KILL9
goto_if_false @MJ5_2780
change_blip_display $MJ5PICK9 display 0

:MJ5_2780
if 
  is_char_dead $MJ5KILL10
goto_if_false @MJ5_2803
change_blip_display $MJ5PICK10 display 0

:MJ5_2803
wait 10
if and
  is_char_dead $MJ5KILL5
  is_char_dead $MJ5KILL6
  is_char_dead $MJ5KILL7
  is_char_dead $MJ5KILL8
  is_char_dead $MJ5KILL9
  is_char_dead $MJ5KILL10
goto_if_false @MJ5_2633
change_blip_display $MJ5PICK5 display 0
change_blip_display $MJ5PICK6 display 0
change_blip_display $MJ5PICK7 display 0
change_blip_display $MJ5PICK8 display 0
change_blip_display $MJ5PICK9 display 0
change_blip_display $MJ5PICK10 display 0

:MJ5_2890
add_pager_message 'MJ5_11' 140 10 2
add_blip_for_coord_old $TAXI_PICKUP3 = create_marker_at 943.625 -341.5 9.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP3 size 3
add_sphere $MJ5SPHERE3 = create_sphere 942.8125 -347.0 9.9375 2.5
goto @MJ5_2956

:MJ5_2956
wait 0
get_ammo_in_player_weapon $ROCKAMMO = player $PLAYER_CHAR weapon 8
if 
  $ROCKAMMO > 0
goto_if_false @MJ5_3266
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.8125 -347.0 9.9375 radius 2.0 2.0 2.0
goto_if_false @MJ5_2956
do_fade 0 1000
wait 1000
remove_blip $TAXI_PICKUP3
remove_sphere $MJ5SPHERE3
set_fixed_camera_position 950.8125 -340.875 9.8125 rotation 0.0 0.0 0.0
point_camera_at_point 947.125 -345.8125 11.8125 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
set_player_coordinates $PLAYER_CHAR at 932.8125 -382.25 14.875
switch_widescreen 1
do_fade 1 1000
wait 1000
clear_wanted_level $PLAYER_CHAR
print_now 'MJ5_12' time 4000 1
wait 4000
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 942.25 -345.9375 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
switch_widescreen 0
$4438 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 5000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 5000
start_new_script @EIGHTT 
register_mission_passed 'MJ5_2'
return 

:MJ5_3266
print_big 'M_FAIL' 6000 ms 1
$MJ5KILL = 0
$4438 = 0
change_blip_display $JONI display 3
return 

:MJ5_3304
$ONMISSION = 0
remove_pickup $MJ5PICKUP
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP3
remove_blip $MJ5PICK5
remove_blip $MJ5PICK6
remove_blip $MJ5PICK7
remove_blip $MJ5PICK8
remove_blip $MJ5PICK9
remove_blip $MJ5PICK10
remove_sphere $MJ5SPHERE3
remove_char_elegantly $MJ5KILL1
remove_char_elegantly $MJ5KILL2
remove_char_elegantly $MJ5KILL3
remove_char_elegantly $MJ5KILL4
remove_char_elegantly $MJ5KILL5
remove_char_elegantly $MJ5KILL6
remove_char_elegantly $MJ5KILL7
remove_char_elegantly $MJ5KILL8
remove_char_elegantly $MJ5KILL9
remove_char_elegantly $MJ5KILL10
unload_special_character 1
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 57
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 156
load_splash_screen 'MAINSC1'
mission_has_finished 
$MJ5CAR = -1
return 

//-------------Mission 17---------------
// Originally: The Wife

:MJ6
gosub @MJ6_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ6_27
gosub @MJ6_2051

:MJ6_27
gosub @MJ6_2082
terminate_this_script 

:MJ6_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ6'
request_model 59
request_model 99
load_special_character 1 'CHUNKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ6_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 -100.0
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 -100.0
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ6_259
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ6_287
goto @MJ6_583

:MJ6_287
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ6_259
clear_help 
load_mission_audio 'H5_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ6_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ6_359
wait 0
if 
  TIMERA >= 8000
goto_if_false @MJ6_359
print_now 'MJ6_4' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ6_407
wait 0
if 
  TIMERA >= 14120
goto_if_false @MJ6_407
print_now 'MJ6_5' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ6_455
wait 0
if 
  TIMERA >= 24190
goto_if_false @MJ6_455
print_now 'MJ6_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MJ6_503
wait 0
if 
  TIMERA >= 26660
goto_if_false @MJ6_503
print_now 'MJ6_7' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ6_551
wait 0
if 
  TIMERA >= 32250
goto_if_false @MJ6_551
clear_prints 
wait 1000
clear_mission_audio 

:MJ6_583
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $JONI_CHAR
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
create_car $MJ6CAR = create_car 99 at 1175.313 -421.375 23.8125
set_car_proofs $MJ6CAR immunities 1 0 0 0 0
set_car_heading $MJ6CAR z_angle_to 270.0
set_car_cruise_speed $MJ6CAR max_speed_to 15.0
set_car_driving_style $MJ6CAR traffic_behavior_to 1
create_char_inside_car $MJ6NPC = create_actor 21 59 in_car $MJ6CAR
add_blip_for_char $MJ6PICK = create_marker_above_actor $MJ6NPC
set_char_only_damaged_by_player $MJ6NPC immune_to_nonplayer 1
change_car_lock 2 = car $MJ6CAR
$MJ6CARDAM = 100
display_onscreen_counter_with_string $MJ6CARDAM 1 'DAM'
print_now 'MJ6_20' time 4000 1

:MJ6_778
wait 0
get_car_health $MJ6CAR_HEALTH = car $MJ6CAR
$MJ6CAR_HEALTH /= 10
set_var_int_to_var_int $MJ6CARDAM = $MJ6CAR_HEALTH
if 
  not is_char_dead $MJ6NPC
goto_if_false @MJ6_2051
if or
  not $MJ6CARDAM >= 80
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MJ6NPC radius 10.0 10.0 10.0
goto_if_false @MJ6_778
$MJ6_TIME = 120000
display_onscreen_timer $MJ6_TIME
set_car_driving_style $MJ6CAR traffic_behavior_to 2
set_car_cruise_speed $MJ6CAR max_speed_to 20.0
print_now 'MJ6_8' time 6000 1

:MJ6_903
wait 0
get_car_health $MJ6CAR_HEALTH = car $MJ6CAR
$MJ6CAR_HEALTH /= 10
set_var_int_to_var_int $MJ6CARDAM = $MJ6CAR_HEALTH
if and
  $MJ6_TIME > 0
  not is_char_dead $MJ6NPC
goto_if_false @MJ6_2051
if 
  not $MJ6CARDAM >= 70
goto_if_false @MJ6_903
alter_wanted_level $PLAYER_CHAR wanted_level_to 3

:MJ6_978
wait 0
get_car_health $MJ6CAR_HEALTH = car $MJ6CAR
$MJ6CAR_HEALTH /= 10
set_var_int_to_var_int $MJ6CARDAM = $MJ6CAR_HEALTH
if and
  $MJ6_TIME > 0
  not is_char_dead $MJ6NPC
goto_if_false @MJ6_2051
if 
  not $MJ6CARDAM >= 50
goto_if_false @MJ6_978
goto @MJ6_1053

:MJ6_1053
clear_onscreen_timer $MJ6_TIME
clear_onscreen_counter $MJ6CARDAM
change_car_lock 1 = car $MJ6CAR
set_char_obj_leave_car $MJ6NPC leave_car $MJ6CAR
set_char_obj_flee_player_on_foot_always $MJ6NPC avoid_player $PLAYER_CHAR
$MJ6NPCDAM = 100
display_onscreen_counter_with_string $MJ6NPCDAM 1 'SOLH'
add_pager_message 'MJ6_12' 140 10 2
print_now 'MJ6_9' time 3000 1
get_game_timer $GAME_TIME1
$MJ6SAY_10 = 0
$MJ6SAY_11 = 0

:MJ6_1159
wait 10
if and
  not is_char_dead $MJ6NPC
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MJ6NPC radius 100.0 100.0 100.0
goto_if_false @MJ6_2051
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if and
  $MJ6SAY_10 == 0
  $GAME_TIME2 > 3000
goto_if_false @MJ6_1259
print_now 'MJ6_10' time 5000 1
$MJ6SAY_10 = 1

:MJ6_1259
if and
  $MJ6SAY_11 == 0
  $GAME_TIME2 > 8000
goto_if_false @MJ6_1307
print_now 'MJ6_11' time 4000 1
$MJ6SAY_11 = 1

:MJ6_1307
if 
  $MJ6NPCDAM > 40
goto_if_false @MJ6_1348
get_char_health $MJ6NPC_HEALTH = actor $MJ6NPC
set_var_int_to_var_int $MJ6NPCDAM = $MJ6NPC_HEALTH
goto @MJ6_1159

:MJ6_1348
clear_char_last_weapon_damage $MJ6NPC
clear_onscreen_counter $MJ6NPCDAM
remove_blip $MJ6PICK
get_char_coordinates $MJ6NPC position_to $MJ6_X $MJ6_Y $MJ6_Z
do_fade 0 500
wait 500
delete_char $MJ6NPC
create_char $MJ6NPC = create_actor 21 59 at $MJ6_X $MJ6_Y $MJ6_Z
wait 500
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MJ6_1453
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
wait 100
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR

:MJ6_1453
turn_char_to_face_char $MJ6NPC look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MJ6NPC
point_camera_at_char $MJ6NPC mode 11 switchstyle 2
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 1 500
wait 500
print_now 'MJ6_13' time 3000 1
wait 3000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MJ6_14' time 4000 1
wait 4000
point_camera_at_char $MJ6NPC mode 11 switchstyle 2
print_now 'MJ6_16' time 3000 1
wait 3000
do_fade 0 500
wait 500
delete_char $MJ6NPC
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 500
wait 500
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 943.625 -341.5 9.8125 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MJ6SPHERE = create_sphere 942.8125 -347.0 9.9375 2.5
add_pager_message 'MJ6_17' 140 10 2

:MJ6_1680
wait 10
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.8125 -347.0 9.9375 radius 2.0 2.0 2.0
goto_if_false @MJ6_1680
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MJ6_1755
remove_blip $TAXI_PICKUP
remove_sphere $MJ6SPHERE
goto @MJ6_1777

:MJ6_1755
print_now 'MJ6_15' time 3000 1
goto @MJ6_1680

:MJ6_1777
do_fade 0 1000
wait 1000
switch_widescreen 1
set_fixed_camera_position 950.8125 -340.875 9.8125 rotation 0.0 0.0 0.0
point_camera_at_point 947.125 -345.8125 11.8125 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
set_player_coordinates $PLAYER_CHAR at 932.8125 -382.25 14.875
do_fade 1 1000
clear_wanted_level $PLAYER_CHAR
print_now 'MJ6_18' time 4000 1
wait 4000
print_now 'MJ6_19' time 6000 1
wait 6000
do_fade 0 1000
wait 1000
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 942.25 -345.9375 9.9375
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
goto @MJ6_1960

:MJ6_1960
$4439 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MJ6_2'
swap_nearest_building_model 788.75 -927.8125 75.3125 radius 20.0 from #BASEFLOOR to #LOD_LAND014
start_new_script @NINT 
return 

:MJ6_2051
print_big 'M_FAIL' 6000 ms 1
$4439 = 0
change_blip_display $JONI display 3
return 

:MJ6_2082
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_sphere $MJ6SPHERE
remove_blip $MJ6PICK
clear_onscreen_timer $MJ6_TIME
clear_onscreen_counter $MJ6NPCDAM
clear_onscreen_counter $MJ6CARDAM
remove_char_elegantly $MJ6NPC
unload_special_character 1
mark_model_as_no_longer_needed 59
mark_model_as_no_longer_needed 99
$MJ6CAR = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 18---------------
// Originally: Her Lover

:MJ7
gosub @MJ7_36
if 
  has_deatharrest_been_executed 
goto_if_false @MJ7_27
gosub @MJ7_2852

:MJ7_27
gosub @MJ7_2883
terminate_this_script 

:MJ7_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MJ7'
request_model 18
request_model 24
request_model 94
request_model 135
load_special_character 1 'CHUNKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'JONNE'
do_fade 0 1000
print_big 'MJ7_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 951.5 -335.3125 15.8125 rotation 0.0 0.0 0.0
point_camera_at_point 946.0 -346.5 11.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 946.0 -345.5625 8.9375
create_char $JONI_CHAR = create_actor 21 26 at 942.875 -347.6875 8.9375
set_char_heading $JONI_CHAR z_angle_to 313.5
set_player_heading $PLAYER_CHAR z_angle_to 134.5
do_fade 1 1000
wait 1000
print_help 'TALK'

:MJ7_268
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ7_296
goto @MJ7_592

:MJ7_296
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ7_268
clear_help 
load_mission_audio 'H5_B'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MJ7_3' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ7_368
wait 0
if 
  TIMERA >= 8150
goto_if_false @MJ7_368
print_now 'MJ7_4' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ7_416
wait 0
if 
  TIMERA >= 17160
goto_if_false @MJ7_416
print_now 'MJ7_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MJ7_464
wait 0
if 
  TIMERA >= 20240
goto_if_false @MJ7_464
print_now 'MJ7_6' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ7_512
wait 0
if 
  TIMERA >= 28240
goto_if_false @MJ7_512
print_now 'MJ7_7' time 10000 1
set_char_wait_state $JONI_CHAR anim 19 wait_state_time 3000

:MJ7_560
wait 0
if 
  TIMERA >= 31160
goto_if_false @MJ7_560
clear_prints 
wait 1000
clear_mission_audio 

:MJ7_592
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $JONI_CHAR
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
create_char $MJ7NPC = create_actor 21 24 at 1316.313 -246.0625 49.625
add_blip_for_char $MJ7PICK = create_marker_above_actor $MJ7NPC
change_blip_colour $MJ7PICK color_to 1
set_char_heading $MJ7NPC z_angle_to 274.0

:MJ7_703
wait 10
if 
  not is_char_dead $MJ7NPC
goto_if_false @MJ7_2852
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MJ7NPC radius 4.0 4.0 4.0
goto_if_false @MJ7_703
set_fixed_camera_position 1319.625 -236.0625 49.625 rotation 0.0 0.0 0.0
point_camera_at_char $MJ7NPC mode 15 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
create_char $MJ7KILL1 = create_actor 21 24 at 1305.063 -236.25 61.75
create_char $MJ7KILL2 = create_actor 21 24 at 1249.125 -234.4375 54.625
create_char $MJ7KILL3 = create_actor 21 24 at 1346.438 -261.5625 73.3125
create_char $MJ7KILL4 = create_actor 21 24 at 1298.875 -261.8125 63.125
create_char $MJ7KILL5 = create_actor 21 24 at 1246.063 -261.6875 54.5
create_char $MJ7KILL6 = create_actor 21 24 at 1216.5 -240.1875 33.0625
create_char $MJ7KILL7 = create_actor 21 24 at 1216.813 -255.375 33.0625
create_char $MJ7KILL8 = create_actor 21 24 at 1299.0 -241.125 51.5625
create_char $MJ7KILL9 = create_actor 21 24 at 1299.0 -255.125 51.5625
give_weapon_to_char $MJ7KILL1 weapon 10 ammo 999
give_weapon_to_char $MJ7KILL2 weapon 10 ammo 999
give_weapon_to_char $MJ7KILL3 weapon 5 ammo 999
give_weapon_to_char $MJ7KILL4 weapon 10 ammo 999
give_weapon_to_char $MJ7KILL5 weapon 10 ammo 999
give_weapon_to_char $MJ7KILL6 weapon 3 ammo 999
give_weapon_to_char $MJ7KILL7 weapon 3 ammo 999
give_weapon_to_char $MJ7KILL8 weapon 3 ammo 999
give_weapon_to_char $MJ7KILL9 weapon 3 ammo 999
set_char_stay_in_same_place $MJ7KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MJ7KILL9 maintain_position_when_attacked 1
create_car $MJ7CAR2 = create_car 94 at 1206.625 -246.8125 24.9375
set_car_heading $MJ7CAR2 z_angle_to 27.0
set_char_heading $MJ7KILL8 z_angle_to 270.0
set_char_heading $MJ7KILL9 z_angle_to 270.0
turn_char_to_face_char $MJ7NPC look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MJ7NPC
print_now 'MJ7_8' time 6000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 6000
print_now 'MJ7_9' time 6000 1
set_char_wait_state $MJ7NPC anim 19 wait_state_time 3000
create_pickup $MJ7PICK1 = create_pickup #BRIEFCASE type 3 at 1317.313 -246.0625 49.625
wait 6000
print_now 'MJ7_9A' time 7000 1
wait 7000
print_now 'MJ7_10' time 3000 1
remove_pickup $MJ7PICK1
wait 3000
print_help 'TFTF'
print_now 'MJ7_18' time 100000 1
$MJ7TF = 0.0

:MJ7_1322
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MJ7_1425
print_now 'MJ7_14' time 4000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 4000
restore_camera_jumpcut 
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_char_obj_run_to_coord $MJ7NPC run_to 1288.938 -248.6875
set_char_obj_flee_player_on_foot_always $MJ7NPC avoid_player $PLAYER_CHAR
remove_blip $MJ7PICK
$MJ7TF = 0.0
goto @MJ7_2036

:MJ7_1425
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MJ7_1322
print_now 'MJ7_15' time 4000 1
set_char_wait_state $MJ7NPC anim 19 wait_state_time 3000
wait 4000
print_now 'MJ7_16' time 4000 1
set_char_obj_run_to_coord $MJ7NPC run_to 1292.25 -248.75
wait 1000
set_char_obj_goto_coord_on_foot $MJ7KILL8 walk_to 1301.0 -241.125
set_char_obj_goto_coord_on_foot $MJ7KILL9 walk_to 1301.0 -255.125
$MJ7TF = 1.0
wait 1000
change_blip_colour $MJ7PICK color_to 0

:MJ7_1545
wait 0
if 
  locate_char_on_foot_3d $MJ7NPC 0 1292.25 -248.75 43.5625 radius 4.0 4.0 4.0
goto_if_false @MJ7_1545
switch_widescreen 0
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
set_char_obj_run_to_coord $MJ7NPC run_to 1259.375 -249.625
set_char_obj_kill_player_on_foot $MJ7KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MJ7KILL9 kill_player $PLAYER_CHAR

:MJ7_1681
wait 0
get_char_coordinates $MJ7NPC position_to $MJ7NPC_X $MJ7NPC_Y $MJ7NPC_Z
if 
  not is_char_dead $MJ7NPC
goto_if_false @MJ7_1922
if 
  locate_char_on_foot_3d $MJ7NPC 0 1259.375 -249.625 37.6875 radius 4.0 4.0 4.0
goto_if_false @MJ7_1681
set_char_obj_run_to_coord $MJ7NPC run_to 1221.438 -248.0625

:MJ7_1762
wait 0
get_char_coordinates $MJ7NPC position_to $MJ7NPC_X $MJ7NPC_Y $MJ7NPC_Z
if 
  not is_char_dead $MJ7NPC
goto_if_false @MJ7_1922
if 
  locate_char_on_foot_3d $MJ7NPC 0 1221.438 -248.0625 32.8125 radius 4.0 4.0 4.0
goto_if_false @MJ7_1762
set_char_obj_enter_car_as_driver $MJ7NPC go_to_and_drive_car $MJ7CAR2
set_char_running $MJ7NPC wander_state_to 1

:MJ7_1847
wait 0
if 
  not is_char_dead $MJ7NPC
goto_if_false @MJ7_1922
get_char_coordinates $MJ7NPC position_to $MJ7NPC_X $MJ7NPC_Y $MJ7NPC_Z
if 
  is_char_in_car $MJ7NPC in_car $MJ7CAR2
goto_if_false @MJ7_1847
set_car_mission $MJ7CAR2 driver_behaviour_to 1
set_car_driving_style $MJ7CAR2 traffic_behavior_to 2
set_car_cruise_speed $MJ7CAR2 max_speed_to 25.0

:MJ7_1922
wait 0
if 
  not is_char_dead $MJ7NPC
goto_if_false @MJ7_1963
get_char_coordinates $MJ7NPC position_to $MJ7NPC_X $MJ7NPC_Y $MJ7NPC_Z
goto @MJ7_1922

:MJ7_1963
remove_blip $MJ7PICK
create_pickup $MJ7PICK2 = create_pickup #BRIEFCASE type 3 at $MJ7NPC_X $MJ7NPC_Y $MJ7NPC_Z
add_blip_for_pickup $PICKUPBLIP2 = create_marker_above_pickup $MJ7PICK2

:MJ7_1994
wait 0
if 
  has_pickup_been_collected $MJ7PICK2
goto_if_false @MJ7_1994
print_now 'MJ7_17' time 6000 1
goto @MJ7_2036

:MJ7_2036
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 942.8125 -347.25 9.9375 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MJ7SPHERE = create_sphere 942.8125 -347.25 9.9375 2.5
create_car $MJ7CAR = create_car 135 at 944.8125 -333.8125 9.9375
set_car_heading $MJ7CAR z_angle_to 90.0

:MJ7_2103
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 942.8125 -347.25 9.9375 radius 4.0 4.0 4.0
goto_if_false @MJ7_2103
remove_blip $TAXI_PICKUP
remove_sphere $MJ7SPHERE
do_fade 0 1000
wait 1000
set_fixed_camera_position 928.625 -332.25 9.9375 rotation 0.0 0.0 0.0
point_camera_at_point 942.375 -339.625 9.8125 switchstyle 2
delete_car $MJ7CAR
wait 100
create_car $MJ7CAR = create_car 135 at 944.8125 -333.8125 9.9375
set_car_heading $MJ7CAR z_angle_to 90.0
create_char_inside_car $MJ7KILL = create_actor 21 18 in_car $MJ7CAR
set_player_control $PLAYER_CHAR can_move 0
set_player_coordinates $PLAYER_CHAR at 932.8125 -382.25 14.875
car_set_idle $MJ7CAR
clear_area 1 at 944.8125 -333.8125 9.9375 range 20.0
switch_widescreen 1
wait 1000
set_car_cruise_speed $MJ7CAR max_speed_to 20.0
do_fade 1 1000
print_now 'MJ7_11' time 6000 1
wait 6000
set_car_driving_style $MJ7CAR traffic_behavior_to 2
car_goto_coordinates $MJ7CAR drive_to 909.4375 -346.25 9.8125
print_now 'MJ7_12' time 6000 1
wait 6000
do_fade 0 1000
wait 1000
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 942.25 -345.9375 9.9375
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
restore_camera_jumpcut 
wait 800
do_fade 1 1000
delete_car $MJ7CAR
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 188.25 -930.9375 26.0 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
set_visibility_of_closest_object_of_type 1027.25 -933.6875 15.0 radius 50.0 object #INDHELIX_BARRIER 0
set_visibility_of_closest_object_of_type 1026.0 -933.625 18.0 radius 50.0 object #WESTBARRIER1 0
swap_nearest_building_model 1027.25 -933.6875 15.0 radius 50.0 from #INDHELIX_BARRIER to #LOD_LAND014
swap_nearest_building_model 1027.25 -933.6875 15.0 radius 50.0 from #WESTBARRIER1 to #LOD_LAND014
set_visibility_of_closest_object_of_type 641.25 -134.3125 4.0 radius 30.0 object #LOD_LAND014 1
swap_nearest_building_model 641.25 -134.3125 4.0 radius 50.0 from #LOD_LAND014 to #NEWRAMP
switch_roads_on 619.5625 -911.5 45.0 834.25 -954.5 32.0
delete_object $SUBWAYGATE

:MJ7_2597
wait 10
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 1017.375 -934.8125 14.9375 radius 40.0 40.0 40.0
goto_if_false @MJ7_2597
print_now 'MJ7_13' time 3000 1

:MJ7_2652
wait 10
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 189.1875 -930.8125 26.0 radius 40.0 40.0 40.0
goto_if_false @MJ7_2652
$4440 = 1
clear_wanted_level $PLAYER_CHAR
play_mission_passed_tune 1
if 
  $MJ7TF == 1.0
goto_if_false @MJ7_2760
add_score $PLAYER_CHAR money += 5000
print_with_number_big 'M_PASS' 5000 5000 ms 1
goto @MJ7_2793

:MJ7_2760
add_score $PLAYER_CHAR money += 1000
print_with_number_big 'M_PASS' 1000 5000 ms 1
goto @MJ7_2793

:MJ7_2793
player_made_progress 1
$PROGRESS_100 += 1
register_mission_passed 'MJ7_2'
remove_blip $JONI
$HOSPITAL2_OPEN = 1
start_new_script @TWENT 
start_new_script @PRACE2 
start_new_script @C_SAVE 
return 

:MJ7_2852
print_big 'M_FAIL' 6000 ms 1
$4440 = 0
change_blip_display $JONI display 3
return 

:MJ7_2883
$ONMISSION = 0
remove_pickup $MJ7PICK1
remove_pickup $MJ7PICK2
remove_blip $MJ7PICK
remove_blip $TAXI_PICKUP
remove_sphere $MJ7SPHERE
remove_blip $MJ7PICK
remove_char_elegantly $MJ7NPC
remove_char_elegantly $MJ7KILL
unload_special_character 1
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 94
mark_model_as_no_longer_needed 135
$MJ7CAR = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 19---------------
// Originally: Give Me Liberty and Luigi's Girls

:MK1
gosub @MK1_36
if 
  has_deatharrest_been_executed 
goto_if_false @MK1_27
gosub @MK1_10557

:MK1_27
gosub @MK1_10714
terminate_this_script 

:MK1_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MK1'
request_model 16
request_model 135
request_model 136
load_special_character 1 'EIGHT'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'KING'
do_fade 0 1000
print_big 'MK1_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 578.8125 -773.0625 7.75 rotation 0.0 0.0 0.0
point_camera_at_point 588.5625 -766.5 0.75 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 585.9375 -770.1875 0.75
create_char $KEN_CHAR = create_actor 21 26 at 588.5625 -766.5 0.75
set_char_heading $KEN_CHAR z_angle_to 150.0
set_player_heading $PLAYER_CHAR z_angle_to 330.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:MK1_265
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MK1_293
goto @MK1_935

:MK1_293
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MK1_265
clear_help 
load_mission_audio 'YD2_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MK1_3' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK1_365
wait 0
if 
  TIMERA >= 5080
goto_if_false @MK1_365
print_now 'MK1_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK1_413
wait 0
if 
  TIMERA >= 8080
goto_if_false @MK1_413
print_now 'MK1_5' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_461
wait 0
if 
  TIMERA >= 13210
goto_if_false @MK1_461
print_now 'MK1_6' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_509
wait 0
if 
  TIMERA >= 19280
goto_if_false @MK1_509
print_now 'MK1_7' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_557
wait 0
if 
  TIMERA >= 23180
goto_if_false @MK1_557
print_now 'MK1_8' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_605
wait 0
if 
  TIMERA >= 26180
goto_if_false @MK1_605
print_now 'MK1_9' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK1_653
wait 0
if 
  TIMERA >= 30200
goto_if_false @MK1_653
print_now 'MK1_10' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_701
wait 0
if 
  TIMERA >= 35080
goto_if_false @MK1_701
print_now 'MK1_11' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_751
wait 0
if 
  TIMERA >= 42270
goto_if_false @MK1_751
print_now 'MK1_12' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_801
wait 0
if 
  TIMERA >= 48580
goto_if_false @MK1_801
print_now 'MK1_13' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_851
wait 0
if 
  TIMERA >= 57140
goto_if_false @MK1_851
print_now 'MK1_14' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK1_901
wait 0
if 
  TIMERA >= 64240
goto_if_false @MK1_901
clear_prints 
wait 1000
clear_mission_audio 

:MK1_935
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $KEN_CHAR
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 508.8125 -750.5625 -100.0
do_fade 1 1000
create_car $MK1CAR1 = create_car 135 at 485.375 -717.625 15.5625
create_car $MK1CAR2 = create_car 136 at 429.0625 -716.125 26.0
create_char_inside_car $MK1KILL = create_actor 21 16 in_car $MK1CAR2
set_car_driving_style $MK1CAR2 traffic_behavior_to 0
set_upsidedown_car_not_damaged $MK1CAR2 not_damaged_when_upside_down 1
set_car_mission $MK1CAR2 driver_behaviour_to 0
set_car_heading $MK1CAR1 z_angle_to 360.0
set_car_heading $MK1CAR2 z_angle_to 360.0
set_car_proofs $MK1CAR2 immunities 1 1 1 1 1
change_car_lock 2 = car $MK1CAR2
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_car $CAR1PICK = create_marker_above_car $MK1CAR1
change_blip_colour $CAR1PICK color_to 1
print_now 'MK1_15' time 6000 1

:MK1_1159
change_blip_display $CAR1PICK display 3
wait 0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_1159
change_blip_display $CAR1PICK display 0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 424.3125 -715.3125 26.0 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MK1SPHERE = create_sphere 424.3125 -715.3125 26.0 4.0

:MK1_1238
change_blip_display $CAR1PICK display 3

:MK1_1245
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
goto_if_false @MK1_10557
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_1238
change_blip_display $CAR1PICK display 0
if and
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 424.3125 -716.9375 26.0 radius 4.0 4.0 4.0
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_1245
remove_blip $TAXI_PICKUP
remove_sphere $MK1SPHERE
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 0
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1
$MK1CARDAM = 100
display_onscreen_counter_with_string $MK1CARDAM 1 'DAM'
set_car_mission $MK1CAR2 driver_behaviour_to 2
set_car_cruise_speed $MK1CAR2 max_speed_to 60.0
set_car_driving_style $MK1CAR2 traffic_behavior_to 3
add_blip_for_car $CAR2PICK = create_marker_above_car $MK1CAR2
change_blip_colour $CAR2PICK color_to 0
$MK1_TIME = 240000
display_onscreen_timer $MK1_TIME
add_blip_for_coord_old $RACEPOINT1 = create_marker_at 426.8125 -420.3125 21.875 color 5 display 3
change_blip_scale $RACEPOINT1 size 3
goto @MK1_1628

:MK1_1621
change_blip_display $CAR1PICK display 3

:MK1_1628
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 426.8125 -420.3125 21.875
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_1621
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 426.8125 -420.3125 21.875 radius 6.0 6.0 6.0
goto_if_false @MK1_1628
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT1
add_blip_for_coord_old $RACEPOINT2 = create_marker_at 272.125 -401.5 25.6875 color 5 display 3
change_blip_scale $RACEPOINT2 size 3
goto @MK1_1841

:MK1_1834
change_blip_display $CAR1PICK display 3

:MK1_1841
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 272.125 -401.5 25.6875
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_1834
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 272.125 -401.5 25.6875 radius 6.0 6.0 6.0
goto_if_false @MK1_1841
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT2
add_blip_for_coord_old $RACEPOINT3 = create_marker_at 246.625 -553.5 26.0 color 5 display 3
change_blip_scale $RACEPOINT3 size 3
goto @MK1_2054

:MK1_2047
change_blip_display $CAR1PICK display 3

:MK1_2054
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 246.625 -553.5 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_2047
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 246.625 -553.5 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_2054
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT3
add_blip_for_coord_old $RACEPOINT4 = create_marker_at 166.25 -872.1875 26.0 color 5 display 3
change_blip_scale $RACEPOINT4 size 3
goto @MK1_2267

:MK1_2260
change_blip_display $CAR1PICK display 3

:MK1_2267
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 166.25 -872.1875 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_2260
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 166.25 -872.1875 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_2267
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT4
add_blip_for_coord_old $RACEPOINT5 = create_marker_at 146.6875 -978.375 26.0 color 5 display 3
change_blip_scale $RACEPOINT5 size 3
goto @MK1_2480

:MK1_2473
change_blip_display $CAR1PICK display 3

:MK1_2480
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 146.6875 -978.375 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_2473
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 146.6875 -978.375 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_2480
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT5
add_blip_for_coord_old $RACEPOINT6 = create_marker_at 167.375 -1126.563 26.0 color 5 display 3
change_blip_scale $RACEPOINT6 size 3
goto @MK1_2693

:MK1_2686
change_blip_display $CAR1PICK display 3

:MK1_2693
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 167.375 -1126.563 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_2686
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 167.375 -1126.563 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_2693
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT6
add_blip_for_coord_old $RACEPOINT7 = create_marker_at 363.8125 -1225.188 26.0 color 5 display 3
change_blip_scale $RACEPOINT7 size 3
goto @MK1_2906

:MK1_2899
change_blip_display $CAR1PICK display 3

:MK1_2906
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 363.8125 -1225.188 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_2899
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 363.8125 -1225.188 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_2906
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT7
add_blip_for_coord_old $RACEPOINT8 = create_marker_at 376.75 -1391.125 26.0 color 5 display 3
change_blip_scale $RACEPOINT8 size 3
goto @MK1_3119

:MK1_3112
change_blip_display $CAR1PICK display 3

:MK1_3119
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 376.75 -1391.125 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_3112
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 376.75 -1391.125 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_3119
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT8
add_blip_for_coord_old $RACEPOINT9 = create_marker_at 327.375 -1492.813 26.0 color 5 display 3
change_blip_scale $RACEPOINT9 size 3
goto @MK1_3332

:MK1_3325
change_blip_display $CAR1PICK display 3

:MK1_3332
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 327.375 -1492.813 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_3325
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 327.375 -1492.813 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_3332
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT9
add_blip_for_coord_old $RACEPOINT10 = create_marker_at 118.5625 -1606.313 26.0 color 5 display 3
change_blip_scale $RACEPOINT10 size 3
goto @MK1_3545

:MK1_3538
change_blip_display $CAR1PICK display 3

:MK1_3545
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 118.5625 -1606.313 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_3538
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 118.5625 -1606.313 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_3545
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT10
add_blip_for_coord_old $RACEPOINT11 = create_marker_at -86.0625 -1568.063 25.8125 color 5 display 3
change_blip_scale $RACEPOINT11 size 3
goto @MK1_3758

:MK1_3751
change_blip_display $CAR1PICK display 3

:MK1_3758
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -86.0625 -1568.063 25.8125
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_3751
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -86.0625 -1568.063 25.8125 radius 6.0 6.0 6.0
goto_if_false @MK1_3758
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT11
add_blip_for_coord_old $RACEPOINT12 = create_marker_at -112.6875 -1371.563 26.0 color 5 display 3
change_blip_scale $RACEPOINT12 size 3
goto @MK1_3971

:MK1_3964
change_blip_display $CAR1PICK display 3

:MK1_3971
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -112.6875 -1371.563 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_3964
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -112.6875 -1371.563 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_3971
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT12
add_blip_for_coord_old $RACEPOINT13 = create_marker_at 23.1875 -1371.625 26.0 color 5 display 3
change_blip_scale $RACEPOINT13 size 3
goto @MK1_4184

:MK1_4177
change_blip_display $CAR1PICK display 3

:MK1_4184
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 23.1875 -1371.625 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_4177
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 23.1875 -1371.625 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_4184
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT13
add_blip_for_coord_old $RACEPOINT14 = create_marker_at 46.9375 -1293.875 26.0 color 5 display 3
change_blip_scale $RACEPOINT14 size 3
goto @MK1_4397

:MK1_4390
change_blip_display $CAR1PICK display 3

:MK1_4397
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 46.9375 -1293.875 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_4390
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 46.9375 -1293.875 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_4397
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT14
add_blip_for_coord_old $RACEPOINT15 = create_marker_at 47.0 -1085.063 26.0 color 5 display 3
change_blip_scale $RACEPOINT15 size 3
goto @MK1_4610

:MK1_4603
change_blip_display $CAR1PICK display 3

:MK1_4610
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 47.0 -1085.063 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_4603
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 47.0 -1085.063 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_4610
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT15
add_blip_for_coord_old $RACEPOINT16 = create_marker_at 47.0 -958.9375 26.0 color 5 display 3
change_blip_scale $RACEPOINT16 size 3
goto @MK1_4823

:MK1_4816
change_blip_display $CAR1PICK display 3

:MK1_4823
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 47.0 -958.9375 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_4816
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 47.0 -958.9375 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_4823
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT16
add_blip_for_coord_old $RACEPOINT17 = create_marker_at 127.0 -833.0625 26.0 color 5 display 3
change_blip_scale $RACEPOINT17 size 3
goto @MK1_5036

:MK1_5029
change_blip_display $CAR1PICK display 3

:MK1_5036
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 127.0 -833.0625 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_5029
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 127.0 -833.0625 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_5036
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT17
add_blip_for_coord_old $RACEPOINT18 = create_marker_at 126.9375 -660.3125 26.0 color 5 display 3
change_blip_scale $RACEPOINT18 size 3
goto @MK1_5249

:MK1_5242
change_blip_display $CAR1PICK display 3

:MK1_5249
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 126.9375 -660.3125 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_5242
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 126.9375 -660.3125 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_5249
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT18
add_blip_for_coord_old $RACEPOINT19 = create_marker_at 76.8125 -541.1875 26.0 color 5 display 3
change_blip_scale $RACEPOINT19 size 3
goto @MK1_5462

:MK1_5455
change_blip_display $CAR1PICK display 3

:MK1_5462
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 76.8125 -541.1875 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_5455
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 76.8125 -541.1875 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_5462
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT19
add_blip_for_coord_old $RACEPOINT20 = create_marker_at -11.375 -517.9375 19.25 color 5 display 3
change_blip_scale $RACEPOINT20 size 3
goto @MK1_5675

:MK1_5668
change_blip_display $CAR1PICK display 3

:MK1_5675
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -11.375 -517.9375 19.25
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_5668
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -11.375 -517.9375 19.25 radius 6.0 6.0 6.0
goto_if_false @MK1_5675
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT20
add_blip_for_coord_old $RACEPOINT21 = create_marker_at 74.375 -406.375 16.0 color 5 display 3
change_blip_scale $RACEPOINT21 size 3
goto @MK1_5888

:MK1_5881
change_blip_display $CAR1PICK display 3

:MK1_5888
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 74.375 -406.375 16.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_5881
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 74.375 -406.375 16.0 radius 6.0 6.0 6.0
goto_if_false @MK1_5888
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT21
add_blip_for_coord_old $RACEPOINT22 = create_marker_at 246.625 -468.75 26.0 color 5 display 3
change_blip_scale $RACEPOINT22 size 3
goto @MK1_6101

:MK1_6094
change_blip_display $CAR1PICK display 3

:MK1_6101
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 246.625 -468.75 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_6094
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 246.625 -468.75 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_6101
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT22
add_blip_for_coord_old $RACEPOINT23 = create_marker_at 306.875 -401.375 24.0625 color 5 display 3
change_blip_scale $RACEPOINT23 size 3
goto @MK1_6314

:MK1_6307
change_blip_display $CAR1PICK display 3

:MK1_6314
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 306.875 -401.375 24.0625
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_6307
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 306.875 -401.375 24.0625 radius 6.0 6.0 6.0
goto_if_false @MK1_6314
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT23
add_blip_for_coord_old $RACEPOINT24 = create_marker_at 406.8125 -462.375 26.0 color 5 display 3
change_blip_scale $RACEPOINT24 size 3
goto @MK1_6527

:MK1_6520
change_blip_display $CAR1PICK display 3

:MK1_6527
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point 406.8125 -462.375 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_6520
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 406.8125 -462.375 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_6527
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT24
add_blip_for_coord_old $RACEPOINT25 = create_marker_at 406.8125 -681.0625 26.0 color 5 display 3
change_blip_scale $RACEPOINT25 size 3
goto @MK1_6740

:MK1_6733
change_blip_display $CAR1PICK display 3

:MK1_6740
wait 0
if and
  not is_car_dead $MK1CAR1
  not is_car_dead $MK1CAR2
  $MK1CARDAM > 0
  $MK1_TIME > 0
goto_if_false @MK1_10557
get_car_health $MK1CAR_HEALTH = car $MK1CAR1
$MK1CAR_HEALTH /= 10
set_var_int_to_var_int $MK1CARDAM = $MK1CAR_HEALTH
draw_corona 5.5 6 0 with_color 100 0 0 at_point 406.8125 -681.0625 26.0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
goto_if_false @MK1_6733
change_blip_display $CAR1PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 406.8125 -681.0625 26.0 radius 6.0 6.0 6.0
goto_if_false @MK1_6740
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT25
  $MK1_TIME > 59999
goto_if_false @MK1_10305
clear_onscreen_timer $MK1_TIME
clear_onscreen_counter $MK1CARDAM
add_sprite_blip_for_coord $TAXI_PICKUP = create_marker 11 at 560.4375 -777.0 1.75
add_sphere $MK1SPHERE = create_sphere 560.4375 -777.0 1.75 2.5
$MK1CAR2 = -1
remove_blip $CAR1PICK
remove_blip $CAR2PICK
add_pager_message 'MK1_17' 140 2 0
wait 6000
$MK1_TIME2 = 30000
display_onscreen_timer $MK1_TIME2

:MK1_7026
wait 0
if 
  $MK1_TIME2 > 0
goto_if_false @MK1_10384
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 560.4375 -777.0 1.75 radius 2.0 2.0 2.0
goto_if_false @MK1_7026
request_model 158
switch_widescreen 1
do_fade 0 500
set_player_control $PLAYER_CHAR can_move 0
wait 500
remove_blip $TAXI_PICKUP
remove_sphere $MK1SPHERE
clear_onscreen_timer $MK1_TIME2
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 578.8125 -773.0625 7.75 rotation 0.0 0.0 0.0
point_camera_at_point 588.5625 -766.5 0.75 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 585.9375 -770.1875 0.75
create_char $KEN_CHAR = create_actor 21 26 at 588.5625 -766.5 0.75
set_char_heading $KEN_CHAR z_angle_to 150.0
set_player_heading $PLAYER_CHAR z_angle_to 330.0
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK1_7443
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK1_7443
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 7000
print_now 'MK1_18' time 7000 1
wait 7000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK1_7443
print_now 'MK1_19' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK1_7443
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 4000
print_now 'MK1_20' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK1_7443
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000
print_now 'MK1_21' time 5000 1
wait 5000

:MK1_7443
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $KEN_CHAR
switch_widescreen 0
create_car $MK1CAR3 = create_car 158 at 485.375 -717.625 15.5625
set_car_heading $MK1CAR3 z_angle_to 360.0
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 508.8125 -750.5625 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
add_blip_for_car $CAR1PICK = create_marker_above_car $MK1CAR3
change_blip_colour $CAR1PICK color_to 1
do_fade 1 1000
wait 1000
change_blip_display $CAR1PICK display 3

:MK1_7583
wait 0
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_7583
change_blip_display $CAR1PICK display 0
set_player_control $PLAYER_CHAR can_move 0
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1
$MK1CARDAM2 = 100
$MK1_TIME2 = 300000
display_onscreen_timer $MK1_TIME2
display_onscreen_counter_with_string $MK1CARDAM2 1 'DAM'
$RACECOUNT = 0
$RACE_X = 0
$RACE_Y = 0
$RACE_Z = 0
$RACE_X1 = 561.0
$RACE_Y1 = -237.375
$RACE_Z1 = 13.75
$RACE_X2 = 70.4375
$RACE_Y2 = 88.3125
$RACE_Z2 = 16.0
$RACE_X3 = -108.25
$RACE_Y3 = -391.25
$RACE_Z3 = 16.0
$RACE_X4 = -96.5
$RACE_Y4 = -874.0
$RACE_Z4 = 15.875
$RACE_X5 = -208.3125
$RACE_Y5 = -1364.188
$RACE_Z5 = 26.0
$RACE_X6 = 127.375
$RACE_Y6 = -1616.5
$RACE_Z6 = 26.0
$RACE_X7 = 461.8125
$RACE_Y7 = -1522.5
$RACE_Z7 = 16.0
$RACE_X8 = 426.6875
$RACE_Y8 = -462.3125
$RACE_Z8 = 26.0
set_var_int_to_var_int $RACE_X = $RACE_X1
set_var_int_to_var_int $RACE_Y = $RACE_Y1
set_var_int_to_var_int $RACE_Z = $RACE_Z1
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3

:MK1_8082
change_blip_display $CAR1PICK display 3

:MK1_8089
wait 0
if 
  not is_car_dead $MK1CAR3
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_8082
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_8089
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X2
set_var_int_to_var_int $RACE_Y = $RACE_Y2
set_var_int_to_var_int $RACE_Z = $RACE_Z2
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_8299

:MK1_8292
change_blip_display $CAR1PICK display 3

:MK1_8299
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_8292
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_8299
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X3
set_var_int_to_var_int $RACE_Y = $RACE_Y3
set_var_int_to_var_int $RACE_Z = $RACE_Z3
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_8516

:MK1_8509
change_blip_display $CAR1PICK display 3

:MK1_8516
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_8509
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_8516
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X4
set_var_int_to_var_int $RACE_Y = $RACE_Y4
set_var_int_to_var_int $RACE_Z = $RACE_Z4
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_8733

:MK1_8726
change_blip_display $CAR1PICK display 3

:MK1_8733
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_8726
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_8733
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X5
set_var_int_to_var_int $RACE_Y = $RACE_Y5
set_var_int_to_var_int $RACE_Z = $RACE_Z5
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_8950

:MK1_8943
change_blip_display $CAR1PICK display 3

:MK1_8950
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_8943
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_8950
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X6
set_var_int_to_var_int $RACE_Y = $RACE_Y6
set_var_int_to_var_int $RACE_Z = $RACE_Z6
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_9167

:MK1_9160
change_blip_display $CAR1PICK display 3

:MK1_9167
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_9160
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_9167
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X7
set_var_int_to_var_int $RACE_Y = $RACE_Y7
set_var_int_to_var_int $RACE_Z = $RACE_Z7
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_9384

:MK1_9377
change_blip_display $CAR1PICK display 3

:MK1_9384
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_9377
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_9384
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X8
set_var_int_to_var_int $RACE_Y = $RACE_Y8
set_var_int_to_var_int $RACE_Z = $RACE_Z8
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
goto @MK1_9601

:MK1_9594
change_blip_display $CAR1PICK display 3

:MK1_9601
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
if 
  $RACECOUNT == 0
goto_if_false @MK1_9888
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 0 0 100 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_9594
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_9601
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
set_var_int_to_var_int $RACE_X = $RACE_X1
set_var_int_to_var_int $RACE_Y = $RACE_Y1
set_var_int_to_var_int $RACE_Z = $RACE_Z1
add_blip_for_coord_old $RACEPOINT = create_marker_at $RACE_X $RACE_Y $RACE_Z color 5 display 3
change_blip_scale $RACEPOINT size 3
set_comedy_controls $MK1CAR3 comedy_controls 1
print_now 'MK1_26' time 3000 1
$RACECOUNT = 1
goto @MK1_8089

:MK1_9881
change_blip_display $CAR1PICK display 3

:MK1_9888
wait 0
if and
  not is_car_dead $MK1CAR3
  $MK1_TIME2 > 0
goto_if_false @MK1_10348
get_car_health $MK1CAR_HEALTH3 = car $MK1CAR3
$MK1CAR_HEALTH3 /= 10
set_var_int_to_var_int $MK1CARDAM2 = $MK1CAR_HEALTH3
draw_corona 5.5 6 0 with_color 100 0 0 at_point $RACE_X $RACE_Y $RACE_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MK1CAR3
goto_if_false @MK1_9881
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $RACE_X $RACE_Y $RACE_Z radius 6.0 6.0 6.0
goto_if_false @MK1_9888
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT
if 
  $MK1_TIME2 > 40000
goto_if_false @MK1_10090
print_now 'MK1_23' time 6000 1
wait 6000
goto @MK1_10159

:MK1_10090
  $MK1_TIME2 > 20000
goto_if_false @MK1_10132
print_now 'MK1_24' time 5500 1
wait 5500
goto @MK1_10159

:MK1_10132
print_now 'MK1_25' time 6000 1
wait 6000
goto @MK1_10159

:MK1_10159
do_fade 0 1000
wait 1000
warp_player_from_car_to_coord $PLAYER_CHAR at 508.8125 -750.5625 -100.0
wait 1000
clear_onscreen_timer $MK1_TIME2
clear_onscreen_timer $MK1_TIME
clear_onscreen_counter $MK1CARDAM
clear_onscreen_timer $MK1_TIME2
clear_onscreen_counter $MK1CARDAM2
delete_car $MK1CAR3
do_fade 1 1000
wait 1000
$4520 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 30000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 30000
register_mission_passed 'MK1_2'
start_new_script @TWENT1 
return 

:MK1_10305
if 
  not is_player_dead $PLAYER_CHAR
goto_if_false @MK1_10671
print_now 'MK1_16' time 6000 1
wait 6000
goto @MK1_10384

:MK1_10348
if 
  not is_player_dead $PLAYER_CHAR
goto_if_false @MK1_10671
print_now 'MK1_25' time 6000 1
wait 6000

:MK1_10384
wait 1000
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
clear_onscreen_timer $MK1_TIME2
clear_onscreen_timer $MK1_TIME
clear_onscreen_counter $MK1CARDAM
clear_onscreen_timer $MK1_TIME2
clear_onscreen_counter $MK1CARDAM2
warp_player_from_car_to_coord $PLAYER_CHAR at 508.8125 -750.5625 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 270.0
wait 1000
delete_car $MK1CAR3
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
$4520 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MK1_2'
start_new_script @TWENT1 
return 

:MK1_10557
wait 1000
set_player_control $PLAYER_CHAR can_move 0
if 
  not is_player_dead $PLAYER_CHAR
goto_if_false @MK1_10671
do_fade 0 1000
wait 1000
warp_player_from_car_to_coord $PLAYER_CHAR at 508.8125 -750.5625 -100.0
wait 500
delete_car $MK1CAR3
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
print_big 'M_FAIL' 6000 ms 1
$4520 = 0
change_blip_display $KEN display 3
return 

:MK1_10671
set_player_control $PLAYER_CHAR can_move 1
print_big 'M_FAIL' 6000 ms 1
$4520 = 0
delete_car $MK1CAR3
change_blip_display $KEN display 3
return 

:MK1_10714
$ONMISSION = 0
remove_blip $RACEPOINT
remove_blip $RACEPOINT1
remove_blip $RACEPOINT2
remove_blip $RACEPOINT3
remove_blip $RACEPOINT4
remove_blip $RACEPOINT5
remove_blip $RACEPOINT6
remove_blip $RACEPOINT7
remove_blip $RACEPOINT8
remove_blip $RACEPOINT9
remove_blip $RACEPOINT10
remove_blip $RACEPOINT11
remove_blip $RACEPOINT12
remove_blip $RACEPOINT13
remove_blip $RACEPOINT14
remove_blip $RACEPOINT15
remove_blip $RACEPOINT16
remove_blip $RACEPOINT17
remove_blip $RACEPOINT18
remove_blip $RACEPOINT19
remove_blip $RACEPOINT20
remove_blip $RACEPOINT21
remove_blip $RACEPOINT22
remove_blip $RACEPOINT23
remove_blip $RACEPOINT24
remove_blip $RACEPOINT25
remove_blip $CAR1PICK
remove_blip $CAR2PICK
remove_blip $TAXI_PICKUP
remove_sphere $MK1SPHERE
clear_onscreen_timer $MK1_TIME2
clear_onscreen_timer $MK1_TIME
clear_onscreen_counter $MK1CARDAM
clear_onscreen_timer $MK1_TIME2
clear_onscreen_counter $MK1CARDAM2
unload_special_character 1
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 158
mark_model_as_no_longer_needed 135
mark_model_as_no_longer_needed 136
$MK1CAR1 = -1
$MK1CAR2 = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 20---------------
// Originally: Don't Spank My Bitch Up

:MK2
gosub @MK2_36
if 
  has_deatharrest_been_executed 
goto_if_false @MK2_27
gosub @MK2_5926

:MK2_27
gosub @MK2_5957
terminate_this_script 

:MK2_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MK2'
request_model 20
request_model 21
request_model 24
request_model 25
request_model 138
request_model #COFFEE
load_special_character 1 'EIGHT'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'KING'
do_fade 0 1000
print_big 'MK2_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 578.8125 -773.0625 7.75 rotation 0.0 0.0 0.0
point_camera_at_point 588.5625 -766.5 0.75 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 585.9375 -770.1875 0.75
create_char $KEN_CHAR = create_actor 21 26 at 588.5625 -766.5 0.75
set_char_heading $KEN_CHAR z_angle_to 150.0
set_player_heading $PLAYER_CHAR z_angle_to 330.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:MK2_276
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MK2_304
goto @MK2_602

:MK2_304
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MK2_276
clear_help 
load_mission_audio 'YD2_B'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MK2_3' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK2_376
wait 0
if 
  TIMERA >= 10050
goto_if_false @MK2_376
print_now 'MK2_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK2_424
wait 0
if 
  TIMERA >= 15270
goto_if_false @MK2_424
print_now 'MK2_5' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK2_472
wait 0
if 
  TIMERA >= 23100
goto_if_false @MK2_472
print_now 'MK2_6' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK2_520
wait 0
if 
  TIMERA >= 30080
goto_if_false @MK2_520
print_now 'MK2_7' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK2_568
wait 0
if 
  TIMERA >= 36220
goto_if_false @MK2_568
clear_prints 
wait 1000
clear_mission_audio 

:MK2_602
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
delete_char $KEN_CHAR
set_player_coordinates $PLAYER_CHAR at 508.8125 -750.5625 -100.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$MK2NUM = 12
display_onscreen_counter_with_string $MK2NUM 0 'CANS'
print_now 'MK2_14' time 3000 1
create_char $MK2KILL1 = create_actor 12 20 at 163.25 -1003.125 26.1875
create_char $MK2KILL2 = create_actor 12 21 at 167.875 -1003.563 29.5
create_char $MK2KILL3 = create_actor 12 20 at 169.1875 -992.9375 26.1875
create_char $MK2KILL4 = create_actor 12 21 at 161.875 -993.25 29.5
create_char $MK2KILL5 = create_actor 12 20 at 168.0625 -997.5 26.875
create_char $MK2NPC1 = create_actor 4 24 at 164.375 -1005.063 29.5
create_char $MK2NPC2 = create_actor 4 25 at 165.3125 -994.5 26.1875
set_chars_chatting $MK2KILL2 $MK2NPC1 converse_in 9999999
set_chars_chatting $MK2KILL3 $MK2NPC2 converse_in 9999999
set_char_heading $MK2KILL2 z_angle_to 0.0
set_char_heading $MK2KILL4 z_angle_to 90.0
set_char_heading $MK2KILL5 z_angle_to 30.0
add_blip_for_char $MK2KILLPICK1 = create_marker_above_actor $MK2KILL1
add_blip_for_char $MK2KILLPICK2 = create_marker_above_actor $MK2KILL2
add_blip_for_char $MK2KILLPICK3 = create_marker_above_actor $MK2KILL3
add_blip_for_char $MK2KILLPICK4 = create_marker_above_actor $MK2KILL4
add_blip_for_char $MK2KILLPICK5 = create_marker_above_actor $MK2KILL5
change_blip_colour $MK2KILLPICK1 color_to 0
change_blip_colour $MK2KILLPICK2 color_to 0
change_blip_colour $MK2KILLPICK3 color_to 0
change_blip_colour $MK2KILLPICK4 color_to 0
change_blip_colour $MK2KILLPICK5 color_to 0
set_char_stay_in_same_place $MK2KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL5 maintain_position_when_attacked 1
give_weapon_to_char $MK2KILL1 weapon 2 ammo 999
give_weapon_to_char $MK2KILL2 weapon 5 ammo 999
give_weapon_to_char $MK2KILL3 weapon 3 ammo 999
give_weapon_to_char $MK2KILL4 weapon 2 ammo 999
give_weapon_to_char $MK2KILL5 weapon 3 ammo 999
$MK2KILL1_PICKUP_HAD = 0
$MK2KILL2_PICKUP_HAD = 0
$MK2KILL3_PICKUP_HAD = 0
$MK2KILL4_PICKUP_HAD = 0
$MK2KILL5_PICKUP_HAD = 0
$MK2PICKUPCOL1 = 0
$MK2PICKUPCOL2 = 0
$MK2PICKUPCOL3 = 0
$MK2PICKUPCOL4 = 0
$MK2PICKUPCOL5 = 0

:MK2_1134
wait 0
if or
  not is_char_health_greater $MK2KILL1 health > 99
  not is_char_health_greater $MK2KILL2 health > 99
  not is_char_health_greater $MK2KILL3 health > 99
  not is_char_health_greater $MK2KILL4 health > 99
  not is_char_health_greater $MK2KILL5 health > 99
  not is_char_health_greater $MK2NPC2 health > 99
  not is_char_health_greater $MK2NPC1 health > 99
  is_player_shooting_in_area $PLAYER_CHAR shooting_in_area 174.25 -989.1875 159.3125 -1007.188 0
goto_if_false @MK2_1134
set_char_obj_kill_player_on_foot $MK2KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL5 kill_player $PLAYER_CHAR

:MK2_1257
wait 0
if and
  $MK2KILL1_PICKUP_HAD == 0
  is_char_dead $MK2KILL1
goto_if_false @MK2_1345
remove_blip $MK2KILLPICK1
get_char_coordinates $MK2KILL1 position_to $MK2KILL1_X $MK2KILL1_Y $MK2KILL1_Z
$MK2KILL1_Z -= 1.0
create_pickup $MK2PICKUP1 = create_pickup 1366 type 3 at $MK2KILL1_X $MK2KILL1_Y $MK2KILL1_Z
add_blip_for_pickup $MK2PICK1 = create_marker_above_pickup $MK2PICKUP1
$MK2KILL1_PICKUP_HAD = 1

:MK2_1345
if and
  $MK2KILL2_PICKUP_HAD == 0
  is_char_dead $MK2KILL2
goto_if_false @MK2_1429
remove_blip $MK2KILLPICK2
get_char_coordinates $MK2KILL2 position_to $MK2KILL2_X $MK2KILL2_Y $MK2KILL2_Z
$MK2KILL2_Z -= 1.0
create_pickup $MK2PICKUP2 = create_pickup 1366 type 3 at $MK2KILL2_X $MK2KILL2_Y $MK2KILL2_Z
add_blip_for_pickup $MK2PICK2 = create_marker_above_pickup $MK2PICKUP2
$MK2KILL2_PICKUP_HAD = 1

:MK2_1429
if and
  $MK2KILL3_PICKUP_HAD == 0
  is_char_dead $MK2KILL3
goto_if_false @MK2_1513
remove_blip $MK2KILLPICK3
get_char_coordinates $MK2KILL3 position_to $MK2KILL3_X $MK2KILL3_Y $MK2KILL3_Z
$MK2KILL3_Z -= 1.0
create_pickup $MK2PICKUP3 = create_pickup 1366 type 3 at $MK2KILL3_X $MK2KILL3_Y $MK2KILL3_Z
add_blip_for_pickup $MK2PICK3 = create_marker_above_pickup $MK2PICKUP3
$MK2KILL3_PICKUP_HAD = 1

:MK2_1513
if and
  $MK2KILL4_PICKUP_HAD == 0
  is_char_dead $MK2KILL4
goto_if_false @MK2_1597
remove_blip $MK2KILLPICK4
get_char_coordinates $MK2KILL4 position_to $MK2KILL4_X $MK2KILL4_Y $MK2KILL4_Z
$MK2KILL4_Z -= 1.0
create_pickup $MK2PICKUP4 = create_pickup 1366 type 3 at $MK2KILL4_X $MK2KILL4_Y $MK2KILL4_Z
add_blip_for_pickup $MK2PICK4 = create_marker_above_pickup $MK2PICKUP4
$MK2KILL4_PICKUP_HAD = 1

:MK2_1597
  is_char_dead $MK2KILL5
goto_if_false @MK2_1614
remove_blip $MK2KILLPICK5

:MK2_1614
wait 0
if and
  $MK2KILL1_PICKUP_HAD == 1
  $MK2PICKUPCOL1 == 0
goto_if_false @MK2_1673
if 
  has_pickup_been_collected $MK2PICKUP1
goto_if_false @MK2_1673
$MK2PICKUPCOL1 = 1
$MK2NUM -= 1

:MK2_1673
wait 0
if and
  $MK2KILL2_PICKUP_HAD == 1
  $MK2PICKUPCOL2 == 0
goto_if_false @MK2_1732
if 
  has_pickup_been_collected $MK2PICKUP2
goto_if_false @MK2_1732
$MK2PICKUPCOL2 = 1
$MK2NUM -= 1

:MK2_1732
wait 0
if and
  $MK2KILL3_PICKUP_HAD == 1
  $MK2PICKUPCOL3 == 0
goto_if_false @MK2_1791
if 
  has_pickup_been_collected $MK2PICKUP3
goto_if_false @MK2_1791
$MK2PICKUPCOL3 = 1
$MK2NUM -= 1

:MK2_1791
wait 0
if and
  $MK2KILL4_PICKUP_HAD == 1
  $MK2PICKUPCOL4 == 0
goto_if_false @MK2_1850
if 
  has_pickup_been_collected $MK2PICKUP4
goto_if_false @MK2_1850
$MK2PICKUPCOL4 = 1
$MK2NUM -= 1

:MK2_1850
if and
  is_char_dead $MK2KILL5
  $MK2NUM == 8
goto_if_false @MK2_1257
remove_blip $MK2KILLPICK1
remove_blip $MK2KILLPICK2
remove_blip $MK2KILLPICK3
remove_blip $MK2KILLPICK4
remove_blip $MK2KILLPICK5
load_special_character 2 'COL1'
load_special_character 3 'COL2'
add_pager_message 'MK2_8' 140 10 2
create_car $MK2CAR1 = create_car 138 at 134.5 -620.9375 26.0
create_char $MK2KILL2 = create_actor 21 21 at 141.0 -625.8125 26.0
create_char $MK2KILL3 = create_actor 21 20 at 136.5625 -620.5 25.0
create_char $MK2KILL1 = create_actor 21 20 at 183.9375 -628.625 25.125
create_char $MK2KILL4 = create_actor 21 21 at 196.0 -614.125 25.125
create_char $MK2KILL5 = create_actor 21 20 at 222.3125 -617.9375 25.0
create_char $MK2KILL6 = create_actor 21 20 at 146.25 -625.8125 25.0
create_object $COFFEE1 = create_object #COFFEE at 184.5625 -629.125 -100.0
create_object $COFFEE2 = create_object #COFFEE at 195.125 -613.75 -100.0
create_object $COFFEE3 = create_object #COFFEE at 221.875 -618.4375 -100.0
create_object $COFFEE4 = create_object #COFFEE at 147.125 -625.0 -100.0
set_object_heading $COFFEE1 z_angle_to 180.0
set_object_heading $COFFEE2 z_angle_to 0.0
set_object_heading $COFFEE3 z_angle_to 90.0
set_object_heading $COFFEE4 z_angle_to 270.0
set_char_heading $MK2KILL3 z_angle_to 270.0
set_char_heading $MK2KILL2 z_angle_to 90.0
set_char_heading $MK2KILL1 z_angle_to 270.0
set_char_heading $MK2KILL4 z_angle_to 90.0
set_char_heading $MK2KILL5 z_angle_to 180.0
set_char_heading $MK2KILL6 z_angle_to 0.0
set_car_heading $MK2CAR1 z_angle_to 0.0
add_blip_for_object $COFFEE_BLIP1 = create_marker_above_object $COFFEE1
add_blip_for_object $COFFEE_BLIP2 = create_marker_above_object $COFFEE2
add_blip_for_object $COFFEE_BLIP3 = create_marker_above_object $COFFEE3
add_blip_for_object $COFFEE_BLIP4 = create_marker_above_object $COFFEE4
add_blip_for_char $MK2KILLPICK1 = create_marker_above_actor $MK2KILL1
add_blip_for_char $MK2KILLPICK2 = create_marker_above_actor $MK2KILL2
add_blip_for_char $MK2KILLPICK3 = create_marker_above_actor $MK2KILL3
add_blip_for_char $MK2KILLPICK4 = create_marker_above_actor $MK2KILL4
add_blip_for_char $MK2KILLPICK5 = create_marker_above_actor $MK2KILL5
add_blip_for_char $MK2KILLPICK6 = create_marker_above_actor $MK2KILL6
change_blip_colour $MK2KILLPICK1 color_to 0
change_blip_colour $MK2KILLPICK2 color_to 0
change_blip_colour $MK2KILLPICK3 color_to 0
change_blip_colour $MK2KILLPICK4 color_to 0
change_blip_colour $MK2KILLPICK5 color_to 0
change_blip_colour $MK2KILLPICK6 color_to 0
change_blip_colour $COFFEE_BLIP1 color_to 0
change_blip_colour $COFFEE_BLIP2 color_to 0
change_blip_colour $COFFEE_BLIP3 color_to 0
change_blip_colour $COFFEE_BLIP4 color_to 0
set_char_stay_in_same_place $MK2KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK2KILL5 maintain_position_when_attacked 1
give_weapon_to_char $MK2KILL1 weapon 3 ammo 999
give_weapon_to_char $MK2KILL2 weapon 11 ammo 999
give_weapon_to_char $MK2KILL3 weapon 5 ammo 999
give_weapon_to_char $MK2KILL4 weapon 5 ammo 999
give_weapon_to_char $MK2KILL5 weapon 3 ammo 999
give_weapon_to_char $MK2KILL6 weapon 5 ammo 999
$MK2KILL1_PICKUP_HAD = 0
$MK2KILL2_PICKUP_HAD = 0
$MK2KILL6_PICKUP_HAD = 0
$MK2KILL4_PICKUP_HAD = 0
$MK2KILL5_PICKUP_HAD = 0
$MK2PICKUPCOL1 = 0
$MK2PICKUPCOL2 = 0
$MK2PICKUPCOL6 = 0
$MK2PICKUPCOL4 = 0
$MK2PICKUPCOL5 = 0
$MK2KILL3_OPEN = 0
$MK2_SAY = 0
$MK2_1 = 0
$MK2_2 = 0
$MK2_RUN = 0

:MK2_2566
wait 0
if or
  not is_char_health_greater $MK2KILL1 health > 99
  not is_char_health_greater $MK2KILL2 health > 99
  not is_char_health_greater $MK2KILL3 health > 99
  not is_char_health_greater $MK2KILL4 health > 99
  not is_char_health_greater $MK2KILL5 health > 99
  not is_char_health_greater $MK2KILL6 health > 99
  is_player_shooting_in_area $PLAYER_CHAR shooting_in_area 241.4375 -607.0 131.9375 -631.375 0
goto_if_false @MK2_2649
goto @MK2_2687

:MK2_2649
if or
  has_object_been_damaged $COFFEE1
  has_object_been_damaged $COFFEE2
  has_object_been_damaged $COFFEE3
  has_object_been_damaged $COFFEE4
goto_if_false @MK2_2566
goto @MK2_2687

:MK2_2687
set_char_obj_kill_player_on_foot $MK2KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL6 kill_player $PLAYER_CHAR

:MK2_2735
wait 0
if and
  $MK2KILL1_PICKUP_HAD == 0
  is_char_dead $MK2KILL1
goto_if_false @MK2_2823
remove_blip $MK2KILLPICK1
get_char_coordinates $MK2KILL1 position_to $MK2KILL1_X $MK2KILL1_Y $MK2KILL1_Z
$MK2KILL1_Z -= 1.0
create_pickup $MK2PICKUP1 = create_pickup 1366 type 3 at $MK2KILL1_X $MK2KILL1_Y $MK2KILL1_Z
add_blip_for_pickup $MK2PICK1 = create_marker_above_pickup $MK2PICKUP1
$MK2KILL1_PICKUP_HAD = 1

:MK2_2823
if and
  $MK2KILL2_PICKUP_HAD == 0
  is_char_dead $MK2KILL2
goto_if_false @MK2_2907
remove_blip $MK2KILLPICK2
get_char_coordinates $MK2KILL2 position_to $MK2KILL2_X $MK2KILL2_Y $MK2KILL2_Z
$MK2KILL2_Z -= 1.0
create_pickup $MK2PICKUP2 = create_pickup 1366 type 3 at $MK2KILL2_X $MK2KILL2_Y $MK2KILL2_Z
add_blip_for_pickup $MK2PICK2 = create_marker_above_pickup $MK2PICKUP2
$MK2KILL2_PICKUP_HAD = 1

:MK2_2907
if and
  $MK2KILL6_PICKUP_HAD == 0
  is_char_dead $MK2KILL6
goto_if_false @MK2_2991
remove_blip $MK2KILLPICK6
get_char_coordinates $MK2KILL6 position_to $MK2KILL6_X $MK2KILL6_Y $MK2KILL6_Z
$MK2KILL6_Z -= 1.0
create_pickup $MK2PICKUP6 = create_pickup 1366 type 3 at $MK2KILL6_X $MK2KILL6_Y $MK2KILL6_Z
add_blip_for_pickup $MK2PICK6 = create_marker_above_pickup $MK2PICKUP6
$MK2KILL6_PICKUP_HAD = 1

:MK2_2991
if and
  $MK2KILL4_PICKUP_HAD == 0
  is_char_dead $MK2KILL4
goto_if_false @MK2_3075
remove_blip $MK2KILLPICK4
get_char_coordinates $MK2KILL4 position_to $MK2KILL4_X $MK2KILL4_Y $MK2KILL4_Z
$MK2KILL4_Z -= 1.0
create_pickup $MK2PICKUP4 = create_pickup 1366 type 3 at $MK2KILL4_X $MK2KILL4_Y $MK2KILL4_Z
add_blip_for_pickup $MK2PICK4 = create_marker_above_pickup $MK2PICKUP4
$MK2KILL4_PICKUP_HAD = 1

:MK2_3075
if and
  $MK2KILL5_PICKUP_HAD == 0
  is_char_dead $MK2KILL5
goto_if_false @MK2_3159
remove_blip $MK2KILLPICK5
get_char_coordinates $MK2KILL5 position_to $MK2KILL5_X $MK2KILL5_Y $MK2KILL5_Z
$MK2KILL5_Z -= 1.0
create_pickup $MK2PICKUP5 = create_pickup 1366 type 3 at $MK2KILL5_X $MK2KILL5_Y $MK2KILL5_Z
add_blip_for_pickup $MK2PICK5 = create_marker_above_pickup $MK2PICKUP5
$MK2KILL5_PICKUP_HAD = 1

:MK2_3159
if 
  has_object_been_damaged $COFFEE1
goto_if_false @MK2_3180
remove_blip $COFFEE_BLIP1

:MK2_3180
if 
  has_object_been_damaged $COFFEE2
goto_if_false @MK2_3201
remove_blip $COFFEE_BLIP2

:MK2_3201
if 
  has_object_been_damaged $COFFEE3
goto_if_false @MK2_3222
remove_blip $COFFEE_BLIP3

:MK2_3222
if 
  has_object_been_damaged $COFFEE4
goto_if_false @MK2_3243
remove_blip $COFFEE_BLIP4

:MK2_3243
wait 0
if and
  $MK2KILL1_PICKUP_HAD == 1
  $MK2PICKUPCOL1 == 0
goto_if_false @MK2_3302
if 
  has_pickup_been_collected $MK2PICKUP1
goto_if_false @MK2_3302
$MK2PICKUPCOL1 = 1
$MK2NUM -= 1

:MK2_3302
wait 0
if and
  $MK2KILL2_PICKUP_HAD == 1
  $MK2PICKUPCOL2 == 0
goto_if_false @MK2_3361
if 
  has_pickup_been_collected $MK2PICKUP2
goto_if_false @MK2_3361
$MK2PICKUPCOL2 = 1
$MK2NUM -= 1

:MK2_3361
wait 0
if and
  $MK2KILL6_PICKUP_HAD == 1
  $MK2PICKUPCOL6 == 0
goto_if_false @MK2_3420
if 
  has_pickup_been_collected $MK2PICKUP6
goto_if_false @MK2_3420
$MK2PICKUPCOL6 = 1
$MK2NUM -= 1

:MK2_3420
wait 0
if and
  $MK2KILL4_PICKUP_HAD == 1
  $MK2PICKUPCOL4 == 0
goto_if_false @MK2_3479
if 
  has_pickup_been_collected $MK2PICKUP4
goto_if_false @MK2_3479
$MK2PICKUPCOL4 = 1
$MK2NUM -= 1

:MK2_3479
wait 0
if and
  $MK2KILL5_PICKUP_HAD == 1
  $MK2PICKUPCOL5 == 0
goto_if_false @MK2_3538
if 
  has_pickup_been_collected $MK2PICKUP5
goto_if_false @MK2_3538
$MK2PICKUPCOL5 = 1
$MK2NUM -= 1

:MK2_3538
wait 0
if 
  is_char_dead $MK2KILL3
goto_if_false @MK2_3570
remove_blip $MK2KILLPICK3
goto @MK2_3570

:MK2_3570
if 
  $MK2_1 == 0
goto_if_false @MK2_3703
if 
  is_char_dead $MK2KILL2
goto_if_false @MK2_3703
if 
  not is_char_dead $MK2KILL3
goto_if_false @MK2_3677
set_char_obj_no_obj $MK2KILL3
set_char_running $MK2KILL3 wander_state_to 1
if 
  not is_car_dead $MK2CAR1
goto_if_false @MK2_3677
set_char_obj_enter_car_as_driver $MK2KILL3 go_to_and_drive_car $MK2CAR1
$MK2_1 = 1
$MK2KILL3_OPEN = 1
goto @MK2_3703

:MK2_3677
remove_blip $MK2KILLPICK3
$MK2KILL3_OPEN = 0
$MK2_SAY = 1
goto @MK2_3992

:MK2_3703
if 
  $MK2KILL3_OPEN == 1
goto_if_false @MK2_3992
if 
  not is_char_dead $MK2KILL3
goto_if_false @MK2_3826
set_char_obj_enter_car_as_driver $MK2KILL3 go_to_and_drive_car $MK2CAR1
if 
  $MK2_2 == 0
goto_if_false @MK2_3826
if 
  is_char_in_car $MK2KILL3 in_car $MK2CAR1
goto_if_false @MK2_3826
set_car_driving_style $MK2CAR1 traffic_behavior_to 2
set_car_mission $MK2CAR1 driver_behaviour_to 1
set_car_cruise_speed $MK2CAR1 max_speed_to 20.0
print_now 'MK2_9' time 5000 1
$MK2_2 = 1

:MK2_3826
if 
  $MK2_SAY == 0
goto_if_false @MK2_3931
if 
  not is_char_dead $MK2KILL3
goto_if_false @MK2_3931
if and
  not is_char_dead $MK2KILL3
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $MK2KILL3 radius 80.0 80.0 80.0
goto_if_false @MK2_3931
add_pager_message 'MK2_11' 140 10 2
$MK2_SAY = 1
$MK2_RUN = 1
delete_car $MK2CAR1

:MK2_3931
if 
  $MK2_SAY == 0
goto_if_false @MK2_3992
if 
  is_char_dead $MK2KILL3
goto_if_false @MK2_3992
print_now 'MK2_10' time 5000 1
remove_blip $MK2KILLPICK3
$MK2_SAY = 1

:MK2_3992
if and
  $MK2_SAY == 1
  has_object_been_damaged $COFFEE1
  has_object_been_damaged $COFFEE2
  has_object_been_damaged $COFFEE3
  has_object_been_damaged $COFFEE4
  $MK2NUM == 3
goto_if_false @MK2_2735
remove_blip $MK2KILLPICK1
remove_blip $MK2KILLPICK2
remove_blip $MK2KILLPICK3
remove_blip $MK2KILLPICK4
remove_blip $MK2KILLPICK5
remove_blip $MK2KILLPICK6
remove_blip $COFFEE_BLIP1
remove_blip $COFFEE_BLIP2
remove_blip $COFFEE_BLIP3
remove_blip $COFFEE_BLIP4
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
create_car $MK2CAR2 = create_car 138 at -25.25 -859.5 26.0
create_car $MK2CAR3 = create_car 138 at -74.25 -860.0 15.9375
create_char $MK2KILL1 = create_actor 12 27 at -63.3125 -863.1875 16.0
create_char $MK2KILL2 = create_actor 12 28 at -49.25 -854.5 18.5
create_char $MK2KILL3 = create_actor 12 27 at -67.6875 -869.3125 15.875
create_char $MK2KILL4 = create_actor 12 28 at -79.9375 -854.5625 15.9375
create_char $MK2KILL5 = create_actor 12 27 at -25.5 -868.5625 26.0
create_char $MK2NPC3 = create_actor 12 25 at -60.125 -860.6875 16.375
create_char $MK2NPC4 = create_actor 12 24 at -61.0 -858.0 16.3125
set_chars_chatting $MK2KILL1 $MK2NPC3 converse_in 9999999
set_char_heading $MK2KILL1 z_angle_to 0.0
set_char_heading $MK2KILL2 z_angle_to 90.0
set_char_heading $MK2KILL3 z_angle_to 30.0
set_char_heading $MK2KILL4 z_angle_to 90.0
set_char_heading $MK2KILL5 z_angle_to 30.0
set_car_heading $MK2CAR2 z_angle_to 0.0
set_car_heading $MK2CAR3 z_angle_to 180.0
add_blip_for_char $MK2KILLPICK1 = create_marker_above_actor $MK2KILL1
add_blip_for_char $MK2KILLPICK2 = create_marker_above_actor $MK2KILL2
add_blip_for_char $MK2KILLPICK3 = create_marker_above_actor $MK2KILL3
add_blip_for_char $MK2KILLPICK4 = create_marker_above_actor $MK2KILL4
add_blip_for_char $MK2KILLPICK5 = create_marker_above_actor $MK2KILL5
change_blip_colour $MK2KILLPICK1 color_to 0
change_blip_colour $MK2KILLPICK2 color_to 0
change_blip_colour $MK2KILLPICK3 color_to 0
change_blip_colour $MK2KILLPICK4 color_to 0
change_blip_colour $MK2KILLPICK5 color_to 0
give_weapon_to_char $MK2KILL1 weapon 5 ammo 999
give_weapon_to_char $MK2KILL2 weapon 5 ammo 999
give_weapon_to_char $MK2KILL3 weapon 5 ammo 999
give_weapon_to_char $MK2KILL4 weapon 5 ammo 999
give_weapon_to_char $MK2KILL5 weapon 5 ammo 999
give_weapon_to_char $MK2NPC4 weapon 4 ammo 999
$MK2KILL1_PICKUP_HAD = 0
$MK2KILL2_PICKUP_HAD = 0
$MK2KILL3_PICKUP_HAD = 0
$MK2KILL4_PICKUP_HAD = 0
$MK2KILL5_PICKUP_HAD = 0
$MK2PICKUPCOL1 = 0
$MK2PICKUPCOL2 = 0
$MK2PICKUPCOL3 = 0
$MK2PICKUPCOL4 = 0
$MK2PICKUPCOL5 = 0
$MK2NPC3_PICKUP_HAD = 0
$MK2NPC3COL3 = 0
wait 0
if 
  $MK2_RUN == 1
goto_if_false @MK2_4600
add_armour_to_char $MK2KILL1 armour_to 100
add_armour_to_char $MK2KILL2 armour_to 100
add_armour_to_char $MK2KILL3 armour_to 100
add_armour_to_char $MK2KILL4 armour_to 100
add_armour_to_char $MK2KILL5 armour_to 100

:MK2_4600
wait 0
if or
  not is_char_health_greater $MK2KILL1 health > 99
  not is_char_health_greater $MK2KILL2 health > 99
  not is_char_health_greater $MK2KILL3 health > 99
  not is_char_health_greater $MK2KILL4 health > 99
  not is_char_health_greater $MK2KILL5 health > 99
  not is_char_health_greater $MK2NPC3 health > 99
  not is_char_health_greater $MK2NPC4 health > 99
goto_if_false @MK2_4671
goto @MK2_4733

:MK2_4671
if or
  is_player_shooting_in_area $PLAYER_CHAR shooting_in_area 5.8125 -831.3125 -100.375 -899.3125 0
  is_player_in_area_3d $PLAYER_CHAR 0 -72.125 -867.0625 15.875 -22.6875 -850.3125 30.1875
goto_if_false @MK2_4600
goto @MK2_4733

:MK2_4733
set_char_obj_kill_player_on_foot $MK2KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK2KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MK2KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MK2KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MK2NPC4 kill_player $PLAYER_CHAR
set_char_obj_flee_player_on_foot_always $MK2NPC3 avoid_player $PLAYER_CHAR

:MK2_4789
wait 0
if and
  $MK2KILL1_PICKUP_HAD == 0
  is_char_dead $MK2KILL1
goto_if_false @MK2_4877
remove_blip $MK2KILLPICK1
get_char_coordinates $MK2KILL1 position_to $MK2KILL1_X $MK2KILL1_Y $MK2KILL1_Z
$MK2KILL1_Z -= 1.0
create_pickup $MK2PICKUP1 = create_pickup 1366 type 3 at $MK2KILL1_X $MK2KILL1_Y $MK2KILL1_Z
add_blip_for_pickup $MK2PICK1 = create_marker_above_pickup $MK2PICKUP1
$MK2KILL1_PICKUP_HAD = 1

:MK2_4877
if and
  $MK2KILL2_PICKUP_HAD == 0
  is_char_dead $MK2KILL2
goto_if_false @MK2_4961
remove_blip $MK2KILLPICK2
get_char_coordinates $MK2KILL2 position_to $MK2KILL2_X $MK2KILL2_Y $MK2KILL2_Z
$MK2KILL2_Z -= 1.0
create_pickup $MK2PICKUP2 = create_pickup 1366 type 3 at $MK2KILL2_X $MK2KILL2_Y $MK2KILL2_Z
add_blip_for_pickup $MK2PICK2 = create_marker_above_pickup $MK2PICKUP2
$MK2KILL2_PICKUP_HAD = 1

:MK2_4961
if and
  $MK2KILL3_PICKUP_HAD == 0
  is_char_dead $MK2KILL3
goto_if_false @MK2_5045
remove_blip $MK2KILLPICK3
get_char_coordinates $MK2KILL3 position_to $MK2KILL3_X $MK2KILL3_Y $MK2KILL3_Z
$MK2KILL3_Z -= 1.0
create_pickup $MK2PICKUP3 = create_pickup 1366 type 3 at $MK2KILL3_X $MK2KILL3_Y $MK2KILL3_Z
add_blip_for_pickup $MK2PICK3 = create_marker_above_pickup $MK2PICKUP3
$MK2KILL3_PICKUP_HAD = 1

:MK2_5045
if and
  $MK2NPC3_PICKUP_HAD == 0
  is_char_dead $MK2NPC3
goto_if_false @MK2_5115
get_char_coordinates $MK2NPC3 position_to $MK2NPC3_X $MK2NPC3_Y $MK2NPC3_Z
$MK2KILL3_Z -= 1.0
create_pickup $MK2MONEY = create_pickup #BRIEFCASE type 3 at $MK2NPC3_X $MK2NPC3_Y $MK2NPC3_Z
$MK2NPC3_PICKUP_HAD = 1

:MK2_5115
if and
  $MK2KILL4_PICKUP_HAD == 0
  is_char_dead $MK2KILL4
goto_if_false @MK2_5143
remove_blip $MK2KILLPICK4

:MK2_5143
if and
  $MK2KILL5_PICKUP_HAD == 0
  is_char_dead $MK2KILL5
goto_if_false @MK2_5171
remove_blip $MK2KILLPICK5

:MK2_5171
wait 0
if and
  $MK2KILL1_PICKUP_HAD == 1
  $MK2PICKUPCOL1 == 0
goto_if_false @MK2_5230
if 
  has_pickup_been_collected $MK2PICKUP1
goto_if_false @MK2_5230
$MK2PICKUPCOL1 = 1
$MK2NUM -= 1

:MK2_5230
wait 0
if and
  $MK2KILL2_PICKUP_HAD == 1
  $MK2PICKUPCOL2 == 0
goto_if_false @MK2_5289
if 
  has_pickup_been_collected $MK2PICKUP2
goto_if_false @MK2_5289
$MK2PICKUPCOL2 = 1
$MK2NUM -= 1

:MK2_5289
wait 0
if and
  $MK2KILL3_PICKUP_HAD == 1
  $MK2PICKUPCOL3 == 0
goto_if_false @MK2_5348
if 
  has_pickup_been_collected $MK2PICKUP3
goto_if_false @MK2_5348
$MK2PICKUPCOL3 = 1
$MK2NUM -= 1

:MK2_5348
wait 0
if and
  $MK2NPC3_PICKUP_HAD == 1
  $MK2NPC3COL3 == 0
goto_if_false @MK2_5408
if 
  has_pickup_been_collected $MK2MONEY
goto_if_false @MK2_5408
add_score $PLAYER_CHAR money += 2000
$MK2NPC3COL3 = 1

:MK2_5408
if 
  $MK2NUM == 0
goto_if_false @MK2_4789
remove_blip $MK2KILLPICK1
remove_blip $MK2KILLPICK2
remove_blip $MK2KILLPICK3
remove_blip $MK2KILLPICK4
remove_blip $MK2KILLPICK5
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 580.1875 -777.125 1.75 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MK2SPHERE = create_sphere 580.1875 -777.125 1.75 2.5
add_pager_message 'MK2_12' 140 10 2
clear_onscreen_counter $MK2NUM

:MK2_5515
wait 10
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 580.1875 -777.125 1.75 radius 2.0 2.0 2.0
goto_if_false @MK2_5515
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
remove_sphere $MK2SPHERE
switch_widescreen 1
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 578.8125 -773.0625 7.75 rotation 0.0 0.0 0.0
point_camera_at_point 588.5625 -766.5 0.75 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 585.9375 -770.1875 0.75
create_char $KEN_CHAR = create_actor 21 26 at 588.5625 -766.5 0.75
set_char_heading $KEN_CHAR z_angle_to 150.0
set_player_heading $PLAYER_CHAR z_angle_to 330.0
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK2_5768
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK2_5768
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3500
print_now 'MK2_13' time 5000 1
wait 5000

:MK2_5768
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $KEN_CHAR
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 508.8125 -750.5625 -100.0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$4521 = 1
clear_wanted_level $PLAYER_CHAR
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MK2_2'
start_new_script @TWENT2 
return 

:MK2_5926
print_big 'M_FAIL' 6000 ms 1
$4521 = 0
change_blip_display $KEN display 3
return 

:MK2_5957
set_time_scale 1.0
$ONMISSION = 0
remove_pickup $MK2PICKUP1
remove_pickup $MK2PICKUP2
remove_pickup $MK2PICKUP3
remove_pickup $MK2PICKUP4
remove_pickup $MK2PICKUP5
remove_pickup $MK2MONEY
remove_blip $TAXI_PICKUP
remove_blip $MK2KILLPICK1
remove_blip $MK2KILLPICK2
remove_blip $MK2KILLPICK3
remove_blip $MK2KILLPICK4
remove_blip $MK2KILLPICK5
remove_blip $MK2KILLPICK6
remove_blip $MK2RUNCARPICK
remove_sphere $MK2SPHERE
clear_onscreen_timer $MK2NUM
clear_onscreen_timer $MK2_TIME
remove_char_elegantly $MK2KILL1
remove_char_elegantly $MK2KILL2
remove_char_elegantly $MK2KILL3
remove_char_elegantly $MK2KILL4
remove_char_elegantly $MK2KILL5
clear_onscreen_counter $MK2NUM
unload_special_character 1
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 138
mark_model_as_no_longer_needed #COFFEE
$MK2CAR1 = -1
$MK2CAR2 = -1
$MK2CAR3 = -1
$MK2CAR4 = -1
$MK2CAR5 = -1
$MK2CAR6 = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 21---------------
// Originally: Drive Misty For Me

:MK3
gosub @MK3_36
if 
  has_deatharrest_been_executed 
goto_if_false @MK3_27
gosub @MK3_5079

:MK3_27
gosub @MK3_5112
terminate_this_script 

:MK3_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MK3'
request_model 20
request_model 21
request_model 11
request_model 12
request_model 14
request_model 19
request_model 138
request_model 142
load_special_character 1 'EIGHT'
load_special_character 2 'BOMBER'
load_special_character 3 'COL3'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'KING'
do_fade 0 1000
print_big 'MK3_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 578.8125 -773.0625 7.75 rotation 0.0 0.0 0.0
point_camera_at_point 588.5625 -766.5 0.75 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 585.9375 -770.1875 0.75
create_char $KEN_CHAR = create_actor 21 26 at 588.5625 -766.5 0.75
set_char_heading $KEN_CHAR z_angle_to 150.0
set_player_heading $PLAYER_CHAR z_angle_to 330.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:MK3_309
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MK3_337
goto @MK3_685

:MK3_337
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MK3_309
clear_help 
load_mission_audio 'YD2_C'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MK3_3' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK3_409
wait 0
if 
  TIMERA >= 5200
goto_if_false @MK3_409
print_now 'MK3_4' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK3_457
wait 0
if 
  TIMERA >= 14030
goto_if_false @MK3_457
print_now 'MK3_5' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK3_505
wait 0
if 
  TIMERA >= 20250
goto_if_false @MK3_505
print_now 'MK3_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK3_553
wait 0
if 
  TIMERA >= 28130
goto_if_false @MK3_553
print_now 'MK3_7' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK3_601
wait 0
if 
  TIMERA >= 35150
goto_if_false @MK3_601
print_now 'MK3_8' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK3_651
wait 0
if 
  TIMERA >= 41090
goto_if_false @MK3_651
clear_prints 
wait 1000
clear_mission_audio 

:MK3_685
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $KEN_CHAR
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 508.8125 -750.5625 -100.0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at -231.5625 -130.5625 14.375 color 5 display 2
change_blip_scale $TAXI_PICKUP1 size 3
unload_special_character 1
load_special_character 1 'COLROB'

:MK3_815
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 -231.5625 -130.5625 14.375 radius 1.0 1.0 1.0
goto_if_false @MK3_815
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
remove_blip $TAXI_PICKUP1
do_fade 0 1000
wait 1000
force_weather_now 0
create_car $MK3NPCCAR1 = create_car 142 at -290.5 -110.3125 0.0
create_car $MK3NPCCAR2 = create_car 142 at -297.1875 -130.3125 0.0
create_car $MK3NPCCAR3 = create_car 142 at -283.25 -136.125 0.0
set_car_heading $MK3NPCCAR1 z_angle_to 90.0
set_car_heading $MK3NPCCAR2 z_angle_to 360.0
set_car_heading $MK3NPCCAR3 z_angle_to 350.0
create_char $MK3KILL1 = create_actor 21 20 at -293.3125 -165.5 1.375
create_char $MK3KILL2 = create_actor 21 21 at -301.3125 -140.5625 1.3125
create_char $MK3KILL3 = create_actor 21 20 at -302.25 -118.9375 1.3125
create_char $MK3KILL4 = create_actor 21 21 at -302.5 -105.8125 1.3125
create_char $MK3KILL5 = create_actor 21 20 at -281.625 -160.625 1.375
create_char $MK3KILL6 = create_actor 21 21 at -264.4375 -153.875 4.0625
create_char $MK3KILL7 = create_actor 21 20 at -243.0 -181.1875 12.875
create_char $MK3KILL8 = create_actor 21 20 at -252.5 -165.9375 6.5625
create_char $MK3KILL9 = create_actor 21 21 at -268.0 -130.0 4.0625
create_char $MK3KILL10 = create_actor 21 20 at -269.125 -104.125 4.0625
create_char $MK3KILL11 = create_actor 21 21 at -307.25 -107.5625 1.0625
create_char $MK3KILL12 = create_actor 21 20 at -307.75 -115.25 3.875
create_char $MK3KILL13 = create_actor 21 21 at -312.125 -133.6875 3.875
create_char $MK3KILL14 = create_actor 21 27 at -291.9375 -110.1875 1.0
create_char $MK3KILL15 = create_actor 21 27 at -283.0 -134.5 1.0
create_char $MK3KILL16 = create_actor 21 11 at -309.875 -104.1875 7.6875
create_char $MK3KILL17 = create_actor 21 12 at -312.3125 -107.8125 7.6875
create_char $MK3KILL18 = create_actor 21 14 at -313.125 -114.375 7.6875
create_char $MK3KILL19 = create_actor 21 26 at -316.4375 -112.5 7.6875
create_char $MK3KILL20 = create_actor 21 28 at -312.3125 -118.9375 6.3125
set_char_stay_in_same_place $MK3KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL10 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL12 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL14 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL15 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL16 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL17 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL18 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL19 maintain_position_when_attacked 1
set_char_stay_in_same_place $MK3KILL20 maintain_position_when_attacked 1
give_weapon_to_char $MK3KILL1 weapon 5 ammo 999
give_weapon_to_char $MK3KILL2 weapon 5 ammo 999
give_weapon_to_char $MK3KILL3 weapon 3 ammo 999
give_weapon_to_char $MK3KILL4 weapon 5 ammo 999
give_weapon_to_char $MK3KILL5 weapon 5 ammo 999
give_weapon_to_char $MK3KILL6 weapon 3 ammo 999
give_weapon_to_char $MK3KILL7 weapon 5 ammo 999
give_weapon_to_char $MK3KILL8 weapon 5 ammo 999
give_weapon_to_char $MK3KILL9 weapon 3 ammo 999
give_weapon_to_char $MK3KILL10 weapon 5 ammo 999
give_weapon_to_char $MK3KILL11 weapon 5 ammo 999
give_weapon_to_char $MK3KILL12 weapon 5 ammo 999
give_weapon_to_char $MK3KILL13 weapon 3 ammo 999
give_weapon_to_char $MK3KILL14 weapon 3 ammo 999
give_weapon_to_char $MK3KILL15 weapon 3 ammo 999
set_chars_chatting $MK3KILL16 $MK3KILL17 converse_in 9999999
set_chars_chatting $MK3KILL18 $MK3KILL19 converse_in 9999999
set_fixed_camera_position -253.0 -153.4375 20.3125 rotation 0.0 0.0 0.0
point_camera_at_char $MK3KILL20 mode 15 switchstyle 2
do_fade 1 1000
wait 4000
set_fixed_camera_position -321.4375 -117.3125 12.3125 rotation 0.0 0.0 0.0
point_camera_at_char $MK3KILL17 mode 15 switchstyle 2
wait 3000
restore_camera_jumpcut 
change_blip_scale $TAXI_PICKUP2 size 3
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
print_now 'MK3_9' time 3000 1
add_blip_for_char $MK3KILLPICK1 = create_marker_above_actor $MK3KILL19
add_blip_for_char $MK3KILLPICK2 = create_marker_above_actor $MK3KILL20
set_char_obj_kill_player_on_foot $MK3KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL10 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL15 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL16 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL17 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL18 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL19 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK3KILL20 kill_player $PLAYER_CHAR
give_weapon_to_char $MK3KILL16 weapon 4 ammo 999
give_weapon_to_char $MK3KILL17 weapon 4 ammo 999
give_weapon_to_char $MK3KILL18 weapon 5 ammo 999
give_weapon_to_char $MK3KILL19 weapon 4 ammo 999
give_weapon_to_char $MK3KILL20 weapon 5 ammo 999

:MK3_1974
wait 0
if 
  is_char_dead $MK3KILL19
goto_if_false @MK3_2001
change_blip_display $MK3KILLPICK1 display 0

:MK3_2001
  is_char_dead $MK3KILL20
goto_if_false @MK3_2020
change_blip_display $MK3KILLPICK2 display 0

:MK3_2020
if and
  is_char_dead $MK3KILL19
  is_char_dead $MK3KILL20
goto_if_false @MK3_1974
remove_blip $MK3KILLPICK1
remove_blip $MK3KILLPICK2
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
create_car $MK3CAR1 = create_car 142 at -330.0 -236.5 0.0
create_char_inside_car $KEN_CHAR = create_actor 21 19 in_car $MK3CAR1
set_car_heading $MK3CAR1 z_angle_to 360.0
change_car_colour $MK3CAR1 color_to 71 73
set_fixed_camera_position -343.375 -121.1875 1.75 rotation 0.0 0.0 0.0
point_camera_at_car $MK3CAR1 mode 15 switchstyle 2
boat_goto_coords $MK3CAR1 drive_to -323.9375 -99.9375 0.0
set_boat_cruise_speed $MK3CAR1 speed_to 48.0
wait 1000
do_fade 1 1000
wait 4000
do_fade 0 500
wait 500
restore_camera_jumpcut 
set_car_coordinates $MK3CAR1 at -323.9375 -99.9375 0.0
set_car_heading $MK3CAR1 z_angle_to 180.0
set_car_health $MK3CAR1 health_to 1000
set_car_proofs $MK3CAR1 immunities 1 0 1 0 0
anchor_boat $MK3CAR1 anchor 1
set_car_heavy $MK3CAR1 very_heavy 1
set_player_coordinates $PLAYER_CHAR at -323.9375 -100.25 1.0
give_weapon_to_player $PLAYER_CHAR weapon 6 ammo 2000
set_current_player_weapon $PLAYER_CHAR armed_weapon_to 6
boat_stop $MK3CAR1
anchor_boat $MK3CAR1 anchor 1
wait 1000
do_fade 1 500
wait 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
boat_goto_coords $MK3CAR1 drive_to -386.0 -148.5 0.0
set_boat_cruise_speed $MK3CAR1 speed_to 15.0
print_help 'MK3_12'
print_now 'MK3_12' time 6000 1

:MK3_2379
wait 0
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  locate_car_3d $MK3CAR1 0 -386.0 -149.5 0.0 radius 4.0 4.0 4.0
goto_if_false @MK3_2379
remove_blip $MK3KILLCARPICK2
remove_blip $MK3KILLCARPICK3
remove_blip $MK3KILLCARPICK4
boat_goto_coords $MK3CAR1 drive_to -255.0625 -306.3125 0.0
create_car $MK3CAR2 = create_car 142 at -373.625 37.25 0.0
create_car $MK3CAR3 = create_car 142 at -273.25 -33.75 0.0
create_car $MK3CAR4 = create_car 142 at -387.4375 -336.4375 0.0
create_char_inside_car $MK3BOATKILL2 = create_actor 21 27 in_car $MK3CAR2
create_char_inside_car $MK3BOATKILL3 = create_actor 21 27 in_car $MK3CAR3
create_char_inside_car $MK3BOATKILL4 = create_actor 21 27 in_car $MK3CAR4
set_boat_cruise_speed $MK3CAR2 speed_to 30.0
set_boat_cruise_speed $MK3CAR3 speed_to 30.0
set_boat_cruise_speed $MK3CAR4 speed_to 30.0
add_blip_for_car $MK3KILLCARPICK2 = create_marker_above_car $MK3CAR2
add_blip_for_car $MK3KILLCARPICK3 = create_marker_above_car $MK3CAR3
add_blip_for_car $MK3KILLCARPICK4 = create_marker_above_car $MK3CAR4
set_car_health $MK3CAR2 health_to 2000
set_car_health $MK3CAR3 health_to 2000
set_car_health $MK3CAR4 health_to 1000

:MK3_2623
wait 0
if 
  is_car_dead $MK3CAR2
goto_if_false @MK3_2650
change_blip_display $MK3KILLCARPICK2 display 0

:MK3_2650
if 
  is_car_dead $MK3CAR3
goto_if_false @MK3_2673
change_blip_display $MK3KILLCARPICK3 display 0

:MK3_2673
if 
  is_car_dead $MK3CAR4
goto_if_false @MK3_2696
change_blip_display $MK3KILLCARPICK4 display 0

:MK3_2696
get_car_coordinates $MK3CAR1 position_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  not is_car_dead $MK3CAR2
goto_if_false @MK3_2786
boat_goto_coords $MK3CAR2 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR2 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_2786
if 
  not is_car_dead $MK3CAR3
goto_if_false @MK3_2846
boat_goto_coords $MK3CAR3 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR3 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_2846
if 
  not is_car_dead $MK3CAR4
goto_if_false @MK3_2906
boat_goto_coords $MK3CAR4 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR4 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_2906
if 
  locate_car_3d $MK3CAR1 0 -255.0625 -306.3125 0.0 radius 4.0 4.0 4.0
goto_if_false @MK3_2623
remove_blip $MK3KILLCARPICK2
remove_blip $MK3KILLCARPICK3
remove_blip $MK3KILLCARPICK4
boat_goto_coords $MK3CAR1 drive_to -416.1875 -645.9375 0.0
create_car $MK3CAR2 = create_car 142 at -365.875 -343.0 0.0
create_car $MK3CAR3 = create_car 142 at -305.625 -190.8125 0.0
create_car $MK3CAR4 = create_car 142 at -344.3125 -251.875 0.0
create_char_inside_car $MK3BOATKILL2 = create_actor 21 27 in_car $MK3CAR2
create_char_inside_car $MK3BOATKILL3 = create_actor 21 27 in_car $MK3CAR3
create_char_inside_car $MK3BOATKILL4 = create_actor 21 27 in_car $MK3CAR4
set_boat_cruise_speed $MK3CAR2 speed_to 30.0
set_boat_cruise_speed $MK3CAR3 speed_to 30.0
set_boat_cruise_speed $MK3CAR4 speed_to 25.0
add_blip_for_car $MK3KILLCARPICK2 = create_marker_above_car $MK3CAR2
add_blip_for_car $MK3KILLCARPICK3 = create_marker_above_car $MK3CAR3
add_blip_for_car $MK3KILLCARPICK4 = create_marker_above_car $MK3CAR4
set_car_health $MK3CAR2 health_to 1000
set_car_health $MK3CAR3 health_to 2000
set_car_health $MK3CAR4 health_to 2000

:MK3_3130
wait 0
if 
  is_car_dead $MK3CAR2
goto_if_false @MK3_3157
change_blip_display $MK3KILLCARPICK2 display 0

:MK3_3157
if 
  is_car_dead $MK3CAR3
goto_if_false @MK3_3180
change_blip_display $MK3KILLCARPICK3 display 0

:MK3_3180
if 
  is_car_dead $MK3CAR4
goto_if_false @MK3_3203
change_blip_display $MK3KILLCARPICK4 display 0

:MK3_3203
get_car_coordinates $MK3CAR1 position_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  not is_car_dead $MK3CAR2
goto_if_false @MK3_3293
boat_goto_coords $MK3CAR2 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR2 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_3293
if 
  not is_car_dead $MK3CAR3
goto_if_false @MK3_3353
boat_goto_coords $MK3CAR3 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR3 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_3353
if 
  not is_car_dead $MK3CAR4
goto_if_false @MK3_3413
boat_goto_coords $MK3CAR4 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR4 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_3413
if 
  locate_car_3d $MK3CAR1 0 -416.1875 -645.9375 0.0 radius 4.0 4.0 4.0
goto_if_false @MK3_3130
remove_blip $MK3KILLCARPICK2
remove_blip $MK3KILLCARPICK3
remove_blip $MK3KILLCARPICK4
boat_goto_coords $MK3CAR1 drive_to -293.8125 -998.875 0.0
create_car $MK3CAR2 = create_car 142 at -485.6875 -786.8125 0.0
create_car $MK3CAR3 = create_car 142 at -383.4375 -487.3125 0.0
create_car $MK3CAR4 = create_car 142 at -262.1875 -747.625 0.0
create_char_inside_car $MK3BOATKILL2 = create_actor 21 27 in_car $MK3CAR2
create_char_inside_car $MK3BOATKILL3 = create_actor 21 27 in_car $MK3CAR3
create_char_inside_car $MK3BOATKILL4 = create_actor 21 27 in_car $MK3CAR4
set_boat_cruise_speed $MK3CAR2 speed_to 30.0
set_boat_cruise_speed $MK3CAR3 speed_to 30.0
set_boat_cruise_speed $MK3CAR4 speed_to 25.0
add_blip_for_car $MK3KILLCARPICK2 = create_marker_above_car $MK3CAR2
add_blip_for_car $MK3KILLCARPICK3 = create_marker_above_car $MK3CAR3
add_blip_for_car $MK3KILLCARPICK4 = create_marker_above_car $MK3CAR4
set_car_health $MK3CAR2 health_to 2000
set_car_health $MK3CAR3 health_to 2000
set_car_health $MK3CAR4 health_to 2000

:MK3_3637
wait 0
if 
  is_car_dead $MK3CAR2
goto_if_false @MK3_3664
change_blip_display $MK3KILLCARPICK2 display 0

:MK3_3664
if 
  is_car_dead $MK3CAR3
goto_if_false @MK3_3687
change_blip_display $MK3KILLCARPICK3 display 0

:MK3_3687
if 
  is_car_dead $MK3CAR4
goto_if_false @MK3_3710
change_blip_display $MK3KILLCARPICK4 display 0

:MK3_3710
get_car_coordinates $MK3CAR1 position_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  not is_car_dead $MK3CAR2
goto_if_false @MK3_3800
boat_goto_coords $MK3CAR2 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR2 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_3800
if 
  not is_car_dead $MK3CAR3
goto_if_false @MK3_3860
boat_goto_coords $MK3CAR3 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR3 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_3860
if 
  not is_car_dead $MK3CAR4
goto_if_false @MK3_3920
boat_goto_coords $MK3CAR4 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR4 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_3920
if 
  locate_car_3d $MK3CAR1 0 -293.8125 -998.875 0.0 radius 4.0 4.0 4.0
goto_if_false @MK3_3637
remove_blip $MK3KILLCARPICK2
remove_blip $MK3KILLCARPICK3
remove_blip $MK3KILLCARPICK4
boat_goto_coords $MK3CAR1 drive_to -469.75 -1465.625 0.0
create_car $MK3CAR2 = create_car 142 at -462.0 -886.5 0.0
create_car $MK3CAR3 = create_car 142 at -285.4375 -1290.438 2.5
create_car $MK3CAR4 = create_car 142 at -400.75 -1156.875 0.0
create_char_inside_car $MK3BOATKILL2 = create_actor 21 27 in_car $MK3CAR2
create_char_inside_car $MK3BOATKILL3 = create_actor 21 27 in_car $MK3CAR3
create_char_inside_car $MK3BOATKILL4 = create_actor 21 27 in_car $MK3CAR4
set_boat_cruise_speed $MK3CAR2 speed_to 30.0
set_boat_cruise_speed $MK3CAR3 speed_to 30.0
set_boat_cruise_speed $MK3CAR4 speed_to 30.0
add_blip_for_car $MK3KILLCARPICK2 = create_marker_above_car $MK3CAR2
add_blip_for_car $MK3KILLCARPICK3 = create_marker_above_car $MK3CAR3
add_blip_for_car $MK3KILLCARPICK4 = create_marker_above_car $MK3CAR4
set_car_health $MK3CAR2 health_to 1500
set_car_health $MK3CAR3 health_to 2000
set_car_health $MK3CAR4 health_to 2000

:MK3_4144
wait 0
if 
  is_car_dead $MK3CAR2
goto_if_false @MK3_4171
change_blip_display $MK3KILLCARPICK2 display 0

:MK3_4171
if 
  is_car_dead $MK3CAR3
goto_if_false @MK3_4194
change_blip_display $MK3KILLCARPICK3 display 0

:MK3_4194
if 
  is_car_dead $MK3CAR4
goto_if_false @MK3_4217
change_blip_display $MK3KILLCARPICK4 display 0

:MK3_4217
get_car_coordinates $MK3CAR1 position_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  not is_car_dead $MK3CAR2
goto_if_false @MK3_4307
boat_goto_coords $MK3CAR2 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR2 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_4307
if 
  not is_car_dead $MK3CAR3
goto_if_false @MK3_4367
boat_goto_coords $MK3CAR3 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR3 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_4367
if 
  not is_car_dead $MK3CAR4
goto_if_false @MK3_4427
boat_goto_coords $MK3CAR4 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR4 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_4427
wait 0
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  locate_car_3d $MK3CAR1 0 -469.75 -1465.625 0.0 radius 4.0 4.0 4.0
goto_if_false @MK3_4144
boat_goto_coords $MK3CAR1 drive_to -339.625 -1475.438 0.0

:MK3_4497
wait 0
if 
  is_car_dead $MK3CAR2
goto_if_false @MK3_4524
change_blip_display $MK3KILLCARPICK2 display 0

:MK3_4524
if 
  is_car_dead $MK3CAR3
goto_if_false @MK3_4547
change_blip_display $MK3KILLCARPICK3 display 0

:MK3_4547
if 
  is_car_dead $MK3CAR4
goto_if_false @MK3_4570
change_blip_display $MK3KILLCARPICK4 display 0

:MK3_4570
get_car_coordinates $MK3CAR1 position_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not is_car_dead $MK3CAR1
goto_if_false @MK3_5079
if 
  not is_car_dead $MK3CAR2
goto_if_false @MK3_4660
boat_goto_coords $MK3CAR2 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR2 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_4660
if 
  not is_car_dead $MK3CAR3
goto_if_false @MK3_4720
boat_goto_coords $MK3CAR3 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR3 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_4720
if 
  not is_car_dead $MK3CAR4
goto_if_false @MK3_4780
boat_goto_coords $MK3CAR4 drive_to $MK3CAR1_X $MK3CAR1_Y $MK3CAR1_Z
if 
  not locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR4 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4940

:MK3_4780
if 
  locate_car_3d $MK3CAR1 1 -339.625 -1475.438 0.0 radius 6.0 6.0 6.0
goto_if_false @MK3_4497
clear_wanted_level $PLAYER_CHAR
$4522 = 1
print_now 'MK3_10' time 3000 1
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 0
wait 3000
print_now 'MK3_10A' time 6000 1
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MK3_2'
start_new_script @TWENT3 
return 

:MK3_4940
if 
  locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR2 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_4992
explode_car $MK3CAR1
explode_car $MK3CAR2
explode_player_head $PLAYER_CHAR
goto @MK3_5079

:MK3_4992
if 
  locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR3 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_5039
explode_car $MK3CAR1
explode_car $MK3CAR3
goto @MK3_5079

:MK3_5039
if 
  locate_char_any_means_car_3d $KEN_CHAR near_car $MK3CAR4 radius 4.0 4.0 4.0 unknown 0
goto_if_false @MK3_5079
explode_car $MK3CAR1
explode_car $MK3CAR4

:MK3_5079
restore_camera_jumpcut 
print_big 'M_FAIL' 6000 ms 1
$4522 = 0
change_blip_display $KEN display 3
return 

:MK3_5112
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP1
remove_blip $MK3KILLCARPICK2
remove_blip $MK3KILLCARPICK3
remove_blip $MK3KILLCARPICK4
remove_blip $MK3KILLPICK1
remove_blip $MK3KILLPICK2
remove_sphere $MK3SPHERE
remove_char_elegantly $KEN_CHAR
remove_char_elegantly $MK3KILL1
remove_char_elegantly $MK3KILL2
remove_char_elegantly $MK3KILL3
remove_char_elegantly $MK3KILL4
remove_char_elegantly $MK3KILL5
remove_char_elegantly $MK3KILL6
remove_char_elegantly $MK3KILL7
remove_char_elegantly $MK3KILL8
remove_char_elegantly $MK3KILL9
remove_char_elegantly $MK3KILL10
remove_char_elegantly $MK3KILL11
remove_char_elegantly $MK3KILL12
remove_char_elegantly $MK3KILL13
remove_char_elegantly $MK3KILL14
remove_char_elegantly $MK3KILL15
remove_char_elegantly $MK3KILL16
remove_char_elegantly $MK3KILL17
remove_char_elegantly $MK3KILL18
remove_char_elegantly $MK3KILL19
remove_char_elegantly $MK3KILL20
unload_special_character 1
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 12
mark_model_as_no_longer_needed 14
mark_model_as_no_longer_needed 19
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 138
mark_model_as_no_longer_needed 142
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 22---------------
// Originally: Pump-Action Pimp

:MK4
gosub @MK4_36
if 
  has_deatharrest_been_executed 
goto_if_false @MK4_27
gosub @MK4_3268

:MK4_27
gosub @MK4_3299
terminate_this_script 

:MK4_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MK4'
request_model 20
request_model 21
request_model 138
load_special_character 1 'EIGHT'
load_special_character 2 'MICKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'KING'
do_fade 0 1000
print_big 'MK4_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
clear_area 1 at 942.5 -347.25 9.9375 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 578.8125 -773.0625 7.75 rotation 0.0 0.0 0.0
point_camera_at_point 588.5625 -766.5 0.75 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 585.9375 -770.1875 0.75
create_char $KEN_CHAR = create_actor 21 26 at 588.5625 -766.5 0.75
set_char_heading $KEN_CHAR z_angle_to 150.0
set_player_heading $PLAYER_CHAR z_angle_to 330.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:MK4_276
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MK4_304
goto @MK4_652

:MK4_304
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MK4_276
clear_help 
load_mission_audio 'YD2_D'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MK4_3' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK4_376
wait 0
if 
  TIMERA >= 3130
goto_if_false @MK4_376
print_now 'MK4_4' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK4_424
wait 0
if 
  TIMERA >= 11130
goto_if_false @MK4_424
print_now 'MK4_5' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK4_472
wait 0
if 
  TIMERA >= 18250
goto_if_false @MK4_472
print_now 'MK4_6' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK4_520
wait 0
if 
  TIMERA >= 25270
goto_if_false @MK4_520
print_now 'MK4_7' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MK4_568
wait 0
if 
  TIMERA >= 33120
goto_if_false @MK4_568
print_now 'MK4_8' time 10000 1
set_char_wait_state $KEN_CHAR anim 19 wait_state_time 3000

:MK4_618
wait 0
if 
  TIMERA >= 40000
goto_if_false @MK4_618
clear_prints 
wait 1000
clear_mission_audio 

:MK4_652
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
delete_char $KEN_CHAR
switch_widescreen 0
give_weapon_to_player $PLAYER_CHAR weapon 7 ammo 5
set_current_player_weapon $PLAYER_CHAR armed_weapon_to 7
set_player_coordinates $PLAYER_CHAR at 508.5 -750.8125 -100.0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 67.9375 -773.375 28.1875 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MK4SPHERE = create_sphere 67.9375 -773.375 28.1875 2.5

:MK4_799
wait 10
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 67.9375 -773.375 28.1875 radius 2.0 2.0 2.0
goto_if_false @MK4_799
remove_sphere $MK4SPHERE
remove_blip $TAXI_PICKUP
$XSKLILL = 0
do_fade 0 1000
wait 1000
create_char $MK4KILL1 = create_actor 21 20 at 68.5625 -609.0 25.9375
create_char $MK4KILL2 = create_actor 21 21 at 76.875 -609.875 25.9375
create_char $MK4KILL3 = create_actor 21 20 at 41.5625 -598.0625 26.0625
create_char $MK4KILL4 = create_actor 21 21 at 109.4375 -587.875 25.8125
create_char $MK4KILL5 = create_actor 21 20 at 90.375 -655.125 28.0
create_char $MK4KILL6 = create_actor 21 21 at 49.0625 -638.8125 28.9375
create_char $MK4KILL7 = create_actor 21 20 at 72.5 -603.4375 25.9375
create_char $MK4KILL8 = create_actor 21 21 at 86.4375 -578.4375 25.875
create_char $MK4KILL9 = create_actor 21 20 at 64.875 -583.5 25.9375
create_char $MK4KILL10 = create_actor 21 21 at 99.9375 -594.0625 26.0
add_blip_for_char $MK4KILLPICK9 = create_marker_above_actor $MK4KILL9
change_blip_colour $MK4KILLPICK9 color_to 0
give_weapon_to_char $MK4KILL1 weapon 5 ammo 999
give_weapon_to_char $MK4KILL2 weapon 5 ammo 999
give_weapon_to_char $MK4KILL3 weapon 5 ammo 999
give_weapon_to_char $MK4KILL4 weapon 5 ammo 999
give_weapon_to_char $MK4KILL5 weapon 5 ammo 999
give_weapon_to_char $MK4KILL6 weapon 5 ammo 999
give_weapon_to_char $MK4KILL7 weapon 5 ammo 999
give_weapon_to_char $MK4KILL8 weapon 5 ammo 999
give_weapon_to_char $MK4KILL9 weapon 5 ammo 999
give_weapon_to_char $MK4KILL10 weapon 5 ammo 999
set_char_heading $MK4KILL1 z_angle_to 180.0
set_char_heading $MK4KILL2 z_angle_to 180.0
set_char_heading $MK4KILL3 z_angle_to 136.0
set_char_heading $MK4KILL4 z_angle_to 264.0
set_char_heading $MK4KILL5 z_angle_to 207.0
set_char_heading $MK4KILL6 z_angle_to 200.0
set_char_heading $MK4KILL7 z_angle_to 180.0
set_char_heading $MK4KILL8 z_angle_to 345.0
set_char_heading $MK4KILL9 z_angle_to 345.0
set_char_heading $MK4KILL10 z_angle_to 245.0
set_char_accuracy $MK4KILL1 weapon_accuracy_to 80
set_char_accuracy $MK4KILL2 weapon_accuracy_to 85
set_char_accuracy $MK4KILL3 weapon_accuracy_to 80
set_char_accuracy $MK4KILL4 weapon_accuracy_to 85
set_char_accuracy $MK4KILL5 weapon_accuracy_to 80
set_char_accuracy $MK4KILL6 weapon_accuracy_to 85
set_char_accuracy $MK4KILL7 weapon_accuracy_to 80
set_char_accuracy $MK4KILL8 weapon_accuracy_to 85
set_char_accuracy $MK4KILL9 weapon_accuracy_to 80
set_char_accuracy $MK4KILL9 weapon_accuracy_to 85
set_char_accuracy $MK4KILL10 weapon_accuracy_to 80
add_armour_to_char $MK4KILL1 armour_to 100
add_armour_to_char $MK4KILL2 armour_to 100
add_armour_to_char $MK4KILL3 armour_to 100
add_armour_to_char $MK4KILL4 armour_to 100
add_armour_to_char $MK4KILL5 armour_to 100
add_armour_to_char $MK4KILL6 armour_to 100
add_armour_to_char $MK4KILL7 armour_to 100
add_armour_to_char $MK4KILL8 armour_to 100
add_armour_to_char $MK4KILL9 armour_to 100
add_armour_to_char $MK4KILL10 armour_to 100
switch_widescreen 1
set_fixed_camera_position 65.75 -628.75 40.0625 rotation 0.0 0.0 0.0
point_camera_at_point 76.875 -609.875 25.9375 switchstyle 2
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 88.5 -588.25 25.9375 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MK4SPHERE = create_sphere 88.5 -588.25 25.9375 1.5
do_fade 1 1000
wait 1000
print_now 'MK4_9' time 6000 1
wait 6000
point_camera_at_point 42.25 -589.1875 36.9375 switchstyle 2
print_now 'MK4_21' time 6000 1
wait 3000
set_fixed_camera_position 46.4375 -582.0 38.5 rotation 0.0 0.0 0.0
point_camera_at_point 72.0 -580.6875 25.9375 switchstyle 2
wait 3000
switch_widescreen 0
restore_camera_jumpcut 
$KILLWALIK = 1
$KILLWALIK2 = 1

:MK4_1592
wait 10
if or
  not is_char_health_greater $MK4KILL1 health > 99
  not is_char_health_greater $MK4KILL2 health > 99
  not is_char_health_greater $MK4KILL3 health > 99
  not is_char_health_greater $MK4KILL4 health > 99
  not is_char_health_greater $MK4KILL5 health > 99
  not is_char_health_greater $MK4KILL6 health > 99
  not is_char_health_greater $MK4KILL7 health > 99
  is_player_shooting_in_area $PLAYER_CHAR shooting_in_area 106.625 -775.75 1.5 -514.3125 0
goto_if_false @MK4_1682
goto @MK4_1819

:MK4_1682
if or
  not is_char_health_greater $MK4KILL8 health > 99
  not is_char_health_greater $MK4KILL9 health > 99
  not is_char_health_greater $MK4KILL10 health > 99
  has_char_spotted_player $MK4KILL1 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL2 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL3 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL4 spotted_player $PLAYER_CHAR
goto_if_false @MK4_1753
goto @MK4_1819

:MK4_1753
if or
  has_char_spotted_player $MK4KILL5 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL6 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL7 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL8 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL9 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MK4KILL10 spotted_player $PLAYER_CHAR
goto_if_false @MK4_1916
goto @MK4_1819

:MK4_1819
set_char_obj_kill_player_on_foot $MK4KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MK4KILL10 kill_player $PLAYER_CHAR
$XSKLILL = 1
remove_blip $MK4KILLPICK9
remove_blip $MK4KILLPICK10

:MK4_1916
wait 10
if 
  $KILLWALIK == 1
goto_if_false @MK4_1986
set_char_obj_goto_coord_on_foot $MK4KILL9 walk_to 115.75 -582.5625
if 
  locate_char_any_means_2d $MK4KILL9 0 115.75 -582.5625 radius 0.5 0.5
goto_if_false @MK4_1986
$KILLWALIK = 2

:MK4_1986
if 
  $KILLWALIK == 2
goto_if_false @MK4_2052
set_char_obj_goto_coord_on_foot $MK4KILL9 walk_to 64.875 -583.5
if 
  locate_char_any_means_2d $MK4KILL9 0 64.875 -583.5 radius 0.5 0.5
goto_if_false @MK4_2052
$KILLWALIK = 1

:MK4_2052
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 88.5 -588.25 25.9375 radius 1.5 1.5 1.5
goto_if_false @MK4_1592
remove_blip $MK4KILLPICK9
remove_blip $MK4KILLPICK10
remove_sphere $MK4SPHERE
remove_blip $TAXI_PICKUP
switch_widescreen 1
do_fade 0 500
set_player_control $PLAYER_CHAR can_move 0
wait 500
clear_area 1 at 88.5 -588.25 25.9375 range 10.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 95.6875 -587.75 32.0625 rotation 0.0 0.0 0.0
point_camera_at_point 88.9375 -590.0 25.9375 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 88.5 -588.25 25.9375
create_char $XSK_CHAR = create_actor 21 27 at 88.5 -592.125 25.9375
set_char_suffers_critical_hits $XSK_CHAR dismemberment_possible 0
set_char_health $XSK_CHAR health_to 400
give_weapon_to_char $XSK_CHAR weapon 2 ammo 999
set_char_heading $XSK_CHAR z_angle_to 270.0
set_player_heading $PLAYER_CHAR z_angle_to 180.0
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK4_2480
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK4_2480
print_now 'MK4_10' time 5000 1
wait 5000
turn_char_to_face_char $XSK_CHAR look_at_actor $PLAYER_ACTOR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK4_2480
set_char_wait_state $XSK_CHAR anim 19 wait_state_time 3200
print_now 'MK4_11' time 4000 1
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK4_2480
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 2000
print_now 'MK4_12' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MK4_2480
set_char_wait_state $XSK_CHAR anim 19 wait_state_time 3000
print_now 'MK4_13' time 5000 1
wait 3000

:MK4_2480
if 
  $XSKLILL == 1
goto_if_false @MK4_2704
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
restore_camera_jumpcut 
add_blip_for_char $XSKPICK = create_marker_above_actor $XSK_CHAR
set_char_obj_flee_player_on_foot_always $XSK_CHAR avoid_player $PLAYER_CHAR
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
wait 2000
$XSKDAM = 100
display_onscreen_counter_with_string $XSKDAM 1 'CSKH'

:MK4_2592
wait 0
get_char_health $XSK_HEALTH = actor $XSK_CHAR
$XSK_HEALTH /= 4
set_var_int_to_var_int $XSKDAM = $XSK_HEALTH
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $XSK_CHAR radius 80.0 80.0 80.0
goto_if_false @MK4_3268
if 
  not $XSKDAM >= 30
goto_if_false @MK4_2592
remove_blip $XSKPICK
get_char_coordinates $XSK_CHAR position_to $XSK_X $XSK_Y $XSK_Z
set_char_obj_no_obj $XSK_CHAR
delete_char $XSK_CHAR
$XSK_Z -= 1.0

:MK4_2704
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
if 
  $XSKLILL == 1
goto_if_false @MK4_2983
do_fade 0 1000
wait 1000
create_char $XSK_CHAR = create_actor 21 27 at $XSK_X $XSK_Y $XSK_Z
do_fade 1 1000
wait 1000
print_now 'MK4_14' time 6000 1
turn_char_to_face_char $XSK_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $XSK_CHAR
point_camera_at_char $XSK_CHAR mode 11 switchstyle 2
wait 6000
print_now 'MK4_15' time 5000 1
wait 5000
print_now 'MK4_16' time 6000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
wait 6000
print_now 'MK4_17' time 6000 1
point_camera_at_char $XSK_CHAR mode 11 switchstyle 2
wait 6000
print_now 'MK4_18' time 4000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
wait 4000
print_now 'MK4_19' time 5000 1
point_camera_at_char $XSK_CHAR mode 11 switchstyle 2
wait 5000
print_now 'MK4_20' time 6000 1
wait 6000
goto @MK4_3103

:MK4_2983
print_now 'MK4_15' time 5000 1
wait 5000
print_now 'MK4_16' time 6000 1
wait 6000
print_now 'MK4_17' time 6000 1
wait 6000
print_now 'MK4_18' time 4000 1
wait 4000
print_now 'MK4_19' time 5000 1
wait 5000
print_now 'MK4_20' time 6000 1
wait 6000

:MK4_3103
do_fade 0 1000
remove_char_elegantly $XSK_CHAR
remove_char_elegantly $MK4KILL1
remove_char_elegantly $MK4KILL2
remove_char_elegantly $MK4KILL3
remove_char_elegantly $MK4KILL4
remove_char_elegantly $MK4KILL5
remove_char_elegantly $MK4KILL6
remove_char_elegantly $MK4KILL7
remove_char_elegantly $MK4KILL8
remove_char_elegantly $MK4KILL9
remove_char_elegantly $MK4KILL10
wait 1000
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
clear_wanted_level $PLAYER_CHAR
set_player_control $PLAYER_CHAR can_move 1
$4523 = 0
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MK4_2'
start_new_script @TWENT4 
return 

:MK4_3268
print_big 'M_FAIL' 6000 ms 1
$4523 = 0
change_blip_display $KEN display 3
return 

:MK4_3299
$ONMISSION = 0
remove_blip $XSKPICK
remove_blip $TAXI_PICKUP
remove_blip $MK4KILLPICK9
remove_blip $MK4KILLPICK10
remove_sphere $MK4SPHERE
clear_onscreen_timer $XSKDAM
remove_char_elegantly $MK4KILL1
remove_char_elegantly $MK4KILL2
remove_char_elegantly $MK4KILL3
remove_char_elegantly $MK4KILL4
remove_char_elegantly $MK4KILL5
remove_char_elegantly $MK4KILL6
remove_char_elegantly $MK4KILL7
remove_char_elegantly $MK4KILL8
remove_char_elegantly $MK4KILL9
remove_char_elegantly $MK4KILL10
remove_char_elegantly $XSK_CHAR
clear_onscreen_counter $XSKDAM
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 138
$MK4CAR1 = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 23---------------
// Originally: The Fuzz Ball

:MC1
gosub @MC1_36
if 
  has_deatharrest_been_executed 
goto_if_false @MC1_27
gosub @MC1_4837

:MC1_27
gosub @MC1_4868
terminate_this_script 

:MC1_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MC1'
request_model 8
request_model 21
request_model 24
request_model 31
request_model 7
request_model 60
request_model 126
request_model 110
load_special_character 1 'MICKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'CISIK'
do_fade 0 1000
print_big 'MC1_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 10.0 -278.75 31.625 rotation 0.0 0.0 0.0
point_camera_at_point 13.0 -298.125 23.6875 switchstyle 2
create_char $CSK_CHAR = create_actor 21 26 at 14.125 -296.5625 22.5
set_player_coordinates $PLAYER_CHAR at 11.875 -298.6875 22.5
turn_char_to_face_char $CSK_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $CSK_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MC1_267
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MC1_295
goto @MC1_843

:MC1_295
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MC1_267
clear_help 
load_mission_audio 'H5_C'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MC1_3' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_367
wait 0
if 
  TIMERA >= 8210
goto_if_false @MC1_367
print_now 'MC1_4' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_415
wait 0
if 
  TIMERA >= 17120
goto_if_false @MC1_415
print_now 'MC1_5' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_463
wait 0
if 
  TIMERA >= 23200
goto_if_false @MC1_463
print_now 'MC1_6' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_511
wait 0
if 
  TIMERA >= 30110
goto_if_false @MC1_511
print_now 'MC1_7' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MC1_559
wait 0
if 
  TIMERA >= 35140
goto_if_false @MC1_559
print_now 'MC1_8' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_609
wait 0
if 
  TIMERA >= 43040
goto_if_false @MC1_609
print_now 'MC1_9' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_659
wait 0
if 
  TIMERA >= 49060
goto_if_false @MC1_659
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
print_now 'MC1_10' time 10000 1

:MC1_709
wait 0
if 
  TIMERA >= 54220
goto_if_false @MC1_709
print_now 'MC1_11' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC1_759
wait 0
if 
  TIMERA >= 57220
goto_if_false @MC1_759
print_now 'MC1_12' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MC1_809
wait 0
if 
  TIMERA >= 62160
goto_if_false @MC1_809
clear_prints 
wait 1000
clear_mission_audio 

:MC1_843
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
delete_char $CSK_CHAR
restore_camera_jumpcut 
switch_widescreen 1
clear_area 1 at 7.625 -300.3125 16.125 range 20.0
clear_area 1 at 150.4375 -1554.375 26.0 range 20.0
set_player_coordinates $PLAYER_CHAR at 7.625 -301.3125 15.125
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
create_car $MC1_TAXI = create_car 110 at 4.8125 -301.8125 16.0
set_car_heading $MC1_TAXI z_angle_to 0.0
create_char_inside_car $TAXI_DRIVER = create_actor 21 8 in_car $MC1_TAXI
car_set_idle $MC1_TAXI
wait 1000
do_fade 1 1000
wait 1000
set_char_obj_enter_car_as_passenger $PLAYER_ACTOR go_to_car $MC1_TAXI
wait 3000
set_car_driving_style $MC1_TAXI traffic_behavior_to 1
set_car_cruise_speed $MC1_TAXI max_speed_to 15.0
car_goto_coordinates $MC1_TAXI drive_to 150.9375 -1565.0 25.5625
wait 1000
do_fade 0 1000
wait 1000
set_car_coordinates $MC1_TAXI at 150.9375 -1565.0 25.5625
set_car_heading $MC1_TAXI z_angle_to 180.0
do_fade 1 1000
wait 1000
switch_widescreen 0
set_char_obj_leave_car $PLAYER_ACTOR leave_car $MC1_TAXI
wait 2000
set_player_control $PLAYER_CHAR can_move 1
car_goto_coordinates $MC1_TAXI drive_to 98.375 -1606.313 26.0
set_car_cruise_speed $MC1_TAXI max_speed_to 15.0
set_car_driving_style $MC1_TAXI traffic_behavior_to 1
set_car_mission $MC1_TAXI driver_behaviour_to 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
create_car $MC1CAR = create_car 126 at -865.0625 -752.6875 11.25
set_car_heading $MC1CAR z_angle_to 180.0
add_blip_for_car $CAR1PICK = create_marker_above_car $MC1CAR
change_blip_colour $CAR1PICK color_to 6
print_now 'MC1_34' time 3000 1

:MC1_1212
wait 0
if 
  is_player_in_car $PLAYER_CHAR in_car $MC1CAR
goto_if_false @MC1_1212
$MC1_TIME = 180000
display_onscreen_timer $MC1_TIME
$MC1FLY1_X = -52.0625
$MC1FLY1_Y = -1305.563
$MC1FLY1_Z = 58.125
$MC1FLY2_X = -40.5625
$MC1FLY2_Y = -1522.438
$MC1FLY2_Z = 64.125
$MC1FLY3_X = 286.6875
$MC1FLY3_Y = -540.5
$MC1FLY3_Z = 60.125
$MC1FLY4_X = 341.4375
$MC1FLY4_Y = -108.5
$MC1FLY4_Z = 56.125
create_char $DRUG_NPC1 = create_actor 21 31 at -52.0625 -1305.563 26.25
create_char $DRUG_NPC2 = create_actor 21 31 at -38.375 -1522.563 26.125
create_char $DRUG_NPC3 = create_actor 21 31 at 286.6875 -540.5 36.25
create_char $DRUG_NPC4 = create_actor 21 21 at 341.4375 -108.5 -100.0
set_char_heading $DRUG_NPC1 z_angle_to 180.0
set_char_heading $DRUG_NPC2 z_angle_to 180.0
set_char_heading $DRUG_NPC3 z_angle_to 270.0
set_char_heading $DRUG_NPC4 z_angle_to 180.0
char_look_at_player_always $DRUG_NPC1 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $DRUG_NPC2 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $DRUG_NPC3 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $DRUG_NPC4 to_look_at_player $PLAYER_CHAR
add_blip_for_coord_old $FLY_PICKUP1 = create_marker_at $MC1FLY1_X $MC1FLY1_Y $MC1FLY1_Z color 5 display 3
change_blip_scale $FLY_PICKUP1 size 3
add_blip_for_coord_old $FLY_PICKUP2 = create_marker_at $MC1FLY2_X $MC1FLY2_Y $MC1FLY2_Z color 5 display 3
change_blip_scale $FLY_PICKUP2 size 3
dim_blip $FLY_PICKUP2 brightness_to 1
goto @MC1_1553

:MC1_1546
change_blip_display $CAR1PICK display 3

:MC1_1553
wait 0
if and
  not is_char_dead $DRUG_NPC1
  not is_char_dead $DRUG_NPC2
  not is_char_dead $DRUG_NPC3
  not is_char_dead $DRUG_NPC4
  not is_car_dead $MC1CAR
  $MC1_TIME > 0
goto_if_false @MC1_4837
draw_corona 8.0 6 0 with_color 255 0 0 at_point $MC1FLY1_X $MC1FLY1_Y $MC1FLY1_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MC1CAR
goto_if_false @MC1_1546
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $MC1FLY1_X $MC1FLY1_Y $MC1FLY1_Z radius 8.0 8.0 8.0
goto_if_false @MC1_1553
add_one_off_sound 100 at 0.0 0.0 0.0
get_car_coordinates $MC1CAR position_to $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
$MC1CAR_Z -= 5.0
create_pickup $MC1PICK1 = create_pickup 1366 type 12 at $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
remove_blip $FLY_PICKUP1
dim_blip $FLY_PICKUP2 brightness_to 0
add_blip_for_coord_old $FLY_PICKUP3 = create_marker_at $MC1FLY3_X $MC1FLY3_Y $MC1FLY3_Z color 5 display 3
change_blip_scale $FLY_PICKUP3 size 3
dim_blip $FLY_PICKUP3 brightness_to 1
print_now 'MC1_13' time 5000 1
goto @MC1_1814

:MC1_1807
change_blip_display $CAR1PICK display 3

:MC1_1814
wait 0
if and
  not is_char_dead $DRUG_NPC1
  not is_char_dead $DRUG_NPC2
  not is_char_dead $DRUG_NPC3
  not is_char_dead $DRUG_NPC4
  not is_car_dead $MC1CAR
  $MC1_TIME > 0
goto_if_false @MC1_4837
draw_corona 8.0 6 0 with_color 255 0 0 at_point $MC1FLY2_X $MC1FLY2_Y $MC1FLY2_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MC1CAR
goto_if_false @MC1_1807
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $MC1FLY2_X $MC1FLY2_Y $MC1FLY2_Z radius 8.0 8.0 8.0
goto_if_false @MC1_1814
add_one_off_sound 100 at 0.0 0.0 0.0
get_car_coordinates $MC1CAR position_to $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
$MC1CAR_Z -= 5.0
create_pickup $MC1PICK2 = create_pickup 1366 type 12 at $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
remove_blip $FLY_PICKUP2
dim_blip $FLY_PICKUP3 brightness_to 0
add_blip_for_coord_old $FLY_PICKUP4 = create_marker_at $MC1FLY4_X $MC1FLY4_Y $MC1FLY4_Z color 5 display 3
change_blip_scale $FLY_PICKUP4 size 3
dim_blip $FLY_PICKUP4 brightness_to 1
print_now 'MC1_15' time 6000 1
goto @MC1_2075

:MC1_2068
change_blip_display $CAR1PICK display 3

:MC1_2075
wait 0
if and
  not is_char_dead $DRUG_NPC1
  not is_char_dead $DRUG_NPC2
  not is_char_dead $DRUG_NPC3
  not is_char_dead $DRUG_NPC4
  not is_car_dead $MC1CAR
  $MC1_TIME > 0
goto_if_false @MC1_4837
draw_corona 8.0 6 0 with_color 255 0 0 at_point $MC1FLY3_X $MC1FLY3_Y $MC1FLY3_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MC1CAR
goto_if_false @MC1_2068
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $MC1FLY3_X $MC1FLY3_Y $MC1FLY3_Z radius 8.0 8.0 8.0
goto_if_false @MC1_2075
add_one_off_sound 100 at 0.0 0.0 0.0
get_car_coordinates $MC1CAR position_to $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
$MC1CAR_Z -= 5.0
create_pickup $MC1PICK3 = create_pickup 1366 type 12 at $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
remove_blip $FLY_PICKUP3
dim_blip $FLY_PICKUP4 brightness_to 0
goto @MC1_2289

:MC1_2282
change_blip_display $CAR1PICK display 3

:MC1_2289
wait 0
if and
  not is_char_dead $DRUG_NPC1
  not is_char_dead $DRUG_NPC2
  not is_char_dead $DRUG_NPC3
  not is_char_dead $DRUG_NPC4
  not is_car_dead $MC1CAR
  $MC1_TIME > 0
goto_if_false @MC1_4837
draw_corona 8.0 6 0 with_color 255 0 0 at_point $MC1FLY4_X $MC1FLY4_Y $MC1FLY4_Z
if 
  is_player_in_car $PLAYER_CHAR in_car $MC1CAR
goto_if_false @MC1_2282
change_blip_display $CAR1PICK display 0
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $MC1FLY4_X $MC1FLY4_Y $MC1FLY4_Z radius 8.0 8.0 8.0
goto_if_false @MC1_2289
add_one_off_sound 100 at 0.0 0.0 0.0
get_car_coordinates $MC1CAR position_to $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
$MC1CAR_Z -= 5.0
create_pickup $MC1PICK4 = create_pickup 1366 type 12 at $MC1CAR_X $MC1CAR_Y $MC1CAR_Z
remove_blip $FLY_PICKUP4
alter_wanted_level $PLAYER_CHAR wanted_level_to 2
clear_onscreen_timer $MC1_TIME
add_pager_message 'MC1_33' 140 2 0
print_now 'WANT' time 6000 1
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 31

:MC1_2534
wait 0
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MC1_2534
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 114.0625 -1400.438 21.75 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MC1SPHERE = create_sphere 114.0625 -1400.438 21.75 2.5
goto @MC1_2620

:MC1_2605
print_now 'WANT' time 2000 1

:MC1_2620
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 114.0625 -1400.438 21.75 radius 2.0 2.0 2.0
goto_if_false @MC1_2620
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MC1_2605
remove_blip $TAXI_PICKUP
remove_sphere $MC1SPHERE
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_fixed_camera_position 127.3125 -1401.75 27.75 rotation 0.0 0.0 0.0
point_camera_at_point 114.0625 -1400.438 21.75 switchstyle 2
create_char $MC1NPC3 = create_actor 21 7 at 113.75 -1396.938 21.8125
turn_char_to_face_char $MC1NPC3 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC1NPC3
set_char_wait_state $MC1NPC3 anim 19 wait_state_time 3500
do_fade 1 1000
wait 1000
set_char_wait_state $MC1NPC3 anim 19 wait_state_time 2000
print_now 'MC1_17' time 6000 1
wait 6000
print_now 'MC1_17A' time 5000 1
wait 5000
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MC1_18' time 6000 1
wait 6000
set_char_wait_state $MC1NPC3 anim 19 wait_state_time 2000
print_now 'MC1_19' time 6000 1
wait 6000
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 2000
print_now 'MC1_20' time 3000 1
wait 3000
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
create_car $MC1_TAXI = create_car 110 at 49.375 -1399.313 26.0
set_car_heading $MC1_TAXI z_angle_to 0.0
create_char_inside_car $TAXI_DRIVER = create_actor 21 8 in_car $MC1_TAXI
car_set_idle $MC1_TAXI
set_player_coordinates $PLAYER_CHAR at 54.5625 -1398.313 25.125
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
restore_camera_jumpcut 
delete_char $MC1NPC3
wait 1000
do_fade 1 1000
wait 1000
set_char_obj_enter_car_as_passenger $PLAYER_ACTOR go_to_car $MC1_TAXI
wait 3000
set_car_driving_style $MC1_TAXI traffic_behavior_to 1
set_car_cruise_speed $MC1_TAXI max_speed_to 10.0
car_goto_coordinates $MC1_TAXI drive_to 4.375 -306.8125 16.0
wait 1000
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 4.375 -306.8125 15.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_camera_behind_player 
wait 1000
car_set_idle $MC1_TAXI
do_fade 1 1000
wait 1000
set_char_obj_leave_car $PLAYER_ACTOR leave_car $MC1_TAXI
wait 2000
switch_widescreen 0
car_goto_coordinates $MC1_TAXI drive_to -82.125 -283.875 16.0
set_player_control $PLAYER_CHAR can_move 1
set_car_driving_style $MC1_TAXI traffic_behavior_to 1
set_car_mission $MC1_TAXI driver_behaviour_to 1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 13.75 -298.5 16.125 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MC1SPHERE = create_sphere 13.75 -298.5 16.125 2.5

:MC1_3254
wait 10
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 13.75 -298.5 16.125 radius 2.0 2.0 2.0
goto_if_false @MC1_3254
remove_blip $TAXI_PICKUP
remove_sphere $MC1SPHERE
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
delete_char $TAXI_DRIVER
delete_car $MC1_TAXI
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 10.0 -278.75 31.625 rotation 0.0 0.0 0.0
point_camera_at_point 13.0 -298.125 23.6875 switchstyle 2
create_char $CSK_CHAR = create_actor 21 26 at 14.125 -296.5625 22.5
set_player_coordinates $PLAYER_CHAR at 11.875 -298.6875 22.5
turn_char_to_face_char $CSK_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $CSK_CHAR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
print_now 'MC1_21' time 4000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
print_now 'MC1_22' time 5000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
print_now 'MC1_23' time 6000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
print_now 'MC1_24' time 6000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
print_now 'MC1_25' time 4000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC1_3741
print_now 'MC1_25A' time 6000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 6000

:MC1_3741
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_player_coordinates $PLAYER_CHAR at 13.75 -298.5 15.125
set_player_heading $PLAYER_CHAR z_angle_to 47.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1213.438 -788.625 14.625 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MC1SPHERE = create_sphere 1213.438 -788.625 14.625 2.5
create_char $MC1NPC4 = create_actor 21 60 at 1211.063 -786.875 14.625
set_char_heading $MC1NPC4 z_angle_to 231.0

:MC1_3884
wait 0
if 
  not is_char_dead $MC1NPC4
goto_if_false @MC1_4837
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 1213.438 -788.625 14.625 radius 2.0 2.0 2.0
goto_if_false @MC1_3884
remove_blip $TAXI_PICKUP
remove_sphere $MC1SPHERE
switch_widescreen 1
set_fixed_camera_position 1208.563 -774.8125 14.5625 rotation 0.0 0.0 0.0
point_camera_at_point 1212.813 -796.625 14.6875 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
turn_char_to_face_char $MC1NPC4 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC1NPC4
set_char_wait_state $MC1NPC4 anim 19 wait_state_time 3000
print_now 'MC1_26' time 5000 1
wait 5000
print_now 'MC1_27' time 5000 1
wait 5000
switch_widescreen 0
restore_camera_jumpcut 
delete_char $MC1NPC4
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 114.0625 -1400.438 21.75 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MC1SPHERE = create_sphere 114.0625 -1400.438 21.75 2.5

:MC1_4120
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 114.0625 -1400.438 21.75 radius 2.0 2.0 2.0
goto_if_false @MC1_4120
remove_sphere $MC1SPHERE
remove_blip $TAXI_PICKUP
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_fixed_camera_position 127.3125 -1401.75 27.75 rotation 0.0 0.0 0.0
point_camera_at_point 114.0625 -1400.438 21.75 switchstyle 2
create_char $MC1NPC3 = create_actor 21 7 at 113.75 -1396.938 21.8125
turn_char_to_face_char $MC1NPC3 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC1NPC3
create_char $MC1KILL1 = create_actor 21 24 at 106.0625 -1396.25 21.8125
create_char $MC1KILL2 = create_actor 21 24 at 118.4375 -1403.0 21.75
create_char $MC1KILL3 = create_actor 21 24 at 127.5 -1400.438 26.1875
create_char $MC1KILL4 = create_actor 21 24 at 96.125 -1398.75 26.1875
set_char_heading $MC1NPC3 z_angle_to 180.0
set_char_heading $MC1KILL1 z_angle_to 270.0
set_char_heading $MC1KILL2 z_angle_to 270.0
set_char_heading $MC1KILL3 z_angle_to 270.0
set_char_heading $MC1KILL4 z_angle_to 270.0
give_weapon_to_char $MC1KILL1 weapon 2 ammo 999
give_weapon_to_char $MC1KILL2 weapon 2 ammo 999
give_weapon_to_char $MC1KILL3 weapon 2 ammo 999
give_weapon_to_char $MC1KILL4 weapon 2 ammo 999
give_weapon_to_char $MC1NPC3 weapon 1 ammo 999
turn_char_to_face_char $MC1KILL1 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $MC1KILL2 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $MC1KILL3 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $MC1KILL4 look_at_actor $PLAYER_ACTOR
wait 1000
do_fade 1 1000
wait 1000
set_char_wait_state $MC1NPC3 anim 19 wait_state_time 3000
print_now 'MC1_28' time 4000 1
wait 4000
print_now 'MC1_29' time 5000 1
wait 5000
print_now 'MC1_30' time 6000 1
wait 6000
set_player_control $PLAYER_CHAR can_move 1
restore_camera_jumpcut 
switch_widescreen 0
add_blip_for_char $MC1NPCPICK = create_marker_above_actor $MC1NPC3
change_blip_colour $MC1NPCPICK color_to 0
set_char_obj_kill_player_on_foot $MC1NPC3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC1KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC1KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC1KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC1KILL4 kill_player $PLAYER_CHAR

:MC1_4609
wait 0
if 
  is_char_dead $MC1NPC3
goto_if_false @MC1_4609
remove_blip $MC1NPCPICK
print_now 'MC1_31' time 3000 1
wait 3000
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 138.9375 -1362.875 26.125 radius 100.0 100.0 100.0
goto_if_false @MC1_4709
print_now 'LEAVE' time 2000 1

:MC1_4709
wait 0
if 
  not locate_player_any_means_3d $PLAYER_CHAR 0 138.9375 -1362.875 26.125 radius 100.0 100.0 100.0
goto_if_false @MC1_4709
print_now 'MC1_32' time 4000 1
clear_wanted_level $PLAYER_CHAR
$4524 = 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MC1_2'
start_new_script @TWENT5 
return 

:MC1_4837
print_big 'M_FAIL' 6000 ms 1
$4524 = 0
change_blip_display $CSK display 3
return 

:MC1_4868
$ONMISSION = 0
remove_sphere $MC1SPHERE
remove_blip $TAXI_PICKUP
remove_blip $FLY_PICKUP1
remove_blip $FLY_PICKUP2
remove_blip $FLY_PICKUP3
remove_blip $FLY_PICKUP4
remove_blip $CAR1PICK
remove_blip $MC1NPCPICK
remove_pickup $MC1PICK1
remove_pickup $MC1PICK2
remove_pickup $MC1PICK3
remove_pickup $MC1PICK4
remove_char_elegantly $MC1KILL1
remove_char_elegantly $MC1KILL2
remove_char_elegantly $MC1KILL3
remove_char_elegantly $MC1KILL4
remove_char_elegantly $MC1NPC1
remove_char_elegantly $MC1NPC2
remove_char_elegantly $MC1NPC3
remove_char_elegantly $MC1NPC4
mark_model_as_no_longer_needed 8
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 31
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 60
mark_model_as_no_longer_needed 7
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 110
unload_special_character 1
clear_onscreen_counter $MC1CARDAM
clear_onscreen_timer $MC1_TIME
delete_car $MC1CAR11
delete_car $MC1CAR12
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 24---------------
// Originally: Mike Lips Last Lunch

:MC2
gosub @MC2_36
if 
  has_deatharrest_been_executed 
goto_if_false @MC2_27
gosub @MC2_4554

:MC2_27
gosub @MC2_4592
terminate_this_script 

:MC2_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MC2'
request_model 24
request_model 49
request_model 2
request_model 4
request_model 100
request_model 116
request_model 141
load_special_character 1 'KEEPER'
load_special_character 2 'MICKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'CISIK'
do_fade 0 1000
print_big 'MC2_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 10.0 -278.75 31.625 rotation 0.0 0.0 0.0
point_camera_at_point 13.0 -298.125 23.6875 switchstyle 2
create_char $CSK_CHAR = create_actor 21 27 at 14.125 -296.5625 22.5
set_player_coordinates $PLAYER_CHAR at 11.875 -298.6875 22.5
turn_char_to_face_char $CSK_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $CSK_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MC2_276
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MC2_304
goto @MC2_700

:MC2_304
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MC2_276
clear_help 
load_mission_audio 'J4_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MC2_3' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC2_376
wait 0
if 
  TIMERA >= 9080
goto_if_false @MC2_376
print_now 'MC2_4' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC2_424
wait 0
if 
  TIMERA >= 16070
goto_if_false @MC2_424
print_now 'MC2_5' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC2_472
wait 0
if 
  TIMERA >= 20260
goto_if_false @MC2_472
print_now 'MC2_6' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC2_520
wait 0
if 
  TIMERA >= 27150
goto_if_false @MC2_520
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MC2_7' time 10000 1

:MC2_568
wait 0
if 
  TIMERA >= 32200
goto_if_false @MC2_568
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
print_now 'MC2_8' time 10000 1

:MC2_616
wait 0
if 
  TIMERA >= 35130
goto_if_false @MC2_616
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MC2_9' time 10000 1

:MC2_666
wait 0
if 
  TIMERA >= 43030
goto_if_false @MC2_666
clear_prints 
wait 1000
clear_mission_audio 

:MC2_700
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
delete_char $CSK_CHAR
set_player_coordinates $PLAYER_CHAR at 13.75 -298.5 15.125
set_player_heading $PLAYER_CHAR z_angle_to 47.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
create_car $MC2CAR1 = create_car 100 at 244.9375 -1274.25 26.0
set_car_only_damaged_by_player $MC2CAR1 immune_to_nonplayer 1
set_car_heading $MC2CAR1 z_angle_to 270.0
create_char_inside_car $MC2NPC = create_actor 21 49 in_car $MC2CAR1
add_armour_to_char $MC2NPC armour_to 100
set_char_cant_be_dragged_out $MC2NPC locked_while_in_vehicle 1
change_car_lock 2 = car $MC2CAR1
add_blip_for_char $MC2NPCPICK = create_marker_above_actor $MC2NPC
change_blip_display $MC2NPCPICK display 3
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
change_blip_colour $TAXI_PICKUP color_to 5
set_car_driving_style $MC2CAR1 traffic_behavior_to 1
set_car_cruise_speed $MC2CAR1 max_speed_to 13.0
set_car_stays_in_current_level $MC2CAR1 bind_to_current_island 1
get_car_health $MC2CAR_HEALTH = car $MC2CAR1
$MC2CAR_HEALTH /= 10
set_var_int_to_var_int $MC2CARDAM = $MC2CAR_HEALTH
display_onscreen_counter_with_string $MC2CARDAM 1 'DAM'
$MC2KILL = 1
$KILLADD = 0

:MC2_944
wait 0
get_car_health $MC2CAR_HEALTH = car $MC2CAR1
$MC2CAR_HEALTH /= 10
set_var_int_to_var_int $MC2CARDAM = $MC2CAR_HEALTH
if 
  not is_car_dead $MC2CAR1
goto_if_false @MC2_4554
if 
  not $MC2CAR_HEALTH >= 99
goto_if_false @MC2_944
clear_onscreen_timer $MC2_TIME
print_now 'MC2_11' time 5000 1
set_car_driving_style $MC2CAR1 traffic_behavior_to 2
set_car_cruise_speed $MC2CAR1 max_speed_to 20.0
change_blip_display $MC2NPCPICK display 3

:MC2_1047
wait 0
get_car_health $MC2CAR_HEALTH = car $MC2CAR1
$MC2CAR_HEALTH /= 10
set_var_int_to_var_int $MC2CARDAM = $MC2CAR_HEALTH
if 
  not is_car_dead $MC2CAR1
goto_if_false @MC2_4554
if 
  not $MC2CAR_HEALTH >= 50
goto_if_false @MC2_1047
change_car_lock 1 = car $MC2CAR1
clear_onscreen_counter $MC2CARDAM
set_char_obj_leave_car $MC2NPC leave_car $MC2CAR1
set_char_obj_flee_player_on_foot_always $MC2NPC avoid_player $PLAYER_CHAR
set_anim_group_for_char $MC2NPC walk_style_to 18
print_now 'MC2_12' time 4000 1

:MC2_1158
wait 0
if 
  not is_car_dead $MC2CAR1
goto_if_false @MC2_4554
if 
  not is_char_dead $MC2NPC
goto_if_false @MC2_4554
if 
  not is_char_in_car $MC2NPC in_car $MC2CAR1
goto_if_false @MC2_1158

:MC2_1213
wait 0
if 
  not is_char_health_greater $MC2NPC health > 90
goto_if_false @MC2_1213
print_now 'MC2_13' time 3000 1
remove_blip $MC2NPCPICK
get_char_coordinates $MC2NPC position_to $MC2KILL3_X $MC2KILL3_Y $MC2KILL3_Z
wait 100
create_pickup $MC2PICKUP1 = create_pickup 1384 type 3 at $MC2KILL3_X $MC2KILL3_Y $MC2KILL3_Z
add_blip_for_pickup $MC2PICK1 = create_marker_above_pickup $MC2PICKUP1
remove_blip $MC2NPCPICK

:MC2_1305
wait 0
if 
  has_pickup_been_collected $MC2PICKUP1
goto_if_false @MC2_1305
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 367.75 -576.9375 26.125 color 5 display 2
change_blip_scale $TAXI_PICKUP2 size 3
add_sphere $MC2SPHERE2 = create_sphere 367.75 -576.9375 26.125 2.0
wait 2000
add_pager_message 'MC2_16' 140 10 2
if 
  not is_char_dead $MC2NPC
goto_if_false @MC2_1420
print_now 'MC2_14' time 3000 1

:MC2_1420
wait 0
if 
  not is_char_dead $MC2NPC
goto_if_false @MC2_1497
if 
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $MC2NPC radius 100.0 100.0 80.0
goto_if_false @MC2_1497
print_now 'MC2_15' time 5000 1
delete_char $MC2NPC
$KILLADD = 1

:MC2_1497
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 367.75 -576.9375 26.125 radius 2.0 2.0 2.0
goto_if_false @MC2_1420
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
remove_blip $TAXI_PICKUP2
remove_sphere $MC2SPHERE2
clear_area 1 at 372.6875 -434.4375 20.6875 range 20.0
do_fade 0 1000
wait 1000
create_char $MC2NPC2 = create_actor 21 26 at 370.1875 -576.5625 25.125
set_fixed_camera_position 360.0 -587.625 32.125 rotation 0.0 0.0 0.0
point_camera_at_point 373.1875 -576.5625 25.125 switchstyle 2
turn_char_to_face_char $MC2NPC2 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC2NPC2
set_char_wait_state $MC2NPC2 anim 19 wait_state_time 3000
create_car $MC2COP_CAR = create_car 116 at 372.6875 -434.4375 20.6875
set_car_heading $MC2COP_CAR z_angle_to 180.0
clear_area 1 at 372.6875 -434.4375 20.6875 range 20.0
change_car_lock 1 = car $MC2COP_CAR
add_sprite_blip_for_car $MC2COP_CAR icon 5 handle $MC2COPCAR_BLIP
do_fade 1 1000
wait 1000
turn_char_to_face_char $MC2NPC2 look_at_actor $PLAYER_ACTOR
set_char_wait_state $MC2NPC2 anim 19 wait_state_time 3000
print_now 'MC2_17' time 4000 1
wait 4000
do_fade 0 1000
wait 1000
delete_char $MC2NPC2
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
$TNTBOOM = 0
$OPENTNT1 = 0
$OPENTNT2 = 0
$OPENTNT3 = 0
$TNTOPEN = 0
$TIMEOPEN = 0
$INSTD = 0
$TNT_X1 = 417.75
$TNT_Y1 = -363.6875
$TNT_Z1 = 21.3125
$TNT_X2 = 279.8125
$TNT_Y2 = -375.6875
$TNT_Z2 = 25.0625
$TNT_X3 = 342.9375
$TNT_Y3 = -353.5625
$TNT_Z3 = 22.4375
$MC6WANT = 0
$DROPDODO_DEAD = 0
$DRUGDODO_DEAD = 0
$MC2INCOPCAR = 0
add_pager_message 'MC2_20' 140 10 2

:MC2_1978
wait 0
if 
  $MC2INCOPCAR == 0
goto_if_false @MC2_2056
if or
  not locate_player_any_means_3d $PLAYER_CHAR 0 350.625 -388.625 22.125 radius 100.0 250.0 20.0
  is_player_in_car $PLAYER_CHAR in_car $MC2COP_CAR
goto_if_false @MC2_2056
remove_blip $MC2COPCAR_BLIP
$MC2INCOPCAR = 1

:MC2_2056
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 107
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 117
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 122
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 123
goto_if_false @MC2_1978
remove_blip $MC2COPCAR_BLIP
add_blip_for_coord_old $TNT_BLIP1 = create_marker_at $TNT_X1 $TNT_Y1 $TNT_Z1 color 5 display 3
add_sphere $TNT_SPHERE1 = create_sphere $TNT_X1 $TNT_Y1 $TNT_Z1 1.0
change_blip_scale $TNT_BLIP1 size 3
add_blip_for_coord_old $TNT_BLIP2 = create_marker_at $TNT_X2 $TNT_Y2 $TNT_Z2 color 5 display 3
add_sphere $TNT_SPHERE2 = create_sphere $TNT_X2 $TNT_Y2 $TNT_Z2 1.0
change_blip_scale $TNT_BLIP2 size 3
add_blip_for_coord_old $TNT_BLIP3 = create_marker_at $TNT_X3 $TNT_Y3 $TNT_Z3 color 5 display 3
add_sphere $TNT_SPHERE3 = create_sphere $TNT_X3 $TNT_Y3 $TNT_Z3 1.0
change_blip_scale $TNT_BLIP3 size 3
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
clear_wanted_level $PLAYER_CHAR
do_fade 0 1000
wait 1000
create_char $MC2KILL11 = create_actor 21 4 at 353.625 -386.0625 35.6875
create_char $MC2KILL12 = create_actor 21 4 at 384.875 -381.375 35.3125
create_char $MC2KILL13 = create_actor 21 4 at 288.1875 -348.4375 17.125
create_char $MC2KILL14 = create_actor 21 4 at 274.625 -387.8125 25.3125
create_char $MC2KILL15 = create_actor 21 4 at 390.0625 -358.25 21.6875
create_char $MC2KILL16 = create_actor 21 4 at 302.125 -380.125 24.1875
create_char $MC2KILL17 = create_actor 21 4 at 365.4375 -388.0 21.6875
create_char $MC2KILL18 = create_actor 21 4 at 382.625 -386.6875 21.5
set_char_accuracy $MC2KILL11 weapon_accuracy_to 80
set_char_accuracy $MC2KILL12 weapon_accuracy_to 80
set_char_accuracy $MC2KILL13 weapon_accuracy_to 80
set_char_accuracy $MC2KILL14 weapon_accuracy_to 80
set_char_accuracy $MC2KILL15 weapon_accuracy_to 80
set_char_accuracy $MC2KILL16 weapon_accuracy_to 80
set_char_accuracy $MC2KILL17 weapon_accuracy_to 80
set_char_accuracy $MC2KILL18 weapon_accuracy_to 80
set_char_heading $MC2KILL11 z_angle_to 90.0
set_char_heading $MC2KILL12 z_angle_to 360.0
set_char_heading $MC2KILL13 z_angle_to 270.0
set_char_heading $MC2KILL14 z_angle_to 270.0
set_char_heading $MC2KILL15 z_angle_to 90.0
set_char_heading $MC2KILL16 z_angle_to 180.0
set_char_heading $MC2KILL17 z_angle_to 270.0
set_char_heading $MC2KILL18 z_angle_to 90.0
add_armour_to_char $MC2KILL11 armour_to 100
add_armour_to_char $MC2KILL12 armour_to 100
add_armour_to_char $MC2KILL13 armour_to 100
add_armour_to_char $MC2KILL14 armour_to 100
add_armour_to_char $MC2KILL15 armour_to 100
add_armour_to_char $MC2KILL16 armour_to 100
add_armour_to_char $MC2KILL17 armour_to 100
add_armour_to_char $MC2KILL18 armour_to 100
give_weapon_to_char $MC2KILL11 weapon 5 ammo 999
give_weapon_to_char $MC2KILL12 weapon 5 ammo 999
give_weapon_to_char $MC2KILL13 weapon 5 ammo 999
give_weapon_to_char $MC2KILL14 weapon 5 ammo 999
give_weapon_to_char $MC2KILL15 weapon 5 ammo 999
give_weapon_to_char $MC2KILL16 weapon 5 ammo 999
give_weapon_to_char $MC2KILL17 weapon 5 ammo 999
give_weapon_to_char $MC2KILL18 weapon 5 ammo 999
set_char_stay_in_same_place $MC2KILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL12 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL14 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL15 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL16 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL17 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC2KILL18 maintain_position_when_attacked 1
set_fixed_camera_position 276.1875 -344.5 45.5625 rotation 0.0 0.0 0.0
point_camera_at_point 341.125 -376.625 26.0625 switchstyle 2
do_fade 1 1000
wait 1000
print_now 'MC2_21' time 3000 1
wait 3000
restore_camera_jumpcut 
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
if 
  $KILLADD == 1
goto_if_false @MC2_2869
set_char_accuracy $MC2KILL11 weapon_accuracy_to 70
set_char_accuracy $MC2KILL12 weapon_accuracy_to 70
set_char_accuracy $MC2KILL13 weapon_accuracy_to 65
set_char_accuracy $MC2KILL14 weapon_accuracy_to 65
set_char_accuracy $MC2KILL15 weapon_accuracy_to 65
set_char_accuracy $MC2KILL16 weapon_accuracy_to 65
set_char_accuracy $MC2KILL17 weapon_accuracy_to 65
set_char_accuracy $MC2KILL18 weapon_accuracy_to 65

:MC2_2869
wait 0
if 
  is_player_in_area_3d $PLAYER_CHAR 0 267.625 -390.0 20.625 441.0625 -343.3125 46.6875
goto_if_false @MC2_3015
if or
  $TNTOPEN == 1
  is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MC2_2941
goto @MC2_3114

:MC2_2941
if or
  not is_char_health_greater $MC2KILL11 health > 99
  not is_char_health_greater $MC2KILL12 health > 99
  not is_char_health_greater $MC2KILL13 health > 99
  not is_char_health_greater $MC2KILL14 health > 99
  not is_char_health_greater $MC2KILL15 health > 99
  not is_char_health_greater $MC2KILL16 health > 99
  not is_char_health_greater $MC2KILL17 health > 99
  not is_char_health_greater $MC2KILL18 health > 99
goto_if_false @MC2_3185
goto @MC2_3114

:MC2_3015
if or
  $TNTOPEN == 1
  not is_char_health_greater $MC2KILL11 health > 99
  not is_char_health_greater $MC2KILL12 health > 99
  not is_char_health_greater $MC2KILL13 health > 99
goto_if_false @MC2_3061
goto @MC2_3114

:MC2_3061
if or
  not is_char_health_greater $MC2KILL14 health > 99
  not is_char_health_greater $MC2KILL15 health > 99
  not is_char_health_greater $MC2KILL16 health > 99
  not is_char_health_greater $MC2KILL17 health > 99
  not is_char_health_greater $MC2KILL18 health > 99
goto_if_false @MC2_3185
goto @MC2_3114

:MC2_3114
set_char_obj_kill_player_on_foot $MC2KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL15 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL16 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL17 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL18 kill_player $PLAYER_CHAR
alter_wanted_level $PLAYER_CHAR wanted_level_to 3

:MC2_3185
if or
  $OPENTNT1 == 1
  $OPENTNT2 == 1
  $OPENTNT3 == 1
goto_if_false @MC2_3335
if 
  $TIMEOPEN == 0
goto_if_false @MC2_3335
$MC2_TIME = 60000
display_onscreen_timer $MC2_TIME
set_char_obj_kill_player_on_foot $MC2KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL15 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL16 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL17 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC2KILL18 kill_player $PLAYER_CHAR
alter_wanted_level $PLAYER_CHAR wanted_level_to 3
$TIMEOPEN = 1
$TNTOPEN = 1

:MC2_3335
if 
  $OPENTNT1 == 0
goto_if_false @MC2_3425
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 $TNT_X1 $TNT_Y1 $TNT_Z1 radius 0.5 0.5 0.5
goto_if_false @MC2_3425
create_pickup $TNT1 = create_pickup 1389 type 6 at $TNT_X1 $TNT_Y1 $TNT_Z1
$OPENTNT1 = 1
remove_sphere $TNT_SPHERE1
remove_blip $TNT_BLIP1

:MC2_3425
wait 0
if 
  $OPENTNT2 == 0
goto_if_false @MC2_3519
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 $TNT_X2 $TNT_Y2 $TNT_Z2 radius 0.5 0.5 0.5
goto_if_false @MC2_3519
create_pickup $TNT2 = create_pickup 1389 type 6 at $TNT_X2 $TNT_Y2 $TNT_Z2
$OPENTNT2 = 1
remove_sphere $TNT_SPHERE2
remove_blip $TNT_BLIP2

:MC2_3519
wait 0
if 
  $OPENTNT3 == 0
goto_if_false @MC2_3613
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 $TNT_X3 $TNT_Y3 $TNT_Z3 radius 0.5 0.5 0.5
goto_if_false @MC2_3613
create_pickup $TNT3 = create_pickup 1389 type 6 at $TNT_X3 $TNT_Y3 $TNT_Z3
$OPENTNT3 = 1
remove_sphere $TNT_SPHERE3
remove_blip $TNT_BLIP3

:MC2_3613
if 
  $TNTOPEN == 1
goto_if_false @MC2_3779
if and
  $TIMEOPEN == 1
  $MC2_TIME == 0
goto_if_false @MC2_3779
remove_pickup $TNT1
remove_pickup $TNT2
remove_pickup $TNT3
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z
add_explosion 2 at $PLAYER_X $PLAYER_Y $PLAYER_Z
explode_player_head $PLAYER_CHAR
shake_cam 300
add_explosion 2 at $TNT_X2 $TNT_Y2 $TNT_Z2
shake_cam 300
wait 1000
add_explosion 2 at $TNT_X2 $TNT_Y2 $TNT_Z2
shake_cam 300
wait 1000
add_explosion 2 at $TNT_X3 $TNT_Y3 $TNT_Z3
shake_cam 300
goto @MC2_4554

:MC2_3779
if and
  $OPENTNT1 == 1
  $OPENTNT2 == 1
  $OPENTNT3 == 1
goto_if_false @MC2_2869
add_pager_message 'MC2_22' 140 10 2
print_now 'LEAVE' time 2000 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 4

:MC2_3850
wait 0
if and
  not is_player_in_area_3d $PLAYER_CHAR 0 267.625 -390.0 20.625 441.0625 -343.3125 46.6875
  not $MC2_TIME == 0
goto_if_false @MC2_4101
remove_pickup $TNT1
remove_pickup $TNT2
remove_pickup $TNT3
set_fixed_camera_position 276.1875 -344.5 45.5625 rotation 0.0 0.0 0.0
point_camera_at_point 341.125 -376.625 26.0625 switchstyle 2
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
wait 1000
add_explosion 2 at $TNT_X1 $TNT_Y1 $TNT_Z1
add_explosion 2 at 318.125 -359.125 26.125
shake_cam 300
wait 1000
add_explosion 2 at $TNT_X2 $TNT_Y2 $TNT_Z2
add_explosion 2 at 356.5 -376.3125 34.125
shake_cam 300
wait 1000
add_explosion 2 at $TNT_X3 $TNT_Y3 $TNT_Z3
add_explosion 2 at 416.875 -348.8125 30.125
shake_cam 300
wait 1000
restore_camera_jumpcut 
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
clear_onscreen_timer $MC2_TIME
$TNTBOOM = 1
goto @MC2_4267

:MC2_4101
if and
  is_player_in_area_3d $PLAYER_CHAR 0 267.625 -390.0 20.625 441.0625 -343.3125 46.6875
  $MC2_TIME == 0
goto_if_false @MC2_3850
remove_pickup $TNT1
remove_pickup $TNT2
remove_pickup $TNT3
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z
add_explosion 2 at $PLAYER_X $PLAYER_Y $PLAYER_Z
explode_player_head $PLAYER_CHAR
shake_cam 300
add_explosion 2 at $TNT_X2 $TNT_Y2 $TNT_Z2
shake_cam 300
wait 1000
add_explosion 2 at $TNT_X2 $TNT_Y2 $TNT_Z2
shake_cam 300
wait 1000
add_explosion 2 at $TNT_X3 $TNT_Y3 $TNT_Z3
shake_cam 300
goto @MC2_4554

:MC2_4267
wait 0
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MC2_4267
add_pager_message 'MC2_24' 140 10 2
create_pickup $MC2ROCKET = create_pickup 175 type 3 at 381.0 -585.8125 26.125
add_blip_for_pickup $ROCKET_PICKUP = create_marker_above_pickup $MC2ROCKET

:MC2_4333
wait 0
if 
  has_pickup_been_collected $MC2ROCKET
goto_if_false @MC2_4333
remove_blip $ROCKET_PICKUP
start_drug_run 

:MC2_4360
wait 0
if 
  not has_drug_plane_been_shot_down 
goto_if_false @MC2_4444
if 
  not $DRUGDODO_Y >= 410.0
goto_if_false @MC2_4554
find_drug_plane_coordinates $DRUGDODO_X $DRUGDODO_Y $DRUGDODO_Z
remove_blip $DRUGDODO_BLIP
add_blip_for_coord_old $DRUGDODO_BLIP = create_marker_at $DRUGDODO_X $DRUGDODO_Y $DRUGDODO_Z color 0 display 3
change_blip_scale $DRUGDODO_BLIP size 3
goto @MC2_4360

:MC2_4444
remove_blip $DRUGDODO_BLIP
remove_blip $DROPDODO_BLIP
$MC2KILL = 0
clear_wanted_level $PLAYER_CHAR
$4525 = 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
print_now 'MC2_23' time 5000 1
register_mission_passed 'MC2_2'
wait 3500
start_new_script @TWENT6 
return 

:MC2_4554
$MC2KILL = 0
print_big 'M_FAIL' 6000 ms 1
$4525 = 0
change_blip_display $CSK display 3
return 

:MC2_4592
$ONMISSION = 0
remove_blip $DROPDODO_BLIP
remove_blip $DRUGDODO_BLIP
remove_blip $MC2COPCAR_BLIP
remove_sphere $MC2SPHERE
remove_sphere $MC2SPHERE2
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $CARPICK
remove_blip $MC2NPCPICK
remove_blip $MC2PICK1
remove_blip $TNT_BLIP1
remove_blip $TNT_BLIP2
remove_blip $TNT_BLIP3
remove_blip $ROCKET_PICKUP
remove_pickup $TNT1
remove_pickup $TNT2
remove_pickup $TNT3
remove_pickup $MC2PICKUP1
remove_pickup $MC2ROCKET
remove_char_elegantly $MC2KILL1
remove_char_elegantly $MC2KILL2
remove_char_elegantly $MC2KILL3
remove_char_elegantly $MC2KILL4
remove_char_elegantly $MC2KILL5
remove_char_elegantly $MC2KILL6
remove_char_elegantly $MC2KILL8
remove_char_elegantly $MC2KILL11
remove_char_elegantly $MC2KILL12
remove_char_elegantly $MC2KILL13
remove_char_elegantly $MC2KILL14
remove_char_elegantly $MC2KILL15
remove_char_elegantly $MC2KILL16
remove_char_elegantly $MC2KILL17
remove_char_elegantly $MC2KILL18
remove_sphere $TNT_SPHERE1
remove_blip $TNT_BLIP1
remove_sphere $TNT_SPHERE2
remove_blip $TNT_BLIP2
remove_sphere $TNT_SPHERE3
remove_blip $TNT_BLIP3
remove_char_elegantly $MC2NPC1
remove_char_elegantly $MC2NPC2
clear_onscreen_counter $MC2CARDAM
clear_onscreen_timer $MC2_TIME
mark_model_as_no_longer_needed 2
mark_model_as_no_longer_needed 4
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 49
mark_model_as_no_longer_needed 100
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 141
unload_special_character 1
unload_special_character 2
return 

//-------------Mission 25---------------
// Originally: Farewell 'Chunky' Lee Chong

:MC3
gosub @MC3_36
if 
  has_deatharrest_been_executed 
goto_if_false @MC3_27
gosub @MC3_3742

:MC3_27
gosub @MC3_3795
terminate_this_script 

:MC3_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MC3'
request_model 16
request_model 17
request_model 99
request_model 136
load_special_character 1 'OJG_P'
load_special_character 2 'MICKY'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'CISIK'
do_fade 0 1000
print_big 'MC3_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 10.0 -278.75 31.625 rotation 0.0 0.0 0.0
point_camera_at_point 13.0 -298.125 23.6875 switchstyle 2
create_char $CSK_CHAR = create_actor 21 27 at 14.125 -296.5625 22.5
set_player_coordinates $PLAYER_CHAR at 11.875 -298.6875 22.5
turn_char_to_face_char $CSK_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $CSK_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MC3_264
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MC3_292
goto @MC3_748

:MC3_292
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MC3_264
clear_help 
load_mission_audio 'J4_B'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MC3_3' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC3_364
wait 0
if 
  TIMERA >= 8100
goto_if_false @MC3_364
print_now 'MC3_4' time 10000 1

:MC3_402
wait 0
if 
  TIMERA >= 11220
goto_if_false @MC3_402
print_now 'MC3_5' time 10000 1

:MC3_440
wait 0
if 
  TIMERA >= 16070
goto_if_false @MC3_440
print_now 'MC3_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MC3_488
wait 0
if 
  TIMERA >= 20290
goto_if_false @MC3_488
print_now 'MC3_7' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC3_536
wait 0
if 
  TIMERA >= 30220
goto_if_false @MC3_536
print_now 'MC3_8' time 10000 1

:MC3_574
wait 0
if 
  TIMERA >= 36180
goto_if_false @MC3_574
print_now 'MC3_9' time 10000 1

:MC3_614
wait 0
if 
  TIMERA >= 41240
goto_if_false @MC3_614
print_now 'MC3_10' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MC3_664
wait 0
if 
  TIMERA >= 43010
goto_if_false @MC3_664
print_now 'MC3_11' time 10000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000

:MC3_714
wait 0
if 
  TIMERA >= 52000
goto_if_false @MC3_714
clear_prints 
wait 1000
clear_mission_audio 

:MC3_748
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
delete_char $CSK_CHAR
set_player_coordinates $PLAYER_CHAR at 13.75 -298.5 15.125
set_player_heading $PLAYER_CHAR z_angle_to 47.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
create_car $MC3CAR1 = create_car 99 at 99.5625 -58.0 16.0
set_car_health $MC3CAR1 health_to 2000
set_car_heading $MC3CAR1 z_angle_to 180.0
add_blip_for_car $CARPICK = create_marker_above_car $MC3CAR1
create_char_inside_car $MC3KILL1 = create_actor 21 16 in_car $MC3CAR1
set_car_only_damaged_by_player $MC3CAR1 immune_to_nonplayer 1
create_char_as_passenger $MC3KILL2 = create_actor 21 17 in_car $MC3CAR1 passenger_seat 0
create_char_as_passenger $MC3KILL3 = create_actor 21 16 in_car $MC3CAR1 passenger_seat 1
create_char_as_passenger $MC3KILL4 = create_actor 21 17 in_car $MC3CAR1 passenger_seat 2
give_weapon_to_char $MC3KILL1 weapon 3 ammo 999
give_weapon_to_char $MC3KILL2 weapon 3 ammo 999
give_weapon_to_char $MC3KILL3 weapon 3 ammo 999
give_weapon_to_char $MC3KILL4 weapon 3 ammo 999
set_char_accuracy $MC3KILL1 weapon_accuracy_to 80
set_char_accuracy $MC3KILL2 weapon_accuracy_to 80
set_char_accuracy $MC3KILL3 weapon_accuracy_to 80
set_char_accuracy $MC3KILL4 weapon_accuracy_to 80
lock_car_doors $MC3CAR1 door_status_to 2
set_char_cant_be_dragged_out $MC3KILL1 locked_while_in_vehicle 1
set_char_cant_be_dragged_out $MC3KILL2 locked_while_in_vehicle 1
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_car_cruise_speed $MC3CAR1 max_speed_to 15.0
car_goto_coordinates $MC3CAR1 drive_to 99.625 -274.9375 16.0
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
display_onscreen_counter_with_string $MC3CARDAM 1 'DAM'
$MC3_TIME = 180000
display_onscreen_timer $MC3_TIME
wait 1000
set_car_driving_style $MC3CAR1 traffic_behavior_to 1
set_car_mission $MC3CAR1 driver_behaviour_to 1

:MC3_1116
wait 10
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  not $MC3CARDAM >= 100
goto_if_false @MC3_1116
set_car_cruise_speed $MC3CAR1 max_speed_to 30.0
set_car_driving_style $MC3CAR1 traffic_behavior_to 2
TIMERA = 0

:MC3_1206
wait 0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  $MC3CARDAM > 35
goto_if_false @MC3_2032
if 
  TIMERA > 5000
goto_if_false @MC3_1206
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
if 
  locate_player_any_means_car_3d $PLAYER_CHAR near_car $MC3CAR1 radius 30.0 30.0 30.0 unknown 0
goto_if_false @MC3_1206
clear_car_last_weapon_damage $MC3CAR1
set_char_obj_kill_player_on_foot $MC3KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC3KILL4 kill_player $PLAYER_CHAR
TIMERA = 0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
set_car_driving_style $MC3CAR1 traffic_behavior_to 2
set_car_mission $MC3CAR1 driver_behaviour_to 1
set_car_cruise_speed $MC3CAR1 max_speed_to 30.0

:MC3_1419
set_car_driving_style $MC3CAR1 traffic_behavior_to 2
set_car_mission $MC3CAR1 driver_behaviour_to 1
set_car_cruise_speed $MC3CAR1 max_speed_to 30.0
wait 0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  $MC3CARDAM > 35
goto_if_false @MC3_2032
if 
  TIMERA > 10000
goto_if_false @MC3_1419
clear_car_last_weapon_damage $MC3CAR1
if and
  not is_char_in_car $MC3KILL3 in_car $MC3CAR1
  not is_char_in_car $MC3KILL4 in_car $MC3CAR1
  is_car_passenger_seat_free $MC3CAR1 car_passenger_seat_free 1
  is_car_passenger_seat_free $MC3CAR1 car_passenger_seat_free 2
goto_if_false @MC3_1419
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
if 
  locate_player_any_means_car_3d $PLAYER_CHAR near_car $MC3CAR1 radius 30.0 30.0 30.0 unknown 0
goto_if_false @MC3_1419
clear_car_last_weapon_damage $MC3CAR1
create_char_as_passenger $MC3KILLA = create_actor 21 16 in_car $MC3CAR1 passenger_seat 1
create_char_as_passenger $MC3KILLB = create_actor 21 17 in_car $MC3CAR1 passenger_seat 2
give_weapon_to_char $MC3KILLA weapon 3 ammo 999
give_weapon_to_char $MC3KILLB weapon 3 ammo 999
set_char_obj_kill_player_on_foot $MC3KILLA kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC3KILLB kill_player $PLAYER_CHAR
TIMERA = 0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
set_car_driving_style $MC3CAR1 traffic_behavior_to 2
set_car_mission $MC3CAR1 driver_behaviour_to 1
set_car_cruise_speed $MC3CAR1 max_speed_to 30.0

:MC3_1748
wait 0
set_car_driving_style $MC3CAR1 traffic_behavior_to 2
set_car_mission $MC3CAR1 driver_behaviour_to 1
set_car_cruise_speed $MC3CAR1 max_speed_to 30.0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  $MC3CARDAM > 35
goto_if_false @MC3_2032
if 
  TIMERA > 10000
goto_if_false @MC3_1748
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
clear_car_last_weapon_damage $MC3CAR1
if and
  not is_char_in_car $MC3KILLA in_car $MC3CAR1
  not is_char_in_car $MC3KILLB in_car $MC3CAR1
  is_car_passenger_seat_free $MC3CAR1 car_passenger_seat_free 1
  is_car_passenger_seat_free $MC3CAR1 car_passenger_seat_free 2
goto_if_false @MC3_1748
if 
  locate_player_any_means_car_3d $PLAYER_CHAR near_car $MC3CAR1 radius 30.0 30.0 30.0 unknown 0
goto_if_false @MC3_1748
clear_car_last_weapon_damage $MC3CAR1
create_char_as_passenger $MC3KILLC = create_actor 21 16 in_car $MC3CAR1 passenger_seat 1
create_char_as_passenger $MC3KILLD = create_actor 21 17 in_car $MC3CAR1 passenger_seat 2
give_weapon_to_char $MC3KILLC weapon 3 ammo 999
give_weapon_to_char $MC3KILLD weapon 3 ammo 999
set_char_obj_kill_player_on_foot $MC3KILLC kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC3KILLD kill_player $PLAYER_CHAR
TIMERA = 0

:MC3_2032
wait 0
set_car_driving_style $MC3CAR1 traffic_behavior_to 2
set_car_mission $MC3CAR1 driver_behaviour_to 1
set_car_cruise_speed $MC3CAR1 max_speed_to 30.0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  not $MC3CARDAM >= 35
goto_if_false @MC3_2032
set_char_obj_kill_player_on_foot $MC3KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC3KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC3KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC3KILL4 kill_player $PLAYER_CHAR
lock_car_doors $MC3CAR1 door_status_to 0
change_blip_colour $CARPICK color_to 1

:MC3_2168
wait 0
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  is_player_in_car $PLAYER_CHAR in_car $MC3CAR1
goto_if_false @MC3_2168
change_blip_display $CARPICK display 0
change_blip_display $SPRAYSHOP2_PICK display 3
add_pager_message 'MC3_12' 140 10 2
set_car_only_damaged_by_player $MC3CAR1 immune_to_nonplayer 0
goto @MC3_2289

:MC3_2282
change_blip_display $CARPICK display 3

:MC3_2289
wait 10
if and
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  is_player_in_car $PLAYER_CHAR in_car $MC3CAR1
goto_if_false @MC3_2282
change_blip_display $CARPICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC3CAR1
  has_respray_happened $72
goto_if_false @MC3_2289
clear_onscreen_counter $MC3CARDAM
create_char $YUXIANG = create_actor 21 26 at 157.8125 -314.8125 16.125
set_char_heading $YUXIANG z_angle_to 90.0
add_blip_for_char $YUXIANG_PICK = create_marker_above_actor $YUXIANG
add_pager_message 'MC3_13' 140 10 2
remove_char_elegantly $MC3KILL1
remove_char_elegantly $MC3KILL2
remove_char_elegantly $MC3KILL3
remove_char_elegantly $MC3KILL4

:MC3_2465
wait 10
if and
  not is_char_dead $YUXIANG
  not is_car_dead $MC3CAR1
  $MC3_TIME > 0
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if and
  is_player_in_car $PLAYER_CHAR in_car $MC3CAR1
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $YUXIANG radius 6.0 6.0 6.0
goto_if_false @MC3_2465
set_player_control $PLAYER_CHAR can_move 0
set_char_obj_enter_car_as_passenger $YUXIANG go_to_car $MC3CAR1
clear_onscreen_timer $MC3_TIME

:MC3_2578
wait 10
if and
  not is_car_dead $MC3CAR1
  not is_char_dead $YUXIANG
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  is_char_in_car $YUXIANG in_car $MC3CAR1
goto_if_false @MC3_2578
change_blip_display $YUXIANG_PICK display 0
switch_widescreen 1
restore_camera_jumpcut 
print_now 'MC3_14' time 6000 1
wait 6000
print_now 'MC3_15' time 6000 1
wait 6000
print_now 'MC3_16' time 6000 1
wait 6000
print_now 'MC3_17' time 6000 1
wait 6000
print_now 'MC3_18' time 4000 1
wait 4000
switch_widescreen 0
add_pager_message 'MC3_19' 140 10 2
set_player_control $PLAYER_CHAR can_move 1
change_blip_display $YUXIANG_PICK display 0
create_car $MC3CAR2 = create_car 136 at 147.25 -59.125 18.5
set_car_heading $MC3CAR2 z_angle_to 90.0
create_char_inside_car $MC3KILL5 = create_actor 21 16 in_car $MC3CAR2
create_char_as_passenger $MC3KILL6 = create_actor 21 17 in_car $MC3CAR2 passenger_seat 0
create_car $MC3CAR3 = create_car 136 at 98.875 24.5625 16.0
set_car_heading $MC3CAR3 z_angle_to 180.0
create_char_inside_car $MC3KILL7 = create_actor 21 16 in_car $MC3CAR3
create_char_as_passenger $MC3KILL8 = create_actor 21 17 in_car $MC3CAR3 passenger_seat 0
give_weapon_to_char $MC3KILL5 weapon 3 ammo 999
give_weapon_to_char $MC3KILL6 weapon 3 ammo 999
give_weapon_to_char $MC3KILL7 weapon 3 ammo 999
give_weapon_to_char $MC3KILL8 weapon 3 ammo 999
set_char_accuracy $MC3KILL5 weapon_accuracy_to 80
set_char_accuracy $MC3KILL6 weapon_accuracy_to 80
set_char_accuracy $MC3KILL7 weapon_accuracy_to 80
set_char_accuracy $MC3KILL8 weapon_accuracy_to 80
set_char_obj_kill_player_any_means $MC3KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MC3KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MC3KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MC3KILL8 kill_player $PLAYER_CHAR
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 4.6875 -333.75 16.0 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MC3SPHERE = create_sphere 4.6875 -333.75 16.0 4.0
goto @MC3_3051

:MC3_3044
change_blip_display $YUXIANG_PICK display 3

:MC3_3051
wait 10
if and
  not is_car_dead $MC3CAR1
  not is_char_dead $YUXIANG
goto_if_false @MC3_3742
get_car_health $MC3CAR_HEALTH = car $MC3CAR1
$MC3CAR_HEALTH /= 20
set_var_int_to_var_int $MC3CARDAM = $MC3CAR_HEALTH
if 
  is_char_in_car $YUXIANG in_car $MC3CAR1
goto_if_false @MC3_3044
change_blip_display $YUXIANG_PICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC3CAR1
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 4.6875 -333.75 16.0 radius 4.0 4.0 4.0
goto_if_false @MC3_3051
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
clear_wanted_level $PLAYER_CHAR
wait 1000
remove_sphere $MC3SPHERE
switch_widescreen 1
remove_char_elegantly $YUXIANG
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 10.0 -278.75 31.625 rotation 0.0 0.0 0.0
point_camera_at_point 13.0 -298.125 23.6875 switchstyle 2
create_char $CSK_CHAR = create_actor 21 27 at 14.125 -296.5625 22.5
warp_player_from_car_to_coord $PLAYER_CHAR at 11.875 -298.6875 22.5
turn_char_to_face_char $CSK_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $CSK_CHAR
remove_char_elegantly $MC3KILL5
remove_char_elegantly $MC3KILL6
remove_char_elegantly $MC3KILL7
remove_char_elegantly $MC3KILL8
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC3_3574
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC3_3574
print_now 'MC3_20' time 6000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC3_3574
print_now 'MC3_21' time 5000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC3_3574
print_now 'MC3_22' time 5000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC3_3574
print_now 'MC3_23' time 5000 1
set_char_wait_state $CSK_CHAR anim 19 wait_state_time 3000
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC3_3574
print_now 'MC3_24' time 5000 1
wait 5000

:MC3_3574
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
delete_char $CSK_CHAR
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 13.75 -298.5 15.125
set_player_heading $PLAYER_CHAR z_angle_to 47.0
set_camera_behind_player 
restore_camera_jumpcut 
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_sphere $MC3SPHERE
remove_char_elegantly $YUXIANG
clear_wanted_level $PLAYER_CHAR
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
$4526 = 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MC3_2'
start_new_script @TWENT7 
return 

:MC3_3742
clear_onscreen_counter $MC3CARDAM
clear_onscreen_timer $MC3_TIME
remove_blip $CARPICK
print_big 'M_FAIL' 6000 ms 1
$4526 = 0
$MC3CAR1OPEN = 1
change_blip_display $CSK display 3
return 

:MC3_3795
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_sphere $MC3SPHERE
remove_blip $CARPICK
remove_blip $YUXIANG_PICK
remove_char_elegantly $MC3KILL1
remove_char_elegantly $MC3KILL2
remove_char_elegantly $MC3KILL3
remove_char_elegantly $MC3KILL4
remove_char_elegantly $MC3KILL5
remove_char_elegantly $MC3KILL6
remove_char_elegantly $MC3KILL7
remove_char_elegantly $MC3KILL8
remove_char_elegantly $MC3KILLA
remove_char_elegantly $MC3KILLB
remove_char_elegantly $MC3KILLC
remove_char_elegantly $MC3KILLD
remove_char_elegantly $MC3KILLE
remove_char_elegantly $MC3KILLF
remove_char_elegantly $YUNXIANG
clear_onscreen_counter $MC3CARDAM
clear_onscreen_timer $MC3_TIME
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 136
$MC3CAR1 = -1
return 

//-------------Mission 26---------------
// Originally: Van Heist

:MA1
gosub @MA1_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA1_27
gosub @MA1_5450

:MA1_27
gosub @MA1_5481
terminate_this_script 

:MA1_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA1'
request_model 20
request_model 21
request_model 121
request_model 138
load_special_character 1 'ASUKA'
load_special_character 2 'OJG_P'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA1_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA1_280
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA1_308
goto @MA1_806

:MA1_308
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA1_280
clear_help 
load_mission_audio 'LIB_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA1_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA1_380
wait 0
if 
  TIMERA >= 8170
goto_if_false @MA1_380
print_now 'MA1_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA1_428
wait 0
if 
  TIMERA >= 14000
goto_if_false @MA1_428
print_now 'MA1_5' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA1_476
wait 0
if 
  TIMERA >= 23010
goto_if_false @MA1_476
print_now 'MA1_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA1_524
wait 0
if 
  TIMERA >= 29170
goto_if_false @MA1_524
print_now 'MA1_7' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA1_572
wait 0
if 
  TIMERA >= 34100
goto_if_false @MA1_572
print_now 'MA1_8' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA1_622
wait 0
if 
  TIMERA >= 38020
goto_if_false @MA1_622
print_now 'MA1_9' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA1_672
wait 0
if 
  TIMERA >= 46270
goto_if_false @MA1_672
print_now 'MA1_10' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA1_722
wait 0
if 
  TIMERA >= 53030
goto_if_false @MA1_722
print_now 'MA1_11' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA1_772
wait 0
if 
  TIMERA >= 63020
goto_if_false @MA1_772
clear_prints 
wait 1000
clear_mission_audio 

:MA1_806
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 209.0625 -392.9375 25.125 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3

:MA1_935
turn_phone_off $MA1PHONE

:MA1_940
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 209.0625 -392.9375 25.125 radius 40.5 40.5 40.5
goto_if_false @MA1_935
turn_phone_on $MA1PHONE
set_phone_message $MA1PHONE message 'MA1_12'
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 209.0 -392.875 26.125 radius 0.5 0.5 0.5
goto_if_false @MA1_940

:MA1_1034
wait 0
if 
  is_phone_displaying_message $MA1PHONE
goto_if_false @MA1_1034
turn_phone_off $MA1PHONE
remove_blip $TAXI_PICKUP
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 173.625 -359.0 16.1875 color 5 display 2
change_blip_scale $TAXI_PICKUP2 size 3
add_sphere $MA1SPHERE2 = create_sphere 173.625 -359.0 16.1875 2.5

:MA1_1106
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 173.625 -359.0 16.1875 radius 2.5 2.5 2.5
goto_if_false @MA1_1106
clear_area 1 at 173.625 -359.0 16.1875 range 20.0
switch_widescreen 1
set_fixed_camera_position 167.5 -360.625 16.1875 rotation 0.0 0.0 0.0
point_camera_at_point 172.4375 -361.375 16.1875 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
remove_sphere $MA1SPHERE2
remove_blip $TAXI_PICKUP2
wait 500
create_char $MA1NPC = create_actor 21 20 at 165.625 -363.0 16.1875
set_char_obj_run_to_coord $MA1NPC run_to 172.5 -362.0
wait 3000
turn_char_to_face_char $MA1NPC look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MA1NPC
print_now 'MA1_13' time 6000 1
wait 6000
print_now 'MA1_14' time 5000 1
wait 5000
print_help 'TFTF'
print_now 'MA1_29' time 100000 1
$PAY_RANSOM = 0
$SAYMA1_17 = 1
$SAYMA1_27 = 0
$MA1KILL3_DEAD = 0

:MA1_1366
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA1_1416
print_now 'MA1_15' time 3000 1
$PAY_RANSOM = 1
goto @MA1_3297

:MA1_1416
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA1_1366
print_now 'MA1_28' time 3000 1
$PAY_RANSOM = 0
set_char_obj_run_to_coord $MA1NPC run_to 155.8125 -396.375
wait 3000
remove_sphere $MA1SPHERE
remove_blip $TAXI_PICKUP
set_player_control $PLAYER_CHAR can_move 1
create_car $MA1CAR4 = create_car 138 at 155.8125 -396.375 20.625
add_blip_for_car $MA1CAR4PICK = create_marker_above_car $MA1CAR4
set_car_only_damaged_by_player $MA1CAR4 immune_to_nonplayer 1
set_car_heading $MA1CAR4 z_angle_to 118.5
warp_char_into_car $MA1NPC in_car $MA1CAR4
restore_camera_jumpcut 
switch_widescreen 0
$MA1FIND = 100
$CARPOINT1 = 0
$CARPOINT2 = 0
$CARPOINT3 = 0
$SPOTTED = 0
$MA1FIND_NUM = 0
$MA1FIND_SUB = 0
set_car_driving_style $MA1CAR4 traffic_behavior_to 2
set_car_cruise_speed $MA1CAR4 max_speed_to 18.0
car_goto_coordinates $MA1CAR4 drive_to 22.3125 -943.8125 26.0
clear_area 1 at 137.5625 -405.3125 18.125 range 20.0
TIMERA = 0
display_onscreen_counter_with_string $MA1FIND 1 'DOUBT'
$MA1FIND = 0

:MA1_1669
wait 10
get_car_health $MA1CAR4_HEALTH = car $MA1CAR4
if and
  $MA1CAR4_HEALTH > 980
  not is_car_dead $MA1CAR4
  not $MA1FIND >= 100
goto_if_false @MA1_5450
if or
  not TIMERA >= 15000
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MA1NPC radius 80.0 80.0 80.0
goto_if_false @MA1_5450
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MA1NPC radius 30.0 30.0 30.0
goto_if_false @MA1_1901
if 
  not $MA1FIND >= 100
goto_if_false @MA1_1901
$MA1FIND_NUM += 1
if 
  not $MA1FIND >= 50
goto_if_false @MA1_1862
if 
  $MA1FIND_NUM == 2
goto_if_false @MA1_1901
$MA1FIND += 1
$MA1FIND_NUM = 0
goto @MA1_2010

:MA1_1862
if 
  $MA1FIND_NUM == 1
goto_if_false @MA1_1901
$MA1FIND += 1
$MA1FIND_NUM = 0
goto @MA1_2010

:MA1_1901
if 
  not locate_player_any_means_char_3d $PLAYER_CHAR 0 $MA1NPC radius 60.0 60.0 60.0
goto_if_false @MA1_1946
print_now 'MA1_30' time 1000 1

:MA1_1946
if 
  $MA1FIND > 0
goto_if_false @MA1_2010
$MA1FIND_SUB += 1
if 
  $MA1FIND_SUB == 3
goto_if_false @MA1_2010
$MA1FIND -= 1
$MA1FIND_SUB = 0
goto @MA1_2010

:MA1_2010
if 
  $CARPOINT1 == 0
goto_if_false @MA1_2079
if 
  locate_char_any_means_2d $MA1NPC 0 22.3125 -943.8125 radius 26.0 15.0
goto_if_false @MA1_1669
car_goto_coordinates $MA1CAR4 drive_to 256.8125 -519.9375 26.0
$CARPOINT1 = 1

:MA1_2079
if 
  $CARPOINT2 == 0
goto_if_false @MA1_2148
if 
  locate_char_any_means_2d $MA1NPC 0 256.8125 -519.9375 radius 26.0 15.0
goto_if_false @MA1_1669
car_goto_coordinates $MA1CAR4 drive_to 454.875 -293.3125 21.25
$CARPOINT2 = 1

:MA1_2148
if 
  $CARPOINT3 == 0
goto_if_false @MA1_2217
if 
  locate_char_any_means_2d $MA1NPC 0 454.875 -293.3125 radius 21.25 15.0
goto_if_false @MA1_1669
car_goto_coordinates $MA1CAR4 drive_to 142.6875 104.6875 16.125
$CARPOINT3 = 1

:MA1_2217
if 
  locate_char_any_means_2d $MA1NPC 0 142.6875 104.6875 radius 15.0 15.0
goto_if_false @MA1_1669
clear_onscreen_counter $MA1FIND
set_fixed_camera_position 132.6875 71.9375 32.125 rotation 0.0 0.0 0.0
point_camera_at_car $MA1CAR4 mode 15 switchstyle 1
set_player_control $PLAYER_CHAR can_move 0
create_char $MA1KILL1 = create_actor 21 20 at 179.1875 164.375 11.6875
create_char $MA1KILL2 = create_actor 21 21 at 147.8125 206.125 11.5
create_char $MA1KILL3 = create_actor 21 20 at 132.0 205.0 11.5
create_char $MA1KILL4 = create_actor 21 21 at 121.5625 192.0625 14.5
set_char_heading $MA1KILL4 z_angle_to 131.0
set_char_stay_in_same_place $MA1KILL4 maintain_position_when_attacked 1
give_weapon_to_char $MA1KILL1 weapon 5 ammo 999
give_weapon_to_char $MA1KILL2 weapon 5 ammo 999
give_weapon_to_char $MA1KILL3 weapon 5 ammo 999
give_weapon_to_char $MA1KILL4 weapon 5 ammo 999
create_car $MA1CAR1 = create_car 121 at 131.5 209.125 12.375
create_char_as_passenger $YUXIANG = create_actor 21 27 in_car $MA1CAR1 passenger_seat 0
add_blip_for_char $MA1YUXIANGPICK = create_marker_above_actor $YUXIANG
set_char_cant_be_dragged_out $YUXIANG locked_while_in_vehicle 1
set_car_heading $MA1CAR1 z_angle_to 270.0
add_sphere $MA1SPHERE = create_sphere 131.8125 211.5 11.5 2.0
change_car_lock 2 = car $MA1CAR1
wait 2000
set_char_obj_leave_car $MA1NPC leave_car $MA1CAR4
wait 2000
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
change_blip_display $MA1CAR4PICK display 0
remove_char_elegantly $MA1NPC
print_now 'MA1_16' time 4000 1
$KILLWALIK = 1
$KILLWALIK2 = 1
$KILLWALIK3 = 1
$MA1_TIME = 120000
display_onscreen_timer $MA1_TIME
add_blip_for_char $MA1PICK1 = create_marker_above_actor $MA1KILL1
add_blip_for_char $MA1PICK2 = create_marker_above_actor $MA1KILL2
add_blip_for_char $MA1PICK3 = create_marker_above_actor $MA1KILL3
add_blip_for_char $MA1PICK4 = create_marker_above_actor $MA1KILL4
change_blip_colour $MA1PICK1 color_to 0
change_blip_colour $MA1PICK2 color_to 0
change_blip_colour $MA1PICK3 color_to 0
change_blip_colour $MA1PICK4 color_to 0

:MA1_2642
wait 0
if 
  $KILLWALIK == 1
goto_if_false @MA1_2712
set_char_obj_goto_coord_on_foot $MA1KILL1 walk_to 179.1875 164.375
if 
  locate_char_any_means_2d $MA1KILL1 0 179.1875 164.375 radius 0.5 0.5
goto_if_false @MA1_2712
$KILLWALIK = 2

:MA1_2712
if 
  $KILLWALIK == 2
goto_if_false @MA1_2778
set_char_obj_goto_coord_on_foot $MA1KILL1 walk_to 149.375 164.375
if 
  locate_char_any_means_2d $MA1KILL1 0 149.375 164.375 radius 11.5 0.5
goto_if_false @MA1_2778
$KILLWALIK = 1

:MA1_2778
wait 10
if 
  $KILLWALIK2 == 1
goto_if_false @MA1_2848
set_char_obj_goto_coord_on_foot $MA1KILL2 walk_to 147.8125 206.125
if 
  locate_char_any_means_2d $MA1KILL2 0 147.8125 206.125 radius 0.5 0.5
goto_if_false @MA1_2848
$KILLWALIK2 = 2

:MA1_2848
if 
  $KILLWALIK2 == 2
goto_if_false @MA1_2914
set_char_obj_goto_coord_on_foot $MA1KILL2 walk_to 163.8125 206.125
if 
  locate_char_any_means_2d $MA1KILL2 0 163.8125 206.125 radius 0.5 0.5
goto_if_false @MA1_2914
$KILLWALIK2 = 1

:MA1_2914
wait 10
if 
  $KILLWALIK3 == 1
goto_if_false @MA1_2984
set_char_obj_goto_coord_on_foot $MA1KILL3 walk_to 132.0 205.0
if 
  locate_char_any_means_2d $MA1KILL3 0 132.0 205.0 radius 0.5 0.5
goto_if_false @MA1_2984
$KILLWALIK3 = 2

:MA1_2984
if 
  $KILLWALIK3 == 2
goto_if_false @MA1_3050
set_char_obj_goto_coord_on_foot $MA1KILL3 walk_to 132.0 184.0
if 
  locate_char_any_means_2d $MA1KILL3 0 132.0 184.0 radius 0.5 0.5
goto_if_false @MA1_3050
$KILLWALIK3 = 1

:MA1_3050
if and
  not is_car_dead $MA1CAR1
  $MA1_TIME > 0
goto_if_false @MA1_5450
if or
  is_player_shooting_in_area $PLAYER_CHAR shooting_in_area 254.0 70.1875 91.375 263.875 0
  has_char_spotted_player $MA1KILL1 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MA1KILL2 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MA1KILL3 spotted_player $PLAYER_CHAR
  has_char_spotted_player $MA1KILL4 spotted_player $PLAYER_CHAR
goto_if_false @MA1_3149
$SPOTTED = 1
goto @MA1_3212

:MA1_3149
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 131.8125 211.5 11.5 radius 2.0 2.0 2.0
goto_if_false @MA1_2642
remove_sphere $MA1SPHERE
print_now 'MA1_17' time 5000 1
$SAYMA1_17 = 1

:MA1_3212
set_char_obj_kill_player_on_foot $MA1KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL4 kill_player $PLAYER_CHAR
if 
  $SPOTTED == 1
goto_if_false @MA1_3869
set_char_accuracy $MA1KILL1 weapon_accuracy_to 85
set_char_accuracy $MA1KILL2 weapon_accuracy_to 85
set_char_accuracy $MA1KILL3 weapon_accuracy_to 85
set_char_accuracy $MA1KILL4 weapon_accuracy_to 85
goto @MA1_3869

:MA1_3297
set_char_obj_run_to_coord $MA1NPC run_to 155.8125 -396.375
wait 3000
delete_char $MA1NPC
remove_sphere $MA1SPHERE
remove_blip $TAXI_PICKUP
set_player_control $PLAYER_CHAR can_move 1
restore_camera_jumpcut 
switch_widescreen 0
add_pager_message 'MA1_31' 140 10 2
create_char $MA1KILL1 = create_actor 21 20 at 179.1875 164.375 11.6875
create_char $MA1KILL2 = create_actor 21 21 at 147.8125 206.125 11.5
create_char $MA1KILL3 = create_actor 21 20 at 132.0 205.0 11.5
create_char $MA1KILL4 = create_actor 21 21 at 121.5625 192.0625 14.5
create_char $MA1KILLA = create_actor 21 20 at 182.5 196.125 11.5
create_char $MA1KILLB = create_actor 21 21 at 181.875 183.8125 16.8125
create_char $MA1KILLC = create_actor 21 20 at 155.3125 212.375 14.9375
create_char $MA1KILLD = create_actor 21 21 at 146.0 235.3125 15.375
create_char $MA1KILLE = create_actor 21 20 at 131.375 175.5625 13.0625
give_weapon_to_char $MA1KILL1 weapon 5 ammo 999
give_weapon_to_char $MA1KILL2 weapon 5 ammo 999
give_weapon_to_char $MA1KILL3 weapon 5 ammo 999
give_weapon_to_char $MA1KILL4 weapon 5 ammo 999
give_weapon_to_char $MA1KILLA weapon 5 ammo 999
give_weapon_to_char $MA1KILLB weapon 5 ammo 999
give_weapon_to_char $MA1KILLC weapon 5 ammo 999
give_weapon_to_char $MA1KILLD weapon 5 ammo 999
give_weapon_to_char $MA1KILLE weapon 5 ammo 999
set_char_obj_kill_player_on_foot $MA1KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILLA kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILLB kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILLC kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILLD kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILLE kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA1KILL4 kill_player $PLAYER_CHAR
set_char_stay_in_same_place $MA1KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILLA maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILLB maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILLC maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILLD maintain_position_when_attacked 1
set_char_stay_in_same_place $MA1KILLE maintain_position_when_attacked 1
create_car $MA1CAR1 = create_car 121 at 131.5 209.125 12.375
create_char_as_passenger $YUXIANG = create_actor 21 27 in_car $MA1CAR1 passenger_seat 0
add_blip_for_char $MA1YUXIANGPICK = create_marker_above_actor $YUXIANG
set_char_cant_be_dragged_out $YUXIANG locked_while_in_vehicle 1
set_car_heading $MA1CAR1 z_angle_to 270.0
add_sphere $MA1SPHERE = create_sphere 131.8125 211.5 11.5 2.0
change_car_lock 2 = car $MA1CAR1
$MA1_TIME = 120000
display_onscreen_timer $MA1_TIME

:MA1_3869
wait 0
if and
  not is_char_dead $YUXIANG
  not is_car_dead $MA1CAR1
  $MA1_TIME > 0
goto_if_false @MA1_5450
if and
  $SAYMA1_17 == 0
  $SAYMA1_27 == 0
goto_if_false @MA1_3984
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 131.8125 211.5 11.5 radius 2.0 2.0 2.0
goto_if_false @MA1_3984
print_now 'MA1_27' time 3000 1
$SAYMA1_27 = 1

:MA1_3984
if 
  is_char_dead $MA1KILL1
goto_if_false @MA1_4007
change_blip_display $MA1PICK1 display 0

:MA1_4007
if 
  is_char_dead $MA1KILL2
goto_if_false @MA1_4030
change_blip_display $MA1PICK2 display 0

:MA1_4030
if 
  is_char_dead $MA1KILL4
goto_if_false @MA1_4053
change_blip_display $MA1PICK4 display 0

:MA1_4053
if 
  is_char_dead $MA1KILL3
goto_if_false @MA1_3869
change_blip_display $MA1PICK3 display 0
change_blip_display $MA1PICK2 display 0
change_blip_display $MA1PICK1 display 0
change_blip_display $MA1PICK4 display 0
remove_sphere $MA1SPHERE
get_char_coordinates $MA1KILL3 position_to $MA1KILL3_X $MA1KILL3_Y $MA1KILL3_Z
create_pickup $MA1PICKUP = create_pickup 1384 type 3 at $MA1KILL3_X $MA1KILL3_Y $MA1KILL3_Z
print_now 'MA1_18' time 3000 1

:MA1_4150
wait 0
if and
  not is_char_dead $YUXIANG
  not is_car_dead $MA1CAR1
  $MA1_TIME > 0
goto_if_false @MA1_5450
if 
  has_pickup_been_collected $MA1PICKUP
goto_if_false @MA1_4150
change_car_lock 1 = car $MA1CAR1
if 
  $PAY_RANSOM == 1
goto_if_false @MA1_4238
print_now 'MA1_18' time 3000 1

:MA1_4238
wait 0
if and
  not is_char_dead $YUXIANG
  not is_car_dead $MA1CAR1
  $MA1_TIME > 0
goto_if_false @MA1_5450
if 
  is_player_in_car $PLAYER_CHAR in_car $MA1CAR1
goto_if_false @MA1_4238
clear_onscreen_timer $MA1_TIME
change_blip_display $MA1YUXIANGPICK display 0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 109.875 -1294.5 26.125 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
add_sphere $MA1SPHERE = create_sphere 109.875 -1294.5 26.125 4.0
clear_onscreen_timer $MA1_TIME
TIMERA = 0
$MA1_SAY22 = 0

:MA1_4362
wait 0
if and
  not is_char_dead $YUXIANG
  not is_car_dead $MA1CAR1
goto_if_false @MA1_5450
if 
  $MA1_SAY22 == 0
goto_if_false @MA1_4580
if and
  not TIMERA >= 8000
  TIMERA > 3000
goto_if_false @MA1_4447
print_now 'MA1_19' time 5000 1

:MA1_4447
if and
  not TIMERA >= 14000
  TIMERA > 8000
goto_if_false @MA1_4489
print_now 'MA1_20' time 6000 1

:MA1_4489
if and
  not TIMERA >= 19000
  TIMERA > 14000
goto_if_false @MA1_4531
print_now 'MA1_21' time 5000 1

:MA1_4531
if and
  not TIMERA >= 21000
  TIMERA > 19000
goto_if_false @MA1_4580
print_now 'MA1_22' time 4000 1
$MA1_SAY22 = 1

:MA1_4580
wait 0
if 
  not locate_player_any_means_3d $PLAYER_CHAR 0 131.5 209.125 12.375 radius 100.0 100.0 100.0
goto_if_false @MA1_4362
add_pager_message 'MA1_23' 140 10 2
create_car $MA1CAR2 = create_car 138 at 412.375 73.375 13.9375
create_car $MA1CAR3 = create_car 138 at 114.0625 -176.25 16.0
create_char_inside_car $MA1KILL5 = create_actor 21 20 in_car $MA1CAR2
create_char_inside_car $MA1KILL6 = create_actor 21 21 in_car $MA1CAR3
give_weapon_to_char $MA1KILL5 weapon 4 ammo 999
give_weapon_to_char $MA1KILL6 weapon 4 ammo 999
add_blip_for_char $MA1PICK5 = create_marker_above_actor $MA1KILL5
add_blip_for_char $MA1PICK6 = create_marker_above_actor $MA1KILL6
change_blip_colour $MA1PICK5 color_to 0
change_blip_colour $MA1PICK6 color_to 0
set_car_mission $MA1CAR2 driver_behaviour_to 4
set_car_mission $MA1CAR3 driver_behaviour_to 4
set_car_driving_style $MA1CAR2 traffic_behavior_to 2
set_car_driving_style $MA1CAR3 traffic_behavior_to 2
change_car_lock 2 = car $MA1CAR2
change_car_lock 2 = car $MA1CAR3
set_car_cruise_speed $MA1CAR2 max_speed_to 45.0
set_car_cruise_speed $MA1CAR3 max_speed_to 45.0
$MA1CARDAM = 100
display_onscreen_counter_with_string $MA1CARDAM 1 'DAM'
goto @MA1_4839

:MA1_4832
change_blip_display $MA1YUXIANGPICK display 3

:MA1_4839
wait 0
get_car_health $MA1CAR_HEALTH = car $MA1CAR1
$MA1CAR_HEALTH /= 10
set_var_int_to_var_int $MA1CARDAM = $MA1CAR_HEALTH
if and
  not is_char_dead $YUXIANG
  not is_car_dead $MA1CAR1
goto_if_false @MA1_5450
if 
  is_player_in_car $PLAYER_CHAR in_car $MA1CAR1
goto_if_false @MA1_4832
change_blip_display $MA1YUXIANGPICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MA1CAR1
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 109.875 -1294.5 26.125 radius 4.0 4.0 3.0
goto_if_false @MA1_4839
goto @MA1_4964

:MA1_4964
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
remove_sphere $MA1SPHERE
remove_blip $TAXI_PICKUP
remove_blip $MA1YUXIANGPICK
remove_char_elegantly $YUXIANG
clear_onscreen_counter $MA1CARDAM
clear_onscreen_timer $MA1_TIME
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
warp_player_from_car_to_coord $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_now 'MA1_24' time 6000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
wait 6000
print_now 'MA1_25' time 5000 1
wait 5000
print_now 'MA1_26' time 5000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 5000
do_fade 0 500
wait 500
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
clear_wanted_level $PLAYER_CHAR
$4527 = 1
if 
  $PAY_RANSOM == 1
goto_if_false @MA1_5384
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
register_mission_passed 'MA1_2'
wait 3500
start_new_script @TWENT8 
return 

:MA1_5384
print_with_number_big 'M_PASS' 30000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 30000
register_mission_passed 'MA1_2'
wait 3500
start_new_script @TWENT8 
return 

:MA1_5450
print_big 'M_FAIL' 6000 ms 1
$4527 = 0
change_blip_display $ASUKA display 3
return 

:MA1_5481
$ONMISSION = 0
remove_sphere $MA1SPHERE
remove_sphere $MA1SPHERE2
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP2
remove_blip $MA1CAR4PICK
remove_blip $MA1PICK1
remove_blip $MA1PICK2
remove_blip $MA1PICK3
remove_blip $MA1PICK4
remove_blip $MA1PICK5
remove_blip $MA1PICK6
remove_blip $MA1YUXIANGPICK
remove_char_elegantly $ASUKA_CHAR
remove_char_elegantly $MA1KILL1
remove_char_elegantly $MA1KILL2
remove_char_elegantly $MA1KILL3
remove_char_elegantly $MA1KILL4
remove_char_elegantly $YUXIANG
clear_onscreen_counter $MA1FIND
clear_onscreen_counter $MA1CARDAM
clear_onscreen_timer $MA1_TIME
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 121
mark_model_as_no_longer_needed 138
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 27---------------
// Originally: Cipriani's Chauffeur

:MA2
gosub @MA2_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA2_27
gosub @MA2_4808

:MA2_27
gosub @MA2_4839
terminate_this_script 

:MA2_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA2'
request_model 1
request_model 11
request_model 159
load_special_character 1 'ASUKA'
load_special_character 2 'BUTLER'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA2_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA2_276
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA2_304
goto @MA2_648

:MA2_304
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA2_276
clear_help 
load_mission_audio 'LIB_A1'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA2_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA2_376
wait 0
if 
  TIMERA >= 5160
goto_if_false @MA2_376
print_now 'MA2_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA2_424
wait 0
if 
  TIMERA >= 11040
goto_if_false @MA2_424
print_now 'MA2_5' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA2_472
wait 0
if 
  TIMERA >= 14040
goto_if_false @MA2_472
print_now 'MA2_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA2_520
wait 0
if 
  TIMERA >= 17230
goto_if_false @MA2_520
print_now 'MA2_7' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA2_568
wait 0
if 
  TIMERA >= 22260
goto_if_false @MA2_568
print_now 'MA2_8' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA2_616
wait 0
if 
  TIMERA >= 25060
goto_if_false @MA2_616
clear_prints 
wait 1000
clear_mission_audio 

:MA2_648
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 459.375 -1412.875 26.125 color 5 display 2
add_sphere $MA2SPHERE = create_sphere 459.375 -1412.875 26.125 2.5
change_blip_scale $TAXI_PICKUP1 size 3

:MA2_791
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 459.375 -1412.875 26.125 radius 2.0 2.0 2.0
goto_if_false @MA2_791
remove_blip $TAXI_PICKUP1
remove_sphere $MA2SPHERE
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_player_control $PLAYER_CHAR can_move 0
remove_sphere $MA2SPHERE
do_fade 0 500
wait 500
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 454.375 -1357.938 68.8125 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
create_char $MA2NPC = create_actor 21 27 at 461.0625 -1357.5 68.8125
set_player_coordinates $PLAYER_CHAR at 469.75 -1372.375 68.3125
set_char_heading $MA2NPC z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
set_char_obj_goto_coord_on_foot $PLAYER_ACTOR walk_to 461.0625 -1360.0
turn_char_to_face_char $MA2NPC look_at_actor $PLAYER_ACTOR
do_fade 1 1000
wait 1000
print_now 'MA2_9' time 5000 1
set_char_wait_state $MA2NPC anim 19 wait_state_time 3000
wait 5000
print_now 'MA2_10' time 5000 1
wait 5000
print_now 'MA2_11' time 5000 1
set_char_wait_state $MA2NPC anim 19 wait_state_time 3000
wait 5000
print_now 'MA2_11A' time 5000 1
set_char_wait_state $MA2NPC anim 19 wait_state_time 3000
wait 5000
print_now 'MA2_12' time 4000 1
wait 4000
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 500
wait 500
delete_char $MA2NPC
do_fade 1 1000
wait 1000
print_now 'MA2_13' time 5000 1
wait 5000
print_help 'TFTF'
print_now 'MA2_25' time 100000 1

:MA2_1212
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA2_1260
clear_prints 
load_splash_screen 'MAINSC1'
start_new_script @JIDOOR 
goto @MA2_1304

:MA2_1260
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA2_1212
clear_prints 
load_splash_screen 'MAINSC1'
start_new_script @COPDOOR 
goto @MA2_2789

:MA2_1304
unload_special_character 2
load_special_character 2 'CURLY'
do_fade 0 1000
wait 1000
create_char $MA2KILL1 = create_actor 21 27 at 453.8125 -1385.438 68.375
create_char $MA2KILL2 = create_actor 21 27 at 467.4375 -1364.188 68.3125
create_char $MA2KILL3 = create_actor 21 27 at 470.1875 -1376.625 68.3125
create_char $MA2KILL4 = create_actor 21 27 at 475.5 -1382.938 68.375
create_char $MA2KILL5 = create_actor 21 27 at 467.3125 -1420.5 44.3125
create_char $MA2KILL6 = create_actor 21 27 at 464.125 -1425.0 39.5
create_char $MA2KILL7 = create_actor 21 27 at 447.125 -1426.688 44.3125
create_char $MA2KILL8 = create_actor 21 27 at 462.375 -1443.125 35.375
create_char $MA2KILL9 = create_actor 21 27 at 441.3125 -1409.313 34.375
create_char $MA2KILL10 = create_actor 21 27 at 423.1875 -1388.375 25.9375
give_weapon_to_char $MA2KILL1 weapon 3 ammo 999
give_weapon_to_char $MA2KILL2 weapon 2 ammo 999
give_weapon_to_char $MA2KILL3 weapon 3 ammo 999
give_weapon_to_char $MA2KILL4 weapon 2 ammo 999
give_weapon_to_char $MA2KILL5 weapon 3 ammo 999
give_weapon_to_char $MA2KILL6 weapon 2 ammo 999
give_weapon_to_char $MA2KILL7 weapon 5 ammo 999
give_weapon_to_char $MA2KILL8 weapon 4 ammo 999
give_weapon_to_char $MA2KILL9 weapon 2 ammo 999
give_weapon_to_char $MA2KILL10 weapon 4 ammo 999
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
wait 1000
set_char_obj_kill_player_on_foot $MA2KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA2KILL10 kill_player $PLAYER_CHAR
set_char_stay_in_same_place $MA2KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA2KILL10 maintain_position_when_attacked 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 3
$FLAME1_X = 469.1875
$FLAME1_Y = -1377.625
$FLAME1_Z = 67.8125
$FLAME2_X = 450.5625
$FLAME2_Y = -1402.875
$FLAME2_Z = 43.8125
$FLAME3_X = 466.0
$FLAME3_Y = -1445.125
$FLAME3_Z = 33.8125
$EXPLOSION1 = 0
$EXPLOSION2 = 0
$EXPLOSION3 = 0
add_blip_for_coord_old $FLAME_PICKUP1 = create_marker_at $FLAME1_X $FLAME1_Y $FLAME1_Z color 5 display 2
change_blip_scale $FLAME_PICKUP1 size 3

:MA2_1934
wait 0
draw_corona 1.5 5 0 with_color 0 0 100 at_point $FLAME1_X $FLAME1_Y $FLAME1_Z
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 $FLAME1_X $FLAME1_Y $FLAME1_Z radius 1.5 1.5 1.5
goto_if_false @MA2_1934
remove_blip $FLAME_PICKUP1
create_object $BARREL1 = create_object #BARREL4 at $FLAME1_X $FLAME1_Y $FLAME1_Z
add_blip_for_object $BARREL1_BLIP = create_marker_above_object $BARREL1

:MA2_2027
wait 0
set_object_coordinates $BARREL1 at $FLAME1_X $FLAME1_Y $FLAME1_Z
if 
  has_object_been_damaged $BARREL1
goto_if_false @MA2_2027
$EXPLOSION1 = 1
delete_object $BARREL1
remove_blip $BARREL1_BLIP
add_blip_for_coord_old $FLAME_PICKUP2 = create_marker_at $FLAME2_X $FLAME2_Y $FLAME2_Z color 5 display 2
change_blip_scale $FLAME_PICKUP2 size 3
start_script_fire $FIRE1 = create_fire_at 455.4375 -1350.25 68.0
start_script_fire $FIRE2 = create_fire_at 457.0 -1350.188 68.0
start_script_fire $FIRE3 = create_fire_at 470.0 -1364.688 68.3125
start_script_fire $FIRE4 = create_fire_at 470.0 -1366.688 68.3125
start_script_fire $FIRE5 = create_fire_at 466.8125 -1370.75 68.3125
start_script_fire $FIRE6 = create_fire_at 468.625 -1374.375 68.3125
start_script_fire $FIRE7 = create_fire_at 456.75 -1387.438 72.375
start_script_fire $FIRE8 = create_fire_at 455.875 -1389.5 70.375
start_script_fire $FIRE9 = create_fire_at 475.625 -1385.438 67.6875
start_script_fire $FIRE10 = create_fire_at 474.125 -1383.75 67.6875
add_explosion 1 at $FLAME1_X $FLAME1_Y $FLAME1_Z

:MA2_2256
wait 0
draw_corona 1.5 5 0 with_color 0 0 100 at_point $FLAME2_X $FLAME2_Y $FLAME2_Z
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 $FLAME2_X $FLAME2_Y $FLAME2_Z radius 1.5 1.5 1.5
goto_if_false @MA2_2256
remove_blip $FLAME_PICKUP2
create_object $BARREL2 = create_object #BARREL4 at $FLAME2_X $FLAME2_Y $FLAME2_Z
add_blip_for_object $BARREL2_BLIP = create_marker_above_object $BARREL2

:MA2_2349
wait 0
set_object_coordinates $BARREL2 at $FLAME2_X $FLAME2_Y $FLAME2_Z
if 
  has_object_been_damaged $BARREL2
goto_if_false @MA2_2349
$EXPLOSION2 = 1
delete_object $BARREL2
remove_blip $BARREL2_BLIP
add_blip_for_coord_old $FLAME_PICKUP3 = create_marker_at $FLAME3_X $FLAME3_Y $FLAME3_Z color 5 display 2
change_blip_scale $FLAME_PICKUP3 size 3
start_script_fire $FIRE11 = create_fire_at 456.5625 -1406.625 44.3125
start_script_fire $FIRE12 = create_fire_at 456.25 -1408.438 44.3125
start_script_fire $FIRE13 = create_fire_at 456.5 -1411.75 44.3125
start_script_fire $FIRE14 = create_fire_at 473.875 -1430.0 44.3125
start_script_fire $FIRE15 = create_fire_at 468.6875 -1428.875 41.3125
start_script_fire $FIRE16 = create_fire_at 466.9375 -1428.813 41.0
start_script_fire $FIRE16A = create_fire_at 466.3125 -1423.375 43.75
add_explosion 1 at $FLAME2_X $FLAME2_Y $FLAME2_Z

:MA2_2536
wait 0
draw_corona 1.5 5 0 with_color 0 0 100 at_point $FLAME3_X $FLAME3_Y $FLAME3_Z
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 $FLAME3_X $FLAME3_Y $FLAME3_Z radius 1.5 1.5 1.5
goto_if_false @MA2_2536
remove_blip $FLAME_PICKUP3
create_object $BARREL3 = create_object #BARREL4 at $FLAME3_X $FLAME3_Y $FLAME3_Z
add_blip_for_object $BARREL3_BLIP = create_marker_above_object $BARREL3

:MA2_2629
wait 0
set_object_coordinates $BARREL3 at $FLAME3_X $FLAME3_Y $FLAME3_Z
if 
  has_object_been_damaged $BARREL3
goto_if_false @MA2_2629
$EXPLOSION3 = 1
delete_object $BARREL3
remove_blip $BARREL3_BLIP
start_script_fire $FIRE17 = create_fire_at 457.0 -1436.063 39.0
start_script_fire $FIRE18 = create_fire_at 465.3125 -1441.5 33.75
start_script_fire $FIRE19 = create_fire_at 464.0 -1438.063 34.3125
start_script_fire $FIRE20 = create_fire_at 441.4375 -1399.063 34.0
add_explosion 1 at $FLAME3_X $FLAME3_Y $FLAME3_Z
if 
  is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MA2_4713
print_now 'WANT' time 3000 1
goto @MA2_4713

:MA2_2789
load_special_character 2 'KEEPER'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
restore_camera_jumpcut 
set_player_coordinates $PLAYER_CHAR at 460.875 -1415.125 26.125
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 370.0 -576.5625 26.125 color 5 display 2
change_blip_scale $TAXI_PICKUP1 size 3

:MA2_2894
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 370.0 -576.5625 26.125 radius 1.0 1.0 2.0
goto_if_false @MA2_2894
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
remove_blip $TAXI_PICKUP1
do_fade 0 1000
wait 1000
create_char $MA2NPC2 = create_actor 21 27 at 373.1875 -576.5625 25.125
set_fixed_camera_position 360.0 -587.625 32.125 rotation 0.0 0.0 0.0
point_camera_at_point 373.1875 -576.5625 25.125 switchstyle 2
turn_char_to_face_char $MA2NPC2 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MA2NPC2
set_char_wait_state $MA2NPC2 anim 19 wait_state_time 3000
do_fade 1 1000
wait 1000
turn_char_to_face_char $MA2NPC2 look_at_actor $PLAYER_ACTOR
set_char_wait_state $MA2NPC2 anim 19 wait_state_time 3000
print_now 'MA2_17' time 5000 1
wait 5000
do_fade 0 1000
wait 1000
delete_char $MA2NPC2
restore_camera_jumpcut 
switch_widescreen 0
create_car $MA2RCCAR = create_car 159 at 380.1875 -585.9375 25.125
set_car_heading $MA2RCCAR z_angle_to 90.0
add_blip_for_car $TAXI_PICKUP1 = create_marker_above_car $MA2RCCAR
change_blip_colour $TAXI_PICKUP1 color_to 5
request_model 98
request_model 116
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1

:MA2_3179
wait 0
if 
  not is_car_dead $MA2RCCAR
goto_if_false @MA2_4808
if 
  is_player_in_car $PLAYER_CHAR in_car $MA2RCCAR
goto_if_false @MA2_3179
remove_blip $TAXI_PICKUP1
give_remote_controlled_model_to_player $PLAYER_CHAR in_RC_mode_at 352.375 -600.875 20.5 angle 180.0 RC_model 98
$MA2_TIME = 90000
display_onscreen_timer $MA2_TIME
create_car $COPCAR = create_car 116 at 114.0625 -176.25 16.0
create_char_inside_car $MA2COP10 = create_actor 6 1 in_car $COPCAR
set_car_driving_style $COPCAR traffic_behavior_to 2
set_car_mission $COPCAR driver_behaviour_to 1
set_car_cruise_speed $COPCAR max_speed_to 25.0
add_blip_for_char $MA2COP_PICK = create_marker_above_actor $MA2COP10
change_blip_scale $MA2COP_PICK size 3
change_blip_colour $MA2COP_PICK color_to 0

:MA2_3329
wait 0
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if 
  $MA2_TIME > 0
goto_if_false @MA2_3469
if 
  not is_player_in_remote_mode $PLAYER_CHAR
goto_if_false @MA2_3329
clear_onscreen_timer $MA2_TIME
TIMERA = 0

:MA2_3392
wait 0
get_car_health $COPCAR_HEALTH = car $COPCAR
if 
  not TIMERA >= 3000
goto_if_false @MA2_3469
if or
  not $COPCAR_HEALTH >= 250
  is_car_dead $COPCAR
  is_char_dead $MA2COP10
goto_if_false @MA2_3392
clear_wanted_level $PLAYER_CHAR
explode_car $COPCAR
goto @MA2_3967

:MA2_3469
blow_up_rc_buggy 
remove_blip $MA2COP_PICK
delete_char $MA2COP10
clear_onscreen_timer $MA2_TIME
wait 100
create_char $MA2COP1 = create_actor 6 1 at 338.0 -1116.438 1.5
create_char $MA2COP2 = create_actor 6 1 at 338.0 -1111.875 1.5
create_char $MA2COP3 = create_actor 6 1 at 340.9375 -1102.625 1.5
create_char $MA2COP4 = create_actor 6 1 at 340.9375 -1097.688 1.5
create_char $MA2COP5 = create_actor 6 1 at 344.9375 -1097.875 1.5
create_char $MA2COP6 = create_actor 6 1 at 342.375 -1102.688 1.5
create_char $MA2COP7 = create_actor 6 1 at 347.375 -1100.938 1.5
create_char $MA2COP8 = create_actor 6 1 at 347.0 -1104.438 1.5
create_char $MA2COP9 = create_actor 6 1 at 345.9375 -1106.5 1.5
create_char $MA2COP10 = create_actor 6 1 at 344.6875 -1112.563 0.5
turn_char_to_face_char $MA2COP9 look_at_actor $MA2COP8
turn_char_to_face_char $MA2COP8 look_at_actor $MA2COP9
set_char_wait_state $MA2COP8 anim 19 wait_state_time 600000
set_char_wait_state $MA2COP9 anim 19 wait_state_time 600000
give_weapon_to_char $MA2COP1 weapon 4 ammo 999
give_weapon_to_char $MA2COP2 weapon 2 ammo 999
give_weapon_to_char $MA2COP3 weapon 4 ammo 999
give_weapon_to_char $MA2COP4 weapon 2 ammo 999
give_weapon_to_char $MA2COP5 weapon 2 ammo 999
give_weapon_to_char $MA2COP6 weapon 2 ammo 999
give_weapon_to_char $MA2COP7 weapon 2 ammo 999
give_weapon_to_char $MA2COP8 weapon 2 ammo 999
give_weapon_to_char $MA2COP9 weapon 2 ammo 999
give_weapon_to_char $MA2COP10 weapon 2 ammo 999
set_char_heading $MA2COP1 z_angle_to 90.0
set_char_heading $MA2COP2 z_angle_to 90.0
set_char_heading $MA2COP3 z_angle_to 90.0
set_char_heading $MA2COP4 z_angle_to 90.0
set_char_heading $MA2COP5 z_angle_to 90.0
set_char_heading $MA2COP6 z_angle_to 270.0
set_char_heading $MA2COP7 z_angle_to 180.0
set_char_heading $MA2COP10 z_angle_to 90.0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
add_blip_for_char $MA2COP_PICK = create_marker_above_actor $MA2COP10
change_blip_scale $MA2COP_PICK size 3
change_blip_colour $MA2COP_PICK color_to 0
set_player_control $PLAYER_CHAR can_move 1

:MA2_3920
wait 0
if 
  is_char_dead $MA2COP10
goto_if_false @MA2_3920
print_now 'WANT' time 3000 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 5
remove_blip $MA2COP_PICK

:MA2_3967
print_now 'MA2_16' time 4000 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 459.375 -1412.875 26.125 color 5 display 2
add_sphere $MA2SPHERE1 = create_sphere 459.375 -1412.875 26.125 2.5
change_blip_scale $TAXI_PICKUP1 size 3

:MA2_4024
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 459.375 -1412.875 26.125 radius 2.0 2.0 2.0
goto_if_false @MA2_4024
set_player_control $PLAYER_CHAR can_move 0
remove_blip $TAXI_PICKUP1
remove_sphere $MA2SPHERE1
switch_widescreen 1
load_special_character 2 'BUTLER'
do_fade 0 1000
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 444.1875 -1413.625 30.125 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
create_char $MA2NPC = create_actor 21 27 at 463.375 -1416.625 26.125
turn_char_to_face_char $MA2NPC look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MA2NPC
do_fade 1 1000
wait 1000
print_now 'MA2_19' time 5000 1
set_char_wait_state $MA2NPC anim 19 wait_state_time 3000
wait 5000
print_now 'MA2_20' time 4000 1
wait 4000
do_fade 0 1000
wait 1000
delete_char $MA2NPC
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 107.5625 -1275.563 26.125 color 5 display 2
add_sphere $MA2SPHERE2 = create_sphere 107.5625 -1275.563 26.125 2.5
change_blip_scale $TAXI_PICKUP2 size 3
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
wait 1000

:MA2_4347
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 2.0 2.0 2.0
goto_if_false @MA2_4347
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
remove_blip $TAXI_PICKUP2
remove_sphere $MA2SPHERE2
do_fade 0 1000
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_now 'MA2_22' time 5000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
wait 5000
print_now 'MA2_23' time 3000 1
wait 3500
print_now 'MA2_24' time 4000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 4000
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1

:MA2_4713
wait 0
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MA2_4713
add_score $PLAYER_CHAR money += 10000
print_with_number_big 'M_PASS' 10000 5000 ms 1
$4528 = 1
register_mission_passed 'MA2_2'
clear_wanted_level $PLAYER_CHAR
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
start_new_script @TWENT9 
return 

:MA2_4808
print_big 'M_FAIL' 6000 ms 1
$4528 = 0
change_blip_display $ASUKA display 3
return 

:MA2_4839
$ONMISSION = 0
remove_all_script_fires 
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_sphere $MA2SPHERE
remove_sphere $MA2SPHERE1
remove_sphere $MA2SPHERE2
clear_onscreen_timer $MA2_TIME
clear_onscreen_counter $MA2CARDAM
remove_char_elegantly $MA2KILL1
remove_char_elegantly $MA2KILL2
remove_char_elegantly $MA2KILL3
remove_char_elegantly $MA2KILL4
remove_char_elegantly $MA2KILL5
remove_char_elegantly $MA2KILL6
remove_char_elegantly $MA2KILL7
remove_char_elegantly $MA2KILL8
remove_char_elegantly $MA2KILL9
remove_char_elegantly $MA2KILL10
remove_char_elegantly $MA2COP1
remove_char_elegantly $MA2COP2
remove_char_elegantly $MA2COP3
remove_char_elegantly $MA2COP4
remove_char_elegantly $MA2COP5
remove_char_elegantly $MA2COP6
remove_char_elegantly $MA2COP7
remove_char_elegantly $MA2COP8
remove_char_elegantly $MA2COP9
remove_char_elegantly $MA2COP10
remove_blip $FLAME_PICKUP1
remove_blip $FLAME_PICKUP2
remove_blip $FLAME_PICKUP3
delete_object $BARREL1
remove_blip $BARREL1_BLIP
delete_object $BARREL2
remove_blip $BARREL2_BLIP
delete_object $BARREL3
remove_blip $BARREL3_BLIP
remove_blip $MA2COP_PICK
delete_char $MA2NPC
mark_model_as_no_longer_needed 1
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 159
mark_model_as_no_longer_needed 98
mark_model_as_no_longer_needed 116
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 28---------------
// Originally: Dead Skunk In The Trunk

:MA3
gosub @MA3_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA3_27
gosub @MA3_2851

:MA3_27
gosub @MA3_2882
terminate_this_script 

:MA3_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA3'
request_model 70
load_special_character 1 'ASUKA'
load_special_character 2 'OJG2'
load_all_models_now 
switch_widescreen 1
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA3_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA3_267
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA3_295
goto @MA3_691

:MA3_295
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA3_267
clear_help 
load_mission_audio 'LIB_A2'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA3_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA3_367
wait 0
if 
  TIMERA >= 6280
goto_if_false @MA3_367
print_now 'MA3_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA3_415
wait 0
if 
  TIMERA >= 11260
goto_if_false @MA3_415
print_now 'MA3_5' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA3_463
wait 0
if 
  TIMERA >= 18120
goto_if_false @MA3_463
print_now 'MA3_6' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA3_511
wait 0
if 
  TIMERA >= 23250
goto_if_false @MA3_511
print_now 'MA3_7' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA3_559
wait 0
if 
  TIMERA >= 28020
goto_if_false @MA3_559
print_now 'MA3_8' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA3_607
wait 0
if 
  TIMERA >= 33050
goto_if_false @MA3_607
print_now 'MA3_8A' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA3_657
wait 0
if 
  TIMERA >= 38200
goto_if_false @MA3_657
clear_prints 
wait 1000
clear_mission_audio 

:MA3_691
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at -18.5625 -222.75 29.8125 color 5 display 2
add_sphere $MA3SPHERE = create_sphere -18.5625 -222.75 28.8125 2.5
change_blip_scale $TAXI_PICKUP size 3
give_weapon_to_player $PLAYER_CHAR weapon 1 ammo 150
set_current_player_weapon $PLAYER_CHAR armed_weapon_to 1

:MA3_856
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -18.5625 -222.75 29.8125 radius 2.0 2.0 2.0
goto_if_false @MA3_856
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
clear_area 1 at -18.9375 -94.75 19.0 range 100.0
remove_blip $TAXI_PICKUP
remove_sphere $MA3SPHERE
create_char $FOOTBALL_MAN = create_actor 21 27 at -18.9375 -90.75 -100.0
set_char_heading $FOOTBALL_MAN z_angle_to 90.0
add_blip_for_char $MA3FMPICK = create_marker_above_actor $FOOTBALL_MAN
create_char $MA3KILL1 = create_actor 21 70 at -15.6875 -90.4375 19.25
create_char $MA3KILL2 = create_actor 21 70 at -11.125 -90.75 19.25
create_char $MA3KILL3 = create_actor 21 70 at -8.1875 -90.625 19.25
create_char $MA3KILL4 = create_actor 21 70 at -0.1875 -80.75 19.25
create_char $MA3KILL5 = create_actor 21 70 at -21.9375 -90.75 19.25
create_char $MA3KILL6 = create_actor 21 70 at -25.125 -90.75 19.25
create_char $MA3KILL7 = create_actor 21 70 at -28.1875 -90.625 19.25
create_char $MA3KILL8 = create_actor 21 70 at -18.9375 -80.75 19.25
create_char $MA3KILL9 = create_actor 21 70 at -18.9375 -60.75 19.25
create_char $MA3KILL10 = create_actor 21 70 at -18.9375 -50.75 19.25
give_weapon_to_char $MA3KILL1 weapon 1 ammo 999
give_weapon_to_char $MA3KILL2 weapon 1 ammo 999
give_weapon_to_char $MA3KILL3 weapon 1 ammo 999
give_weapon_to_char $MA3KILL4 weapon 1 ammo 999
give_weapon_to_char $MA3KILL5 weapon 1 ammo 999
give_weapon_to_char $MA3KILL6 weapon 1 ammo 999
give_weapon_to_char $MA3KILL7 weapon 1 ammo 999
give_weapon_to_char $MA3KILL8 weapon 1 ammo 999
give_weapon_to_char $MA3KILL9 weapon 1 ammo 999
give_weapon_to_char $MA3KILL10 weapon 1 ammo 999
set_char_health $MA3KILL1 health_to 200
set_char_health $MA3KILL2 health_to 200
set_char_health $MA3KILL3 health_to 200
set_char_health $MA3KILL4 health_to 200
set_char_health $MA3KILL5 health_to 200
set_char_health $MA3KILL6 health_to 200
set_char_health $MA3KILL7 health_to 200
set_char_health $MA3KILL8 health_to 200
set_char_health $MA3KILL9 health_to 200
set_char_health $MA3KILL10 health_to 200
add_armour_to_char $MA3KILL1 armour_to 100
add_armour_to_char $MA3KILL2 armour_to 100
add_armour_to_char $MA3KILL3 armour_to 100
add_armour_to_char $MA3KILL5 armour_to 100
add_armour_to_char $MA3KILL6 armour_to 100
set_char_heading $MA3KILL1 z_angle_to 180.0
set_char_heading $MA3KILL2 z_angle_to 180.0
set_char_heading $MA3KILL3 z_angle_to 180.0
set_char_heading $MA3KILL4 z_angle_to 180.0
set_char_heading $MA3KILL5 z_angle_to 180.0
set_char_heading $MA3KILL6 z_angle_to 180.0
set_char_heading $MA3KILL7 z_angle_to 180.0
set_char_heading $MA3KILL8 z_angle_to 180.0
set_char_heading $MA3KILL9 z_angle_to 180.0
set_char_heading $MA3KILL10 z_angle_to 180.0
switch_widescreen 1
set_player_coordinates $PLAYER_CHAR at -18.9375 -100.75 -100.0
set_fixed_camera_position -17.6875 -120.4375 25.25 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 1
do_fade 1 1000
wait 2000
turn_char_to_face_char $FOOTBALL_MAN look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $FOOTBALL_MAN
wait 2000
print_now 'MA3_9' time 4000 1
set_char_wait_state $FOOTBALL_MAN anim 19 wait_state_time 3000
wait 3500
print_now 'MA3_10' time 4000 1
wait 4000
print_now 'MA3_11' time 6000 1
wait 6000
do_fade 0 500
wait 500
do_fade 1 500
wait 500
switch_widescreen 0
$MA3RUN1 = 0
$MA3RUN2 = 0
$MA3RUN3 = 0
$MA3RUN4 = 4
set_current_player_weapon $PLAYER_CHAR armed_weapon_to 1
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z
$PLAYER_X += 7.0
$PLAYER_Z += 5.0
set_fixed_camera_position $PLAYER_X $PLAYER_Y $PLAYER_Z rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 1
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_char_obj_kill_player_on_foot $MA3KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA3KILL10 kill_player $PLAYER_CHAR
display_onscreen_counter_with_string $MA3NPCDAM 1 'MAMH'
generate_random_float_in_range $RUN_X = random_float -42.0 5.0
generate_random_float_in_range $RUN_Y = random_float -140.0 -40.0

:MA3_1851
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z
$PLAYER_X += 8.0
$PLAYER_Z += 8.0
set_fixed_camera_position $PLAYER_X $PLAYER_Y $PLAYER_Z rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
wait 0
if 
  $MA3RUN4 == 4
goto_if_false @MA3_2009
set_char_obj_run_to_coord $FOOTBALL_MAN run_to $RUN_X $RUN_Y
if 
  locate_char_any_means_2d $FOOTBALL_MAN 0 $RUN_X $RUN_Y radius 2.0 2.0
goto_if_false @MA3_2009
$MA3RUN1 = 1
$MA3RUN4 = 0
generate_random_float_in_range $RUN_X = random_float -42.0 5.0
generate_random_float_in_range $RUN_Y = random_float -140.0 -40.0

:MA3_2009
if 
  $MA3RUN1 == 1
goto_if_false @MA3_2104
set_char_obj_run_to_coord $FOOTBALL_MAN run_to $RUN_X $RUN_Y
if 
  locate_char_any_means_2d $FOOTBALL_MAN 0 $RUN_X $RUN_Y radius 2.0 2.0
goto_if_false @MA3_2104
$MA3RUN2 = 2
$MA3RUN1 = 0
generate_random_float_in_range $RUN_X = random_float -42.0 5.0
generate_random_float_in_range $RUN_Y = random_float -140.0 -40.0

:MA3_2104
if 
  $MA3RUN2 == 2
goto_if_false @MA3_2199
set_char_obj_run_to_coord $FOOTBALL_MAN run_to $RUN_X $RUN_Y
if 
  locate_char_any_means_2d $FOOTBALL_MAN 0 $RUN_X $RUN_Y radius 2.0 2.0
goto_if_false @MA3_2199
$MA3RUN3 = 3
$MA3RUN2 = 0
generate_random_float_in_range $RUN_X = random_float -42.0 5.0
generate_random_float_in_range $RUN_Y = random_float -140.0 -40.0

:MA3_2199
if 
  $MA3RUN3 == 3
goto_if_false @MA3_2294
set_char_obj_run_to_coord $FOOTBALL_MAN run_to $RUN_X $RUN_Y
if 
  locate_char_any_means_2d $FOOTBALL_MAN 0 $RUN_X $RUN_Y radius 2.0 2.0
goto_if_false @MA3_2294
$MA3RUN4 = 4
$MA3RUN3 = 0
generate_random_float_in_range $RUN_X = random_float -42.0 5.0
generate_random_float_in_range $RUN_Y = random_float -140.0 -40.0

:MA3_2294
wait 0
get_char_health $MA3NPC_HEALTH = actor $FOOTBALL_MAN
set_var_int_to_var_int $MA3NPCDAM = $MA3NPC_HEALTH
if 
  is_player_in_area_2d $PLAYER_CHAR 0 91.6875 -218.25 -145.5625 29.1875
goto_if_false @MA3_2851
if 
  not is_player_shooting $PLAYER_CHAR
goto_if_false @MA3_2836
if or
  not $MA3NPC_HEALTH >= 40
  is_char_dead $FOOTBALL_MAN
goto_if_false @MA3_1851
clear_onscreen_counter $MA3NPCDAM
change_blip_display $MA3FMPICK display 0
get_char_coordinates $FOOTBALL_MAN position_to $MA3_X $MA3_Y $MA3_Z
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
delete_char $FOOTBALL_MAN
create_char $FOOTBALL_MAN = create_actor 21 27 at -18.9375 -90.75 -100.0
set_player_coordinates $PLAYER_CHAR at -18.9375 -100.75 -100.0
turn_char_to_face_char $FOOTBALL_MAN look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $FOOTBALL_MAN
point_camera_at_char $FOOTBALL_MAN mode 11 switchstyle 2
do_fade 1 1000
wait 1000
point_camera_at_char $FOOTBALL_MAN mode 11 switchstyle 2
print_now 'MA3_12' time 4000 1
wait 4000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MA3_13' time 5000 1
wait 5000
point_camera_at_char $FOOTBALL_MAN mode 11 switchstyle 2
set_anim_group_for_char $FOOTBALL_MAN walk_style_to 18
set_char_obj_flee_player_on_foot_always $FOOTBALL_MAN avoid_player $PLAYER_CHAR
wait 4000
do_fade 0 500
wait 500
delete_char $FOOTBALL_MAN
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 500
wait 500
set_player_control $PLAYER_CHAR can_move 1
add_pager_message 'MA3_14' 140 10 2
wait 3000
print_now 'LEAVE' time 2000 1
wait 2000

:MA3_2677
wait 0
if 
  not locate_player_any_means_3d $PLAYER_CHAR 0 -12.375 -105.1875 19.25 radius 150.0 150.0 150.0
goto_if_false @MA3_2677
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 0
print_now 'MA3_15' time 5000 1
wait 5000
print_now 'MA3_15A' time 4000 1
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
$4529 = 1
start_new_script @THIRTY 
register_mission_passed 'MA3_2'
return 

:MA3_2836
print_now 'MA3_15B' time 4000 1

:MA3_2851
print_big 'M_FAIL' 6000 ms 1
$4529 = 0
change_blip_display $ASUKA display 3
return 

:MA3_2882
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_blip $MA3FMPICK
remove_sphere $MA3SPHERE
remove_char_elegantly $A3KILL1
remove_char_elegantly $A3KILL2
remove_char_elegantly $A3KILL3
remove_char_elegantly $A3KILL4
remove_char_elegantly $A3KILL5
remove_char_elegantly $A3KILL6
remove_char_elegantly $A3KILL7
remove_char_elegantly $A3KILL8
remove_char_elegantly $A3KILL9
remove_char_elegantly $A3KILL10
remove_char_elegantly $FOOTBALL_MAN
clear_onscreen_counter $MA3NPCDAM
mark_model_as_no_longer_needed 70
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 29---------------
// Originally: The Getaway

:MA4
gosub @MA4_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA4_27
gosub @MA4_3751

:MA4_27
gosub @MA4_3782
terminate_this_script 

:MA4_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA4'
request_model 66
request_model 61
request_model 95
request_model 99
load_special_character 1 'ASUKA'
load_special_character 2 'CURLY'
load_all_models_now 
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA4_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA4_305
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA4_333
goto @MA4_581

:MA4_333
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA4_305
clear_help 
load_mission_audio 'LIB_B'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA4_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA4_405
wait 0
if 
  TIMERA >= 7120
goto_if_false @MA4_405
print_now 'MA4_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA4_453
wait 0
if 
  TIMERA >= 10220
goto_if_false @MA4_453
print_now 'MA4_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA4_501
wait 0
if 
  TIMERA >= 20190
goto_if_false @MA4_501
print_now 'MA4_6' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA4_549
wait 0
if 
  TIMERA >= 28140
goto_if_false @MA4_549
clear_prints 
wait 1000
clear_mission_audio 

:MA4_581
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
print_now 'MA4_7' time 3000 1
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at -54.0625 -1215.188 26.125 color 5 display 2
change_blip_scale $TAXI_PICKUP1 size 3
wait 1000

:MA4_732
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 1 -54.0625 -1215.188 26.125 radius 4.0 4.0 4.0
goto_if_false @MA4_732
remove_blip $TAXI_PICKUP1
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
do_fade 0 1000
wait 1000
create_char $MA4KILL1 = create_actor 21 27 at -58.875 -1169.0 26.125
create_char $MA4KILL2 = create_actor 21 27 at -32.3125 -1182.375 26.125
create_char $MA4KILL3 = create_actor 21 27 at -68.1875 -1135.125 26.125
create_char $MA4KILL4 = create_actor 21 27 at -45.125 -1120.75 26.0625
create_char $MA4KILL5 = create_actor 21 27 at -43.375 -1212.313 26.0625
create_char $MA4KILL6 = create_actor 21 27 at -87.1875 -1104.813 26.0
create_char $MA4KILL7 = create_actor 21 27 at -61.1875 -1205.75 26.125
create_char $MA4BIFF = create_actor 21 61 at -33.0 -1142.125 26.125
create_char $MA4MARY = create_actor 20 66 at -36.8125 -1138.688 26.125
create_car $MA4CAR1 = create_car 99 at -93.75 -1096.0 26.0
create_car $MA4CAR2 = create_car 95 at -99.625 -1108.188 26.0
create_car $MA4CAR3 = create_car 95 at -102.625 -1114.563 26.0
create_car $MA4CAR4 = create_car 95 at -100.875 -1120.25 26.125
add_armour_to_char $MA4BIFF armour_to 100
change_car_colour $MA4CAR1 color_to 1 1
change_car_colour $MA4CAR2 color_to 0 0
change_car_colour $MA4CAR3 color_to 0 0
change_car_colour $MA4CAR4 color_to 0 0
create_char_inside_car $MA4KILL8 = create_actor 21 27 in_car $MA4CAR2
create_char_inside_car $MA4KILL9 = create_actor 21 27 in_car $MA4CAR3
set_char_heading $MA4KILL1 z_angle_to 156.0
set_char_heading $MA4KILL2 z_angle_to 151.0
set_char_heading $MA4KILL3 z_angle_to 254.0
set_char_heading $MA4KILL4 z_angle_to 159.0
set_char_heading $MA4KILL5 z_angle_to 60.0
set_char_heading $MA4KILL6 z_angle_to 234.0
set_char_heading $MA4KILL7 z_angle_to 240.0
set_char_heading $MA4BIFF z_angle_to 60.0
set_char_heading $MA4MARY z_angle_to 240.0
set_car_heading $MA4CAR1 z_angle_to 333.6875
set_car_heading $MA4CAR2 z_angle_to 333.6875
set_car_heading $MA4CAR3 z_angle_to 333.6875
set_car_heading $MA4CAR4 z_angle_to 333.6875
give_weapon_to_char $MA4KILL1 weapon 3 ammo 999
give_weapon_to_char $MA4KILL2 weapon 3 ammo 999
give_weapon_to_char $MA4KILL3 weapon 3 ammo 999
give_weapon_to_char $MA4KILL4 weapon 3 ammo 999
give_weapon_to_char $MA4KILL5 weapon 3 ammo 999
give_weapon_to_char $MA4KILL6 weapon 4 ammo 999
give_weapon_to_char $MA4KILL7 weapon 4 ammo 999
give_weapon_to_char $MA4KILL8 weapon 3 ammo 999
give_weapon_to_char $MA4KILL9 weapon 3 ammo 999
set_char_stay_in_same_place $MA4KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA4KILL7 maintain_position_when_attacked 1
add_blip_for_char $MABIFFPICK = create_marker_above_actor $MA4BIFF
change_blip_colour $MABIFFPICK color_to 5
turn_char_to_face_char $MA4MARY look_at_actor $MA4BIFF
turn_char_to_face_char $MA4BIFF look_at_actor $MA4MARY
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MA4_1362
warp_player_from_car_to_coord $PLAYER_CHAR at -45.75 -1184.188 26.125

:MA4_1362
set_player_coordinates $PLAYER_CHAR at -45.75 -1184.188 26.125
set_player_heading $PLAYER_CHAR z_angle_to 338.6875
wait 500
set_fixed_camera_position -25.375 -1157.938 34.125 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
wait 1000
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MA4BIFF
player_look_at_char_always $PLAYER_CHAR to_look_at_actor $MA4BIFF
set_char_obj_goto_coord_on_foot $PLAYER_ACTOR walk_to -34.875 -1156.0
do_fade 1 1000
wait 1000
print_now 'MA4_8' time 3000 1
wait 3000
point_camera_at_char $MA4BIFF mode 15 switchstyle 2
print_now 'MA4_9' time 4000 1
wait 4000
print_now 'MA4_10' time 4000 1
wait 4000
print_now 'MA4_11' time 6000 1
turn_char_to_face_char $MA4BIFF look_at_actor $PLAYER_ACTOR
wait 2000
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 1
wait 3000
point_camera_at_char $MA4BIFF mode 15 switchstyle 2
set_char_obj_run_to_coord $MA4BIFF run_to -93.75 -1092.0
wait 3000
do_fade 0 1000
wait 1000
set_char_coordinates $MA4BIFF at -93.75 -1092.0 26.125
set_char_obj_enter_car_as_driver $MA4BIFF go_to_and_drive_car $MA4CAR1
set_car_only_damaged_by_player $MA4CAR1 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA4CAR2 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA4CAR3 immune_to_nonplayer 1
warp_char_into_car $MA4BIFF in_car $MA4CAR1
print_now 'MA4_T1' time 3000 1

:MA4_1676
wait 0
if 
  not is_char_dead $MA4BIFF
goto_if_false @MA4_3751
if 
  is_char_in_car $MA4BIFF in_car $MA4CAR1
goto_if_false @MA4_1676
set_car_mission $MA4CAR1 driver_behaviour_to 1
set_car_driving_style $MA4CAR1 traffic_behavior_to 4
set_car_cruise_speed $MA4CAR1 max_speed_to 20.0
set_car_mission $MA4CAR2 driver_behaviour_to 1
set_car_driving_style $MA4CAR2 traffic_behavior_to 4
set_car_cruise_speed $MA4CAR2 max_speed_to 30.0
set_car_mission $MA4CAR3 driver_behaviour_to 1
set_car_driving_style $MA4CAR3 traffic_behavior_to 4
set_car_cruise_speed $MA4CAR3 max_speed_to 30.0
restore_camera_jumpcut 
switch_widescreen 0
set_char_obj_no_obj $PLAYER_ACTOR
char_set_idle $PLAYER_ACTOR
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_char_obj_kill_player_on_foot $MA4KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA4KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA4KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA4KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA4KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA4KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA4KILL7 kill_player $PLAYER_CHAR
set_char_threat_search $MA4KILL8 search_threat 1
set_char_heed_threats $MA4KILL8 heed_threats 1
set_char_threat_search $MA4KILL9 search_threat 1
set_char_heed_threats $MA4KILL9 heed_threats 1
car_goto_coordinates $MA4CAR1 drive_to 402.3125 -405.625 20.875
set_car_avoid_level_transitions $MA4CAR1 avoid_level_transitions 1
change_car_lock 1 = car $MA4CAR2
change_car_lock 1 = car $MA4CAR3

:MA4_1935
get_char_coordinates $MA4BIFF position_to $MA4DRIVER_X $MA4DRIVER_Y $MA4DRIVER_Z
get_car_coordinates $MA4CAR2 position_to $MA4DRIVER2_X $MA4DRIVER2_Y $MA4DRIVER2_Z
wait 500
car_goto_coordinates $MA4CAR2 drive_to $MA4DRIVER_X $MA4DRIVER_Y $MA4DRIVER_Z
car_goto_coordinates $MA4CAR3 drive_to $MA4DRIVER2_X $MA4DRIVER2_Y $MA4DRIVER2_Z
if and
  not is_car_dead $MA4CAR1
  not is_char_dead $MA4BIFF
goto_if_false @MA4_3751
if 
  not locate_char_any_means_3d $MA4BIFF 0 402.3125 -405.625 20.875 radius 15.0 15.0 15.0
goto_if_false @MA4_3677
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MA4BIFF radius 10.0 10.0 10.0
goto_if_false @MA4_1935
set_car_mission $MA4CAR2 driver_behaviour_to 4
set_car_driving_style $MA4CAR2 traffic_behavior_to 2
set_car_cruise_speed $MA4CAR2 max_speed_to 30.0
set_car_mission $MA4CAR3 driver_behaviour_to 4
set_car_driving_style $MA4CAR3 traffic_behavior_to 2
set_car_cruise_speed $MA4CAR3 max_speed_to 30.0
print_now 'MA4_T1' time 5000 1

:MA4_2142
wait 0
if 
  not is_char_dead $MA4BIFF
goto_if_false @MA4_3751
if 
  not locate_char_any_means_3d $MA4BIFF 0 402.3125 -405.625 20.875 radius 15.0 15.0 15.0
goto_if_false @MA4_3677
if 
  not is_char_in_car $MA4BIFF in_car $MA4CAR1
goto_if_false @MA4_2142
if 
  not is_char_dead $MA4BIFF
goto_if_false @MA4_3751
set_char_obj_flee_player_on_foot_always $MA4BIFF avoid_player $PLAYER_CHAR

:MA4_2241
wait 0
get_char_health $MA4BIFF_HEALTH3 = actor $MA4BIFF
if 
  not $MA4BIFF_HEALTH3 >= 50
goto_if_false @MA4_2241
clear_char_last_weapon_damage $MA4BIFF
do_fade 0 1000
switch_widescreen 1
remove_blip $MABIFFPICK
set_player_control $PLAYER_CHAR can_move 0
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MA4_2336
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR
wait 1000

:MA4_2336
wait 1000
get_char_coordinates $MA4BIFF position_to $MA4BIFF_X $MA4BIFF_Y $MA4BIFF_Z
delete_char $MA4BIFF
create_char $MA4BIFF = create_actor 21 61 at $MA4BIFF_X $MA4BIFF_Y $MA4BIFF_Z
turn_char_to_face_char $MA4BIFF look_at_actor $PLAYER_ACTOR
point_camera_at_char $MA4BIFF mode 11 switchstyle 2
set_car_mission $MA4CAR2 driver_behaviour_to 0
set_car_driving_style $MA4CAR2 traffic_behavior_to 0
set_car_mission $MA4CAR3 driver_behaviour_to 0
set_car_driving_style $MA4CAR3 traffic_behavior_to 0
do_fade 1 1000
wait 1000
print_now 'MA4_12' time 5000 1
wait 5000
print_now 'MA4_12A' time 5000 1
wait 5000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MA4_13' time 5000 1
wait 5000
point_camera_at_char $MA4BIFF mode 11 switchstyle 2
print_now 'MA4_14' time 5000 1
wait 5000
print_help 'TFTF'
print_now 'MA4_15C' time 100000 1

:MA4_2560
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA4_2695
clear_prints 
do_fade 0 1000
wait 1000
get_char_coordinates $MA4BIFF position_to $MA4BIFF_X $MA4BIFF_Y $MA4BIFF_Z
$MA4BIFF_Z -= 1.0
create_pickup $MA4PICKUP = create_pickup 1340 type 3 at $MA4BIFF_X $MA4BIFF_Y $MA4BIFF_Z
add_blip_for_pickup $MA4PICKUPPICK = create_marker_above_pickup $MA4PICKUP
restore_camera_jumpcut 
switch_widescreen 0
delete_char $MA4BIFF
$MA4BIFFDEAD = 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
goto @MA4_2871
goto -1137

:MA4_2695
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA4_2560
clear_prints 
do_fade 0 1000
wait 1000
add_blip_for_char $MABIFFPICK = create_marker_above_actor $MA4BIFF
change_blip_colour $MABIFFPICK color_to 0
set_char_obj_flee_player_on_foot_always $MA4BIFF avoid_player $PLAYER_CHAR
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_char_obj_kill_player_any_means $MA4KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA4KILL9 kill_player $PLAYER_CHAR

:MA4_2790
wait 0
if 
  is_char_dead $MA4BIFF
goto_if_false @MA4_2790
$MA4BIFFDEAD = 1
remove_blip $MABIFFPICK
get_char_coordinates $MA4BIFF position_to $MA4BIFF_X $MA4BIFF_Y $MA4BIFF_Z
$MA4BIFF_Z -= 1.0
create_pickup $MA4PICKUP = create_pickup 1340 type 3 at $MA4BIFF_X $MA4BIFF_Y $MA4BIFF_Z
add_blip_for_pickup $MA4PICKUPPICK = create_marker_above_pickup $MA4PICKUP

:MA4_2871
wait 0
if 
  has_pickup_been_collected $MA4PICKUP
goto_if_false @MA4_2871
remove_blip $MA4PICKUPPICK
remove_pickup $MA4PICKUP
if 
  $MA4BIFFDEAD == 1
goto_if_false @MA4_2941
print_now 'MA4_15B' time 4000 1
goto @MA4_2976

:MA4_2941
print_now 'MA4_15' time 6000 1
wait 6000
print_now 'MA4_15A' time 3000 1

:MA4_2976
add_pager_message 'MA4_16' 140 10 2
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 107.5625 -1275.563 26.125 color 5 display 2
add_sphere $MA4SPHERE2 = create_sphere 107.5625 -1275.563 26.125 2.0
change_blip_scale $TAXI_PICKUP2 size 3
alter_wanted_level $PLAYER_CHAR wanted_level_to 2
goto @MA4_3064

:MA4_3049
print_now 'WANT' time 3000 1

:MA4_3064
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 107.5625 -1275.563 26.125 radius 2.0 2.0 2.0
goto_if_false @MA4_3064
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MA4_3049
wait 1000
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
remove_blip $TAXI_PICKUP2
remove_sphere $MA4SPHERE2
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA4_3502
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA4_3502
print_now 'MA4_17' time 6000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA4_3502
print_now 'MA4_18' time 5000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA4_3502
print_now 'MA4_19' time 6000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA4_3502
print_now 'MA4_19A' time 4000 1
wait 4000

:MA4_3502
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
$4530 = 1
wait 3000
register_mission_passed 'MA4_2'
start_new_script @THIRTY1 
return 

:MA4_3677
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
set_fixed_camera_position 404.5625 -396.0 26.125 rotation 0.0 0.0 0.0
point_camera_at_char $MA4BIFF mode 15 switchstyle 2
wait 1000
set_char_obj_run_to_coord $MA4BIFF run_to 394.25 -413.9375
wait 3000
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0

:MA4_3751
print_big 'M_FAIL' 6000 ms 1
$4530 = 0
change_blip_display $ASUKA display 3
return 

:MA4_3782
$ONMISSION = 0
wait 1000
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $MABIFFPICK
remove_blip $MA4PICKUPPICK
remove_sphere $MA4SPHERE1
remove_sphere $MA4SPHERE2
remove_blip $MABIFFPICK
remove_char_elegantly $MA4KILL1
remove_char_elegantly $MA4KILL2
remove_char_elegantly $MA4KILL3
remove_char_elegantly $MA4KILL4
remove_char_elegantly $MA4KILL5
remove_char_elegantly $MA4KILL6
remove_char_elegantly $MA4KILL7
remove_char_elegantly $MA4KILL8
remove_char_elegantly $MA4KILL9
remove_char_elegantly $MA4MARY
remove_char_elegantly $MA4BIFF
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 10
mark_model_as_no_longer_needed 66
mark_model_as_no_longer_needed 61
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 95
load_splash_screen 'MAINSC1'
mission_has_finished 
return 
terminate_this_script 

//-------------Mission 30---------------
// Originally: Taking Out The Laundry

:MA5
gosub @MA5_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA5_27
gosub @MA5_3898

:MA5_27
gosub @MA5_3929
terminate_this_script 

:MA5_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA5'
request_model 46
request_model 57
request_model 58
request_model 132
load_special_character 1 'ASUKA'
load_all_models_now 
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA5_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA5_294
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA5_322
goto @MA5_868

:MA5_322
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA5_294
clear_help 
load_mission_audio 'LIB_C'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA5_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_394
wait 0
if 
  TIMERA >= 8010
goto_if_false @MA5_394
print_now 'MA5_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_442
wait 0
if 
  TIMERA >= 13280
goto_if_false @MA5_442
print_now 'MA5_5' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_490
wait 0
if 
  TIMERA >= 19200
goto_if_false @MA5_490
print_now 'MA5_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA5_538
wait 0
if 
  TIMERA >= 22000
goto_if_false @MA5_538
print_now 'MA5_7' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_586
wait 0
if 
  TIMERA >= 31070
goto_if_false @MA5_586
print_now 'MA5_8' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_634
wait 0
if 
  TIMERA >= 36220
goto_if_false @MA5_634
print_now 'MA5_9' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA5_684
wait 0
if 
  TIMERA >= 39230
goto_if_false @MA5_684
print_now 'MA5_10' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_734
wait 0
if 
  TIMERA >= 44030
goto_if_false @MA5_734
print_now 'MA5_11' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA5_784
wait 0
if 
  TIMERA >= 49180
goto_if_false @MA5_784
print_now 'MA5_12' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA5_834
wait 0
if 
  TIMERA >= 55100
goto_if_false @MA5_834
clear_prints 
wait 1000
clear_mission_audio 

:MA5_868
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 114.125 -1619.0 26.0 color 0 display 2
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 172.5 -918.9375 26.0 color 0 display 2
add_blip_for_coord_old $TAXI_PICKUP3 = create_marker_at 99.125 -240.75 16.0 color 0 display 2
change_blip_scale $TAXI_PICKUP1 size 3
change_blip_scale $TAXI_PICKUP2 size 3
change_blip_scale $TAXI_PICKUP3 size 3
$MA5_TIME = 300000
display_onscreen_timer $MA5_TIME
generate_random_int_in_range $BEMA5CAR = random_int 1 3
wait 100
if 
  $BEMA5CAR == 1
goto_if_false @MA5_1192
create_car $MA5CAR1 = create_car 132 at 114.125 -1619.0 26.0
create_car $MA5CAR2 = create_car 132 at 172.5 -918.9375 26.0
create_car $MA5CAR3 = create_car 132 at 99.125 -240.75 16.0
set_car_heading $MA5CAR1 z_angle_to 270.0
set_car_heading $MA5CAR2 z_angle_to 90.0
set_car_heading $MA5CAR3 z_angle_to 180.0
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
goto @MA5_1429

:MA5_1192
if 
  $BEMA5CAR == 2
goto_if_false @MA5_1307
create_car $MA5CAR1 = create_car 132 at 99.125 -240.75 16.0
create_car $MA5CAR2 = create_car 132 at 114.125 -1619.0 26.0
create_car $MA5CAR3 = create_car 132 at 172.5 -918.9375 26.0
set_car_heading $MA5CAR1 z_angle_to 180.0
set_car_heading $MA5CAR2 z_angle_to 270.0
set_car_heading $MA5CAR3 z_angle_to 90.0
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
goto @MA5_1429

:MA5_1307
if 
  $BEMA5CAR == 3
goto_if_false @MA5_1332
goto @MA5_1332

:MA5_1332
create_car $MA5CAR1 = create_car 132 at 172.5 -918.9375 26.0
create_car $MA5CAR2 = create_car 132 at 99.125 -240.75 16.0
create_car $MA5CAR3 = create_car 132 at 114.125 -1619.0 26.0
set_car_heading $MA5CAR1 z_angle_to 90.0
set_car_heading $MA5CAR2 z_angle_to 180.0
set_car_heading $MA5CAR3 z_angle_to 270.0
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
goto @MA5_1429

:MA5_1429
create_char_inside_car $MA5KILL1 = create_actor 21 57 in_car $MA5CAR1
create_char_inside_car $MA5KILL2 = create_actor 21 58 in_car $MA5CAR2
create_char_inside_car $MA5KILL3 = create_actor 21 46 in_car $MA5CAR3
give_weapon_to_char $MA5KILL3 weapon 3 ammo 999
add_armour_to_char $MA5KILL3 armour_to 100
set_car_mission $MA5CAR1 driver_behaviour_to 1
set_car_driving_style $MA5CAR1 traffic_behavior_to 2
set_car_mission $MA5CAR2 driver_behaviour_to 1
set_car_driving_style $MA5CAR2 traffic_behavior_to 2
set_car_mission $MA5CAR3 driver_behaviour_to 1
set_car_driving_style $MA5CAR3 traffic_behavior_to 2
set_car_cruise_speed $MA5CAR1 max_speed_to 20.0
set_car_cruise_speed $MA5CAR2 max_speed_to 20.0
set_car_cruise_speed $MA5CAR3 max_speed_to 20.0
set_car_only_damaged_by_player $MA5CAR1 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA5CAR2 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA5CAR3 immune_to_nonplayer 1
add_blip_for_car $CARPICK1 = create_marker_above_car $MA5CAR1
add_blip_for_car $CARPICK2 = create_marker_above_car $MA5CAR2
add_blip_for_car $CARPICK3 = create_marker_above_car $MA5CAR3
change_blip_colour $CARPICK1 color_to 0
change_blip_colour $CARPICK2 color_to 0
change_blip_colour $CARPICK3 color_to 0
set_car_only_damaged_by_player $MA5CAR1 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA5CAR2 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA5CAR3 immune_to_nonplayer 1
set_char_cant_be_dragged_out $MA5KILL1 locked_while_in_vehicle 1
set_char_cant_be_dragged_out $MA5KILL2 locked_while_in_vehicle 1
set_char_cant_be_dragged_out $MA5KILL3 locked_while_in_vehicle 1
$MA5CARFOUND1 = 0
$MA5CARFOUND2 = 0

:MA5_1670
wait 0
if and
  $MA5_TIME > 0
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
if 
  $MA5CARFOUND1 == 0
goto_if_false @MA5_1909
if 
  not is_car_dead $MA5CAR1
goto_if_false @MA5_3898
get_car_health $MA5CAR_HEALTH1 = car $MA5CAR1
if 
  not $MA5CAR_HEALTH1 >= 800
goto_if_false @MA5_1909
clear_car_last_weapon_damage $MA5CAR1
wait 0
if 
  not is_car_dead $MA5CAR1
goto_if_false @MA5_3898
change_blip_display $CARPICK1 display 0
set_char_obj_leave_car $MA5KILL1 leave_car $MA5CAR1
print_now 'MA5_17' time 3000 1
set_char_obj_flee_player_on_foot_always $MA5KILL1 avoid_player $PLAYER_CHAR
$MA5CARFOUND1 = 1
wait 3000
if 
  not is_char_dead $MA5KILL1
goto_if_false @MA5_1909
print_now 'MA5_18' time 4000 1
wait 4000
if and
  $MA5CARFOUND1 == 1
  $MA5CARFOUND2 == 1
goto_if_false @MA5_1909
print_now 'MA5_21' time 5000 1

:MA5_1909
wait 0
if and
  $MA5_TIME > 0
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
if 
  $MA5CARFOUND2 == 0
goto_if_false @MA5_2158
if 
  not is_car_dead $MA5CAR2
goto_if_false @MA5_3898
get_car_health $MA5CAR_HEALTH2 = car $MA5CAR2
if 
  not $MA5CAR_HEALTH2 >= 800
goto_if_false @MA5_2158
clear_car_last_weapon_damage $MA5CAR2
if 
  not is_car_dead $MA5CAR2
goto_if_false @MA5_3898
set_player_control $PLAYER_CHAR can_move 0
change_blip_display $CARPICK2 display 0
print_now 'MA5_13' time 2000 1
set_char_obj_leave_car $MA5KILL2 leave_car $MA5CAR2
set_char_obj_kill_player_on_foot $MA5KILL2 kill_player $PLAYER_CHAR
$MA5CARFOUND2 = 1
wait 2000
set_player_control $PLAYER_CHAR can_move 1
if 
  not is_char_dead $MA5KILL2
goto_if_false @MA5_2158
print_now 'MA5_14' time 5000 1
wait 4000
if and
  $MA5CARFOUND1 == 1
  $MA5CARFOUND2 == 1
goto_if_false @MA5_2158
print_now 'MA5_21' time 5000 1

:MA5_2158
wait 0
if and
  $MA5_TIME > 0
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
get_car_health $MA5CAR_HEALTH3 = car $MA5CAR3
if 
  not $MA5CAR_HEALTH3 >= 800
goto_if_false @MA5_1670
clear_car_last_weapon_damage $MA5CAR3
if 
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
change_blip_display $CARPICK1 display 0
change_blip_display $CARPICK2 display 0
change_blip_display $CARPICK3 display 0
set_char_obj_leave_car $MA5KILL3 leave_car $MA5CAR3
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
point_camera_at_char $MA5KILL3 mode 11 switchstyle 2
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MA5_2314
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR

:MA5_2314
print_now 'MA5_22' time 4000 1
wait 4000
turn_char_to_face_char $MA5KILL3 look_at_actor $PLAYER_ACTOR
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MA5_23' time 5000 1
wait 5000
point_camera_at_char $MA5KILL3 mode 11 switchstyle 2
print_now 'MA5_24' time 4000 1
wait 4000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MA5_25' time 3000 1
wait 3000
point_camera_at_char $MA5KILL3 mode 11 switchstyle 2
print_now 'MA5_26' time 3000 1
wait 3000
switch_widescreen 0
set_char_obj_kill_player_on_foot $MA5KILL3 kill_player $PLAYER_CHAR
add_blip_for_char $MA5KILL3_BLIP = create_marker_above_actor $MA5KILL3
change_blip_colour $MA5KILL3_BLIP color_to 0
set_player_control $PLAYER_CHAR can_move 1
restore_camera_jumpcut 

:MA5_2494
wait 0
if and
  $MA5_TIME > 0
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
get_char_health $MA5KILL_HEALTH3 = actor $MA5KILL3
if 
  not $MA5KILL_HEALTH3 >= 60
goto_if_false @MA5_2494
clear_char_last_weapon_damage $MA5KILL3
if 
  not is_char_dead $MA5KILL3
goto_if_false @MA5_2823
remove_blip $MA5KILL3_BLIP
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
print_help 'TFTF'
print_now 'MA5_AB' time 100000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
set_char_obj_no_obj $MA5KILL3

:MA5_2625
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA5_2735
restore_camera_jumpcut 
do_fade 0 1000
wait 1000
delete_char $MA5KILL3
wait 100
create_char_as_passenger $MA5KILL3 = create_actor 21 46 in_car $MA5CAR3 passenger_seat 0
do_fade 1 1000
wait 1000
set_char_cant_be_dragged_out $MA5KILL3 locked_while_in_vehicle 1
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
print_now 'MA5_27' time 5000 1
goto @MA5_2863

:MA5_2735
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA5_2625
restore_camera_jumpcut 
do_fade 0 1000
wait 1000
do_fade 1 1000
wait 1000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_anim_group_for_char $MA5KILL3 walk_style_to 18
set_char_obj_flee_player_on_foot_always $MA5KILL3 avoid_player $PLAYER_CHAR
add_blip_for_char $MA5KILL3_BLIP = create_marker_above_actor $MA5KILL3
change_blip_colour $MA5KILL3_BLIP color_to 0

:MA5_2823
wait 0
if 
  is_char_dead $MA5KILL3
goto_if_false @MA5_2823
remove_blip $MA5KILL3_BLIP
print_now 'MA5_27A' time 5000 1

:MA5_2863
change_blip_display $CARPICK3 display 3
change_blip_colour $CARPICK3 color_to 1

:MA5_2877
change_blip_display $CARPICK3 display 3
wait 0
if and
  $MA5_TIME > 0
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
if 
  is_player_in_car $PLAYER_CHAR in_car $MA5CAR3
goto_if_false @MA5_2877
add_pager_message 'MA5_26A' 140 10 2
set_char_obj_enter_car_as_passenger $MA5KILL3 go_to_car $MA5CAR3
change_blip_display $CARPICK3 display 0
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 109.875 -1294.5 26.125 color 5 display 2
add_sphere $MA5SPHERE = create_sphere 109.875 -1294.5 26.125 4.0
change_blip_scale $TAXI_PICKUP size 3
goto @MA5_3018

:MA5_3011
change_blip_display $CARPICK3 display 3

:MA5_3018
wait 0
if and
  $MA5_TIME > 0
  not is_car_dead $MA5CAR3
goto_if_false @MA5_3898
if 
  is_player_in_car $PLAYER_CHAR in_car $MA5CAR3
goto_if_false @MA5_3011
change_blip_display $CARPICK3 display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MA5CAR3
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 109.875 -1294.5 26.125 radius 4.0 4.0 3.0
goto_if_false @MA5_3018
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
remove_blip $TAXI_PICKUP
remove_sphere $MA5SPHERE
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
warp_player_from_car_to_coord $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
wait 1000
if 
  not is_char_dead $MA5KILL3
goto_if_false @MA5_3523
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
print_now 'MA5_28' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MA5_29' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
print_now 'MA5_30' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MA5_31' time 5000 1
wait 3000
goto @MA5_3723

:MA5_3523
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
print_now 'MA5_32' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MA5_33' time 4000 1
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
print_now 'MA5_34' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA5_3723
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
print_now 'MA5_35' time 4000 1
wait 4000

:MA5_3723
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
clear_wanted_level $PLAYER_CHAR
$4531 = 1
print_with_number_big 'M_PASS' 20000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 20000
register_mission_passed 'MA5_2'
start_new_script @THIRTY2 
return 

:MA5_3898
print_big 'M_FAIL' 6000 ms 1
$4531 = 0
change_blip_display $ASUKA display 3
return 

:MA5_3929
$ONMISSION = 0
clear_onscreen_timer $MA5_TIME
remove_blip $MA5KILL3_BLIP
remove_blip $TAXI_PICKUP
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
remove_blip $CARPICK1
remove_blip $CARPICK2
remove_blip $CARPICK3
remove_sphere $MA5SPHERE
mark_model_as_no_longer_needed 46
mark_model_as_no_longer_needed 57
mark_model_as_no_longer_needed 58
mark_model_as_no_longer_needed 132
unload_special_character 1
$MA5CAR1 = -1
$MA5CAR2 = -1
$MA5CAR3 = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 31---------------
// Originally: The Pick-Up

:MA6
gosub @MA6_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA6_27
gosub @MA6_2286

:MA6_27
gosub @MA6_2323
terminate_this_script 

:MA6_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA6'
request_model 11
request_model 127
request_model 136
load_special_character 1 'ASUKA'
load_all_models_now 
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA6_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
create_car $MA6CAR1 = create_car 127 at 112.5 -1241.5 26.125
set_car_only_damaged_by_player $MA6CAR1 immune_to_nonplayer 1
set_car_heading $MA6CAR1 z_angle_to 180.0
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA6_321
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA6_349
goto @MA6_645

:MA6_349
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA6_321
clear_help 
load_mission_audio 'LIB_D'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA6_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA6_421
wait 0
if 
  TIMERA >= 8020
goto_if_false @MA6_421
print_now 'MA6_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 1000

:MA6_469
wait 0
if 
  TIMERA >= 9150
goto_if_false @MA6_469
print_now 'MA6_5' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA6_517
wait 0
if 
  TIMERA >= 19020
goto_if_false @MA6_517
print_now 'MA6_6' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA6_565
wait 0
if 
  TIMERA >= 24070
goto_if_false @MA6_565
print_now 'MA6_6A' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA6_613
wait 0
if 
  TIMERA >= 30160
goto_if_false @MA6_613
clear_prints 
wait 1000
clear_mission_audio 

:MA6_645
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
change_blip_scale $TAXI_PICKUP1 size 3
add_blip_for_car $MA6CARPICK = create_marker_above_car $MA6CAR1
change_blip_colour $MA6CARPICK color_to 1
set_zone_ped_info 'CONSTRU' 1 0 1000 0 0 0 0 0 0 20
set_zone_ped_info 'CONSTRU' 0 0 900 0 0 0 0 0 0 10
$MA6SAY = 0

:MA6_842
wait 0
if 
  not is_car_dead $MA6CAR1
goto_if_false @MA6_2286
if 
  is_player_in_car $PLAYER_CHAR in_car $MA6CAR1
goto_if_false @MA6_842
print_now 'MA6_7' time 4000 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 572.9375 -369.75 20.6875 color 5 display 2
change_blip_scale $TAXI_PICKUP1 size 3
add_sphere $MA6SPHERE1 = create_sphere 572.9375 -369.75 20.6875 4.0
goto @MA6_952

:MA6_945
change_blip_display $MA6CARPICK display 3

:MA6_952
wait 0
if 
  not is_car_dead $MA6CAR1
goto_if_false @MA6_2286
if 
  is_player_in_car $PLAYER_CHAR in_car $MA6CAR1
goto_if_false @MA6_945
change_blip_display $MA6CARPICK display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MA6CAR1
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 572.9375 -369.75 20.6875 radius 4.0 4.0 3.0
goto_if_false @MA6_952
switch_widescreen 1
remove_blip $TAXI_PICKUP1
remove_sphere $MA6SPHERE1
set_player_control $PLAYER_CHAR can_move 0
restore_camera_jumpcut 
create_pickup $MA6_HEALTH_PICKUP = create_pickup #HEALTH type 3 at 559.875 -299.5 17.6875
print_now 'MA6_19' time 6000 1
wait 6000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
print_now 'MA6_8' time 3000 1
change_blip_display $MA6CARPICK display 3
$MA6NUM = 0
display_onscreen_counter_with_string $MA6NUM 0 'THUGS1'
$MA6_TIME = 420000
display_onscreen_timer $MA6_TIME
wait 10000

:MA6_1178
remove_blip $MA6KILLPICK
$MA6KILL = -1
wait 0
if and
  not is_car_dead $MA6CAR1
  $MA6_TIME > 0
goto_if_false @MA6_2286
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X1 $PLAYER_Y1 $PLAYER_Z1
$PLAYER_X += 50.0
$PLAYER_Y += 50.0
$PLAYER_X1 -= 50.0
$PLAYER_Y1 -= 50.0
get_random_char_in_area $PLAYER_X $PLAYER_Y $PLAYER_X1 $PLAYER_Y1 store_to $MA6KILL
if 
  not $MA6KILL == -1
goto_if_false @MA6_1178
if 
  is_char_model $MA6KILL model == 11
goto_if_false @MA6_1178
add_blip_for_char $MA6KILLPICK = create_marker_above_actor $MA6KILL
change_blip_colour $MA6KILLPICK color_to 0
set_char_heed_threats $MA6KILL heed_threats 1

:MA6_1352
wait 0
if and
  not is_car_dead $MA6CAR1
  $MA6_TIME > 0
goto_if_false @MA6_2286
get_char_health $MA6KILL_HEALTH = actor $MA6KILL
if 
  not $MA6KILL_HEALTH >= 60
goto_if_false @MA6_1352
clear_char_threat_search $MA6KILL
if 
  not is_char_dead $MA6KILL
goto_if_false @MA6_1433
goto @MA6_1460

:MA6_1433
remove_char_elegantly $MA6KILL
goto @MA6_1178

:MA6_1445
set_char_obj_flee_player_on_foot_always $MA6KILL avoid_player $PLAYER_CHAR
goto @MA6_1178

:MA6_1460
wait 0
if and
  not is_car_dead $MA6CAR1
  $MA6_TIME > 0
goto_if_false @MA6_2286
if 
  not is_char_dead $MA6KILL
goto_if_false @MA6_1178
if 
  locate_char_any_means_car_2d $MA6KILL near_car $MA6CAR1 radius 30.0 30.0 unknown 0
goto_if_false @MA6_1445
get_car_coordinates $MA6CAR1 position_to $MA6CAR1_X $MA6CAR1_Y $MA6CAR1_Z
set_char_obj_run_to_coord $MA6KILL run_to $MA6CAR1_X $MA6CAR1_Y
if 
  locate_char_any_means_car_2d $MA6KILL near_car $MA6CAR1 radius 5.0 5.0 unknown 0
set_char_obj_enter_car_as_passenger $MA6KILL go_to_car $MA6CAR1
if 
  is_char_in_car $MA6KILL in_car $MA6CAR1
goto_if_false @MA6_1460
$MA6NUM += 1
remove_char_elegantly $MA6KILL
if and
  $MA6NUM == 5
  $MA6SAY == 0
goto_if_false @MA6_1684
remove_pickup $MA6_HEALTH_PICKUP
create_pickup $MA6_HEALTH_PICKUP = create_pickup #HEALTH type 3 at 559.875 -299.5 17.6875
print_now 'MA6_13' time 4000 1
$MA6SAY = 1

:MA6_1684
if 
  $MA6NUM == 10
goto_if_false @MA6_1178
print_now 'MA6_14' time 4000 1
wait 4000
print_now 'MA6_15' time 5000 1
add_pager_message 'MA6_16' 140 2 0
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 522.875 -648.75 16.125 color 5 display 2
add_sphere $MA6SPHERE2 = create_sphere 522.875 -648.75 16.125 4.0
change_blip_display $MA6CARPICK display 0
change_blip_scale $TAXI_PICKUP2 size 3

:MA6_1803
change_blip_display $MA6CARPICK display 3

:MA6_1810
wait 0
if and
  not is_car_dead $MA6CAR1
  $MA6_TIME > 0
goto_if_false @MA6_2286
if 
  is_player_in_car $PLAYER_CHAR in_car $MA6CAR1
goto_if_false @MA6_1803
change_blip_display $MA6CARPICK display 0
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 0 522.875 -648.75 16.125 radius 4.0 4.0 3.0
goto_if_false @MA6_1810
set_player_control $PLAYER_CHAR can_move 0
set_char_obj_leave_car $PLAYER_ACTOR leave_car $MA6CAR1
wait 1500
do_fade 0 1000
wait 1000
remove_blip $TAXI_PICKUP2
remove_sphere $MA6SPHERE2
clear_onscreen_timer $MA6_TIME
clear_onscreen_counter $MA6NUM
switch_widescreen 1
clear_wanted_level $PLAYER_CHAR
set_fixed_camera_position 534.125 -659.8125 20.0625 rotation 0.0 0.0 0.0
point_camera_at_point 522.4375 -655.0 15.0625 switchstyle 2
create_char $ASUKA_CHAR = create_actor 21 26 at 521.4375 -655.0 15.0625
set_player_coordinates $PLAYER_CHAR at 524.5625 -655.0 15.0625
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
if 
  $MA6_TIME > 120000
goto_if_false @MA6_2103
create_car $ASUKACAR = create_car 136 at 511.5625 -660.75 15.5625
set_car_heading $ASUKACAR z_angle_to 0.0
change_car_colour $ASUKACAR color_to 56 56
set_car_strong $ASUKACAR strong 1

:MA6_2103
do_fade 1 1000
wait 1000
print_now 'MA6_17' time 3000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 6000
wait 3000
print_now 'MA6_18' time 5000 1
wait 5000
do_fade 0 1000
wait 1000
delete_char $ASUKA_CHAR
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_threat_for_ped_type 7 add_threat 1
set_player_control $PLAYER_CHAR can_move 1
print_with_number_big 'M_PASS' 10000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 10000
$4532 = 1
wait 3000
start_new_script @THIRTY3 
register_mission_passed 'MA6_2'
return 

:MA6_2286
print_big 'M_FAIL' 6000 ms 1
clear_threat_for_ped_type 7 remove_threat 1
$4532 = 0
change_blip_display $ASUKA display 3
return 

:MA6_2323
$ONMISSION = 0
set_zone_ped_info 'CONSTRU' 1 30 150 0 0 0 0 0 0 20
set_zone_ped_info 'CONSTRU' 0 16 100 0 0 0 0 0 0 10
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $MA6CARPICK
remove_blip $MA6KILLPICK
remove_sphere $MA6SPHERE1
remove_sphere $MA6SPHERE2
remove_pickup $MA6_HEALTH_PICKUP
clear_onscreen_counter $MA6NUM
remove_char_elegantly $MA6KILL1
remove_char_elegantly $MA6KILL2
remove_char_elegantly $MA6KILL3
remove_char_elegantly $MA6KILL4
remove_char_elegantly $MA6KILL5
remove_char_elegantly $MA6KILL6
remove_char_elegantly $MA6KILL7
remove_char_elegantly $MA6KILL8
remove_char_elegantly $MA6KILL9
remove_char_elegantly $MA6KILL10
clear_onscreen_counter $MA6NUM
clear_onscreen_timer $MA6_TIME
unload_special_character 1
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 127
mark_model_as_no_longer_needed 136
load_splash_screen 'MAINSC1'
mission_has_finished 
return 
terminate_this_script 

//-------------Mission 32---------------
// Originally: Salvatore's Called A Meeting

:MA7
gosub @MA7_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA7_27
gosub @MA7_4224

:MA7_27
gosub @MA7_4255
terminate_this_script 

:MA7_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA7'
request_model 11
request_model 25
request_model 39
request_model 40
request_model 156
load_special_character 1 'ASUKA'
load_special_character 2 'DONKY'
load_special_character 3 'MISTY'
load_all_models_now 
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
load_splash_screen 'ASUKA'
do_fade 0 1000
print_big 'MA7_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA7_322
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA7_350
goto @MA7_846

:MA7_350
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA7_322
clear_help 
load_mission_audio 'L2_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA7_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA7_422
wait 0
if 
  TIMERA >= 6260
goto_if_false @MA7_422
print_now 'MA7_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA7_470
wait 0
if 
  TIMERA >= 15150
goto_if_false @MA7_470
print_now 'MA7_5' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA7_518
wait 0
if 
  TIMERA >= 19070
goto_if_false @MA7_518
print_now 'MA7_6' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA7_566
wait 0
if 
  TIMERA >= 26130
goto_if_false @MA7_566
print_now 'MA7_7' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA7_614
wait 0
if 
  TIMERA >= 32080
goto_if_false @MA7_614
print_now 'MA7_7A' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA7_662
wait 0
if 
  TIMERA >= 37210
goto_if_false @MA7_662
print_now 'MA7_8' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA7_712
wait 0
if 
  TIMERA >= 43150
goto_if_false @MA7_712
print_now 'MA7_8A' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA7_762
wait 0
if 
  TIMERA >= 51020
goto_if_false @MA7_762
print_now 'MA7_9' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA7_812
wait 0
if 
  TIMERA >= 55101
goto_if_false @MA7_812
clear_prints 
wait 1000
clear_mission_audio 

:MA7_846
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $ASUKA_CHAR
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
create_char $MA7KILL1 = create_actor 21 25 at 280.0 -996.25 26.0625
create_char $MA7KILL2 = create_actor 21 25 at 178.9375 -1074.125 26.125
create_char $GIRLNPC1 = create_actor 20 39 at 280.0 -999.25 26.0625
create_char $GIRLNPC2 = create_actor 20 40 at 178.9375 -1077.125 26.125
add_blip_for_char $MA7KILLPICK1 = create_marker_above_actor $MA7KILL1
add_blip_for_char $MA7KILLPICK2 = create_marker_above_actor $MA7KILL2
change_blip_colour $MA7KILLPICK1 color_to 0
change_blip_colour $MA7KILLPICK2 color_to 0
set_char_threat_search $MA7KILL1 search_threat 1
set_char_threat_search $MA7KILL2 search_threat 1
set_char_heed_threats $MA7KILL1 heed_threats 1
set_char_heed_threats $MA7KILL2 heed_threats 1
char_wander_dir $GIRLNPC1 wander_direction 0
char_wander_dir $GIRLNPC2 wander_direction 0
set_char_obj_goto_char_on_foot $MA7KILL1 follow_actor $GIRLNPC1
set_char_obj_goto_char_on_foot $MA7KILL2 follow_actor $GIRLNPC2
give_weapon_to_char $MA7KILL1 weapon 4 ammo 999
give_weapon_to_char $MA7KILL2 weapon 4 ammo 999
add_armour_to_char $MA7KILL1 armour_to 100
add_armour_to_char $MA7KILL2 armour_to 100
$MA7DEAD1 = 0
$MA7DEAD2 = 0
$MA7SAY1 = 0
$MA7SAY2 = 0

:MA7_1174
wait 0
if and
  $MA7SAY1 == 0
  $MA7DEAD1 == 0
goto_if_false @MA7_1271
if 
  not is_char_dead $MA7KILL1
goto_if_false @MA7_1271
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $GIRLNPC1 radius 30.0 30.0 30.0
goto_if_false @MA7_1271
print_now 'MA7_10' time 5000 1
$MA7SAY1 = 1

:MA7_1271
if and
  $MA7DEAD2 == 0
  $MA7SAY2 == 0
goto_if_false @MA7_1364
if 
  not is_char_dead $MA7KILL2
goto_if_false @MA7_1364
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $GIRLNPC2 radius 30.0 30.0 30.0
goto_if_false @MA7_1364
print_now 'MA7_12' time 5000 1
$MA7SAY2 = 1

:MA7_1364
wait 0
if 
  $MA7DEAD1 == 0
goto_if_false @MA7_1416
if 
  is_char_dead $MA7KILL1
goto_if_false @MA7_1416
change_blip_display $MA7KILLPICK1 display 0
$MA7DEAD1 = 1

:MA7_1416
wait 0
if 
  $MA7DEAD2 == 0
goto_if_false @MA7_1468
if 
  is_char_dead $MA7KILL2
goto_if_false @MA7_1468
change_blip_display $MA7KILLPICK2 display 0
$MA7DEAD2 = 1

:MA7_1468
if and
  $MA7DEAD1 == 1
  $MA7DEAD2 == 1
goto_if_false @MA7_1174
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 259.125 -1009.625 26.125 color 5 display 2
add_sphere $MA7SPHERE1 = create_sphere 259.125 -1009.625 26.125 2.0
change_blip_scale $TAXI_PICKUP1 size 3

:MA7_1535
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 259.125 -1009.625 26.125 radius 2.0 2.0 2.0
goto_if_false @MA7_1535
remove_sphere $MA7SPHERE1
remove_blip $TAXI_PICKUP1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
delete_char $GIRLNPC1
delete_char $GIRLNPC2
delete_char $MA7KILL1
delete_char $MA7KILL2
create_char $GIRLNPC3 = create_actor 20 28 at 269.3125 -1010.5 26.25
create_char $MA7KILL3 = create_actor 21 27 at 269.25 -1012.5 26.25
create_char $MA7KILL4 = create_actor 21 25 at 265.5625 -1013.0 26.25
create_char $MA7KILL5 = create_actor 21 25 at 267.0625 -1009.25 26.25
create_char $MA7KILL6 = create_actor 21 25 at 262.1875 -1014.0 26.25
give_weapon_to_char $MA7KILL3 weapon 3 ammo 999
give_weapon_to_char $MA7KILL4 weapon 3 ammo 999
give_weapon_to_char $MA7KILL5 weapon 3 ammo 999
give_weapon_to_char $MA7KILL6 weapon 3 ammo 999
add_blip_for_char $MA7KILL3_BLIP = create_marker_above_actor $MA7KILL3
add_blip_for_char $MA7KILL4_BLIP = create_marker_above_actor $MA7KILL4
add_blip_for_char $MA7KILL5_BLIP = create_marker_above_actor $MA7KILL5
add_blip_for_char $MA7KILL6_BLIP = create_marker_above_actor $MA7KILL6
change_blip_colour $MA7KILL3_BLIP color_to 0
change_blip_colour $MA7KILL4_BLIP color_to 0
change_blip_colour $MA7KILL5_BLIP color_to 0
change_blip_colour $MA7KILL6_BLIP color_to 0
set_player_coordinates $PLAYER_CHAR at 261.5625 -1008.75 26.25
wait 500
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_char_heading $GIRLNPC3 z_angle_to 90.0
turn_char_to_face_char $MA7KILL3 look_at_actor $GIRLNPC3
turn_char_to_face_char $MA7KILL5 look_at_actor $GIRLNPC3
turn_char_to_face_char $MA7KILL4 look_at_actor $MA7KILL6
turn_char_to_face_char $MA7KILL6 look_at_actor $MA7KILL4
turn_char_to_face_char $GIRLNPC3 look_at_actor $MA7KILL3
set_chars_chatting $MA7KILL4 $MA7KILL6 converse_in 9999999
set_camera_behind_player 
restore_camera_jumpcut 
wait 500
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
print_now 'MA7_11' time 4000 1
TIMERA = 0
$GIRLNPC3_15 = 0
$GIRLNPC3_7 = 0

:MA7_1966
wait 0
if 
  not is_char_dead $GIRLNPC3
goto_if_false @MA7_4224
if and
  TIMERA > 1000
  $GIRLNPC3_15 == 0
goto_if_false @MA7_2029
set_char_wait_state $GIRLNPC3 anim 15 wait_state_time 3000
$GIRLNPC3_15 = 1

:MA7_2029
if and
  TIMERA > 4500
  $GIRLNPC3_7 == 0
goto_if_false @MA7_2072
set_char_wait_state $GIRLNPC3 anim 7 wait_state_time 3000
$GIRLNPC3_7 = 1

:MA7_2072
if or
  is_char_health_greater $MA7KILL3 health > 100
  is_char_health_greater $MA7KILL4 health > 100
  is_char_health_greater $MA7KILL5 health > 100
  is_char_health_greater $MA7KILL6 health > 100
  is_player_shooting $PLAYER_CHAR
goto_if_false @MA7_1966
set_char_obj_kill_player_on_foot $MA7KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA7KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA7KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA7KILL6 kill_player $PLAYER_CHAR
set_char_wait_state $GIRLNPC3 anim 14 wait_state_time 3000

:MA7_2158
wait 0
if 
  not is_char_dead $GIRLNPC3
goto_if_false @MA7_4224
if 
  is_char_dead $MA7KILL3
goto_if_false @MA7_2199
remove_blip $MA7KILL3_BLIP

:MA7_2199
if 
  is_char_dead $MA7KILL4
goto_if_false @MA7_2220
remove_blip $MA7KILL4_BLIP

:MA7_2220
if 
  is_char_dead $MA7KILL5
goto_if_false @MA7_2241
remove_blip $MA7KILL5_BLIP

:MA7_2241
if 
  is_char_dead $MA7KILL6
goto_if_false @MA7_2262
remove_blip $MA7KILL6_BLIP

:MA7_2262
wait 0
if and
  is_char_dead $MA7KILL3
  is_char_dead $MA7KILL4
  is_char_dead $MA7KILL5
  is_char_dead $MA7KILL6
goto_if_false @MA7_2158
remove_blip $MA7KILL3_BLIP
remove_blip $MA7KILL4_BLIP
remove_blip $MA7KILL5_BLIP
remove_blip $MA7KILL6_BLIP
set_player_control $PLAYER_CHAR can_move 0
wait 2000
do_fade 0 1000
wait 1000
delete_char $MA7KILL3
delete_char $MA7KILL4
delete_char $MA7KILL5
delete_char $MA7KILL6
set_player_coordinates $PLAYER_CHAR at 259.125 -1009.625 25.125
set_player_heading $PLAYER_CHAR z_angle_to 90.0
set_camera_behind_player 
restore_camera_jumpcut 
wait 1000
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
remove_char_elegantly $GIRLNPC3
add_pager_message 'MA7_14' 140 10 2
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at 107.375 -1275.563 26.125 color 5 display 2
add_sphere $MA7SPHERE1 = create_sphere 107.375 -1275.563 26.125 2.5
change_blip_scale $TAXI_PICKUP1 size 3

:MA7_2475
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 107.375 -1275.563 26.125 radius 2.0 2.0 2.0
goto_if_false @MA7_2475
remove_blip $TAXI_PICKUP1
remove_sphere $MA7SPHERE1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
load_special_character 2 'BOMBER'
switch_widescreen 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at 96.5 -1257.188 28.125 range 10.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 96.5 -1257.188 28.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.875 -1244.688 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 91.75 -1249.938 25.125
create_char $ASUKA_CHAR = create_actor 21 26 at 91.8125 -1245.188 25.125
set_char_heading $ASUKA_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
remove_char_elegantly $GIRLNPC1
remove_char_elegantly $GIRLNPC2
remove_char_elegantly $GIRLNPC3
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA7_3047
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA7_3047
print_now 'MA7_15' time 5000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
wait 3500
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA7_3047
print_now 'MA7_16' time 5000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 3200
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA7_3047
print_now 'MA7_17' time 6000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MA7_3047
print_now 'MA7_18' time 4000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000
wait 3000
do_fade 0 1000
wait 1000
set_fixed_camera_position 94.125 -1242.188 26.125 rotation 0.0 0.0 0.0
point_camera_at_point 91.125 -1233.125 31.375 switchstyle 2
do_fade 1 1000
wait 1000
shake_cam 100
wait 1000
print_now 'MA7_27' time 3000 1
shake_cam 100
wait 1000
shake_cam 130
wait 1000
shake_cam 150
wait 1000
shake_cam 150
wait 1000

:MA7_3047
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
remove_char_elegantly $ASUKA_CHAR
restore_camera_jumpcut 
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at 111.8125 -1275.813 25.125
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at 221.5625 -1497.313 27.375 color 5 display 2
add_sphere $MA7SPHERE2 = create_sphere 221.5625 -1497.313 27.375 2.5
create_char $MA7KILL10 = create_actor 21 27 at 237.625 -1532.938 26.125
change_blip_scale $TAXI_PICKUP2 size 3
set_char_heading $MA7KILL10 z_angle_to 270.0
explode_char_head $MA7KILL10
wait 2000
print_now 'MA7_19' time 3000 1

:MA7_3237
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 221.5625 -1497.313 27.375 radius 2.0 2.0 2.0
goto_if_false @MA7_3237
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
remove_blip $TAXI_PICKUP2
remove_sphere $MA7SPHERE2
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 239.0625 -1526.5 28.0 rotation 0.0 0.0 0.0
point_camera_at_point 237.625 -1532.938 26.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 235.4375 -1531.688 25.125
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MA7KILL10
commercial_passed 
switch_roads_on -46.75 -648.0 39.0 -69.0625 -614.0 50.0
if 
  does_object_exist $HELIX_BARRIER
goto_if_false @MA7_3415
delete_object $HELIX_BARRIER

:MA7_3415
do_fade 1 1000
wait 1000
print_now 'MA7_20' time 5000 1
wait 5000
print_now 'MA7_21' time 6000 1
wait 6000
print_now 'MA7_22' time 6000 1
wait 6000
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at 221.5625 -1497.313 26.375
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_pager_message 'MA7_23' 140 2 0
create_car $MA7KILLCAR1 = create_car 156 at 252.875 -1606.0 26.0
create_car $MA7KILLCAR2 = create_car 156 at 162.0 -1398.75 26.0
set_car_heading $MA7KILLCAR1 z_angle_to 115.0
set_car_heading $MA7KILLCAR2 z_angle_to 270.0
set_car_cruise_speed $MA7KILLCAR1 max_speed_to 30.0
set_car_cruise_speed $MA7KILLCAR2 max_speed_to 30.0
create_char_inside_car $MA7KILLA = create_actor 7 11 in_car $MA7KILLCAR1
create_char_inside_car $MA7KILLB = create_actor 7 11 in_car $MA7KILLCAR2
create_char_as_passenger $MA7KILLC = create_actor 21 11 in_car $MA7KILLCAR1 passenger_seat 0
create_char_as_passenger $MA7KILLD = create_actor 21 11 in_car $MA7KILLCAR2 passenger_seat 0
create_char_as_passenger $MA7KILLE = create_actor 21 11 in_car $MA7KILLCAR1 passenger_seat 1
create_char_as_passenger $MA7KILLF = create_actor 21 11 in_car $MA7KILLCAR2 passenger_seat 1
create_char_as_passenger $MA7KILLG = create_actor 21 11 in_car $MA7KILLCAR1 passenger_seat 2
create_char_as_passenger $MA7KILLH = create_actor 21 11 in_car $MA7KILLCAR2 passenger_seat 2
give_weapon_to_char $MA7KILLA weapon 5 ammo 999
give_weapon_to_char $MA7KILLB weapon 5 ammo 999
give_weapon_to_char $MA7KILLC weapon 5 ammo 999
give_weapon_to_char $MA7KILLD weapon 5 ammo 999
give_weapon_to_char $MA7KILLE weapon 5 ammo 999
give_weapon_to_char $MA7KILLF weapon 5 ammo 999
give_weapon_to_char $MA7KILLG weapon 5 ammo 999
give_weapon_to_char $MA7KILLH weapon 5 ammo 999
set_char_obj_kill_player_any_means $MA7KILLA kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLB kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLC kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLD kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLE kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLF kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLG kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA7KILLH kill_player $PLAYER_CHAR
add_blip_for_coord_old $TAXI_PICKUP3 = create_marker_at -541.8125 -631.5 43.125 color 5 display 2
change_blip_scale $TAXI_PICKUP3 size 3
wait 8000
$MA7_TIME = 120000
display_onscreen_timer $MA7_TIME
wait 2000
add_pager_message 'MA7_24' 140 2 0
alter_wanted_level $PLAYER_CHAR wanted_level_to 4

:MA7_3976
wait 0
if 
  $MA7_TIME > 0
goto_if_false @MA7_4224
if 
  is_collision_in_memory 3
goto_if_false @MA7_3976
add_pager_message 'MA7_26' 140 2 0
clear_onscreen_timer $MA7_TIME
clear_wanted_level $PLAYER_CHAR
remove_blip $TAXI_PICKUP3
add_blip_for_coord_old $TAXI_PICKUP4 = create_marker_at -1117.688 53.125 58.6875 color 5 display 2
change_blip_scale $TAXI_PICKUP4 size 3

:MA7_4070
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 1 -1117.688 53.125 58.6875 radius 1.0 1.0 1.0
goto_if_false @MA7_4070
remove_blip $TAXI_PICKUP4
print_with_number_big 'M_PASS' 15000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 15000
$HOSPITAL3_OPEN = 1
$4533 = 1
start_new_script @THIRTY4 
start_new_script @PRACE3 
start_new_script @S_SAVE 
swap_nearest_building_model 289.4375 9.125 -37.8125 radius 20.0 from #BASEFLOOR to #LOD_LAND014
register_mission_passed 'MA7_2'
return 

:MA7_4224
print_big 'M_FAIL' 6000 ms 1
$4533 = 0
change_blip_display $ASUKA display 3
return 

:MA7_4255
$ONMISSION = 0
wait 1000
remove_blip $TAXI_PICKUP0
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
remove_blip $TAXI_PICKUP4
remove_blip $MA7KILLPICK1
remove_blip $MA7KILLPICK2
remove_blip $MA7KILLPICK3
remove_blip $MA7KILL3_BLIP
remove_blip $MA7KILL4_BLIP
remove_blip $MA7KILL5_BLIP
remove_blip $MA7KILL6_BLIP
remove_sphere $MA7SPHERE0
remove_sphere $MA7SPHERE1
remove_sphere $MA7SPHERE2
clear_onscreen_timer $MA7_TIME1
remove_char_elegantly $GIRLNPC1
remove_char_elegantly $GIRLNPC2
remove_char_elegantly $GIRLNPC3
remove_char_elegantly $MA7KILL1
remove_char_elegantly $MA7KILL2
remove_char_elegantly $MA7KILL3
remove_char_elegantly $MA7KILL4
remove_char_elegantly $MA7KILL5
remove_char_elegantly $MA7KILL6
clear_onscreen_timer $MA7_TIME
clear_wanted_level $PLAYER_CHAR
unload_special_character 1
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 39
mark_model_as_no_longer_needed 40
mark_model_as_no_longer_needed 156
load_splash_screen 'MAINSC1'
mission_has_finished 
return 
terminate_this_script 

//-------------Mission 33---------------
// Originally: Triads And Tribulations

:MXOX
gosub @MXOX_36
if 
  has_deatharrest_been_executed 
goto_if_false @MXOX_27
gosub @MXOX_3748

:MXOX_27
gosub @MXOX_3786
terminate_this_script 

:MXOX_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MXOX'
request_model 22
request_model 23
request_model 20
request_model 21
load_all_models_now 
$MXOX_POINT1 = 0

:MXOX_88
wait 0
if and
  has_model_loaded 22
  has_model_loaded 23
goto_if_false @MXOX_88
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -483.875 -61.875 3.8125 radius 2.0 2.0 2.0
goto_if_false @MXOX_180
$MXOX_POINT1 = 1
change_blip_display $TAXI_PICKUP1 display 0
change_blip_display $TAXI_PICKUP2 display 0
remove_sphere $MXOXSPHERE1
goto @MXOX_1010

:MXOX_180
change_blip_display $TAXI_PICKUP2 display 0
remove_sphere $MXOXSPHERE2
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
load_splash_screen 'FLY'
do_fade 0 1000
print_big 'MXOX_2' 3000 ms 2
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -1102.0 -592.125 17.0625 rotation 0.0 0.0 0.0
point_camera_at_point -1119.5 -605.0625 13.0625 switchstyle 2
set_player_coordinates $PLAYER_CHAR at -1139.125 -535.875 11.0625
do_fade 1 1000
wait 1000
print_help 'TALK'

:MXOX_316
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MXOX_344
goto @MXOX_712

:MXOX_344
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_316
clear_help 
load_mission_audio 'J4_C'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MXOX_11' time 10000 1

:MXOX_406
wait 0
if 
  TIMERA >= 6290
goto_if_false @MXOX_406
print_now 'MXOX_12' time 10000 1

:MXOX_444
wait 0
if 
  TIMERA >= 15020
goto_if_false @MXOX_444
print_now 'MXOX_13' time 10000 1

:MXOX_482
wait 0
if 
  TIMERA >= 20040
goto_if_false @MXOX_482
print_now 'MXOX_14' time 10000 1

:MXOX_520
wait 0
if 
  TIMERA >= 25220
goto_if_false @MXOX_520
print_now 'MXOX_15' time 10000 1

:MXOX_558
wait 0
if 
  TIMERA >= 33250
goto_if_false @MXOX_558
print_now 'MXOX_16' time 10000 1

:MXOX_598
wait 0
if 
  TIMERA >= 39250
goto_if_false @MXOX_598
print_now 'MXOX_GA' time 10000 1

:MXOX_638
wait 0
if 
  TIMERA >= 47160
goto_if_false @MXOX_638
print_now 'MXOX_17' time 10000 1

:MXOX_678
wait 0
if 
  TIMERA >= 54130
goto_if_false @MXOX_678
clear_prints 
wait 500
clear_mission_audio 

:MXOX_712
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
do_fade 0 1000
wait 1000
switch_widescreen 0
create_char $MXOXNPC1 = create_actor 21 20 at -1108.75 -598.5625 11.0625
create_char $MXOXNPC2 = create_actor 21 21 at -1120.313 -600.9375 11.0625
create_char $MXOXNPC3 = create_actor 21 20 at -1112.188 -595.0625 11.0625
set_player_as_leader $MXOXNPC1 to_player $PLAYER_CHAR
set_player_as_leader $MXOXNPC2 to_player $PLAYER_CHAR
set_player_as_leader $MXOXNPC3 to_player $PLAYER_CHAR
give_weapon_to_char $MXOXNPC1 weapon 3 ammo 999
give_weapon_to_char $MXOXNPC2 weapon 3 ammo 999
give_weapon_to_char $MXOXNPC3 weapon 5 ammo 999
set_char_accuracy $MXOXNPC1 weapon_accuracy_to 80
set_char_accuracy $MXOXNPC2 weapon_accuracy_to 80
set_char_accuracy $MXOXNPC3 weapon_accuracy_to 80
set_char_threat_search $MXOXNPC1 search_threat 8192
set_char_threat_search $MXOXNPC2 search_threat 8192
set_char_threat_search $MXOXNPC3 search_threat 8192
set_player_coordinates $PLAYER_CHAR at -1116.125 -598.8125 11.0625
set_player_heading $PLAYER_CHAR z_angle_to 360.0
set_camera_behind_player 
restore_camera_jumpcut 
add_armour_to_player $PLAYER_CHAR armour_to 100
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at -483.875 -61.875 3.8125 color 0 display 3
add_sphere $MC0SPHERE1 = create_sphere -483.875 -61.875 3.8125 2.5
change_blip_scale $TAXI_PICKUP1 size 3

:MXOX_1010
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -483.875 -61.875 3.8125 radius 2.0 2.0 2.0
goto_if_false @MXOX_1010
remove_blip $TAXI_PICKUP1
remove_sphere $MC0SPHERE1
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
do_fade 0 1000
if 
  $MXOX_POINT1 == 0
goto_if_false @MXOX_1111
print_big 'MXOX_2' 3000 ms 2

:MXOX_1111
load_mission_audio 'J4_D'
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -478.8125 -68.5625 7.8125 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 1
create_char $MXOXNPC = create_actor 21 22 at -466.5 -61.5625 3.8125
set_char_heading $MXOXNPC z_angle_to 90.0
do_fade 1 1000
wait 1000
set_char_obj_run_to_coord $MXOXNPC run_to -480.4375 -61.5
wait 1000
print_now 'MXOX_4' time 10000 1
play_mission_audio 
wait 3000
turn_char_to_face_char $MXOXNPC look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MXOXNPC
wait 3080
print_now 'MXOX_5' time 10000 1
wait 4210
print_now 'MXOX_6' time 10000 1
wait 4860
print_now 'MXOX_6A' time 10000 1
wait 6000
set_char_obj_run_to_coord $MXOXNPC run_to -460.125 -60.75
wait 2000
clear_mission_audio 
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
create_char $MXOXKILL1 = create_actor 13 22 at -467.6875 -62.125 3.8125
create_char $MXOXKILL2 = create_actor 13 23 at -471.5625 -66.5 9.3125
create_char $MXOXKILL3 = create_actor 13 22 at -471.3125 -77.5625 9.3125
create_char $MXOXKILL4 = create_actor 13 23 at -494.6875 -65.125 10.875
create_char $MXOXKILL5 = create_actor 13 22 at -494.375 -62.625 3.8125
create_char $MXOXKILL6 = create_actor 13 23 at -491.9375 -45.0 3.8125
create_char $MXOXKILL7 = create_actor 13 22 at -495.1875 -29.0625 3.8125
create_char $MXOXKILL8 = create_actor 13 23 at -505.375 -30.4375 3.8125
create_char $MXOXKILL9 = create_actor 13 22 at -494.1875 -16.6875 10.0
create_char $MXOXKILL10 = create_actor 13 23 at -478.0625 -74.4375 3.8125
create_char $MXOXKILL11 = create_actor 13 23 at -487.1875 -75.5625 3.8125
create_char $MXOXKILL12 = create_actor 13 23 at -493.0625 -41.5 3.8125
give_weapon_to_char $MXOXKILL1 weapon 4 ammo 999
give_weapon_to_char $MXOXKILL2 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL3 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL4 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL5 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL6 weapon 4 ammo 999
give_weapon_to_char $MXOXKILL7 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL8 weapon 4 ammo 999
give_weapon_to_char $MXOXKILL9 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL10 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL11 weapon 5 ammo 999
give_weapon_to_char $MXOXKILL12 weapon 4 ammo 999
add_blip_for_char $MXOXPICK1 = create_marker_above_actor $MXOXKILL1
add_blip_for_char $MXOXPICK2 = create_marker_above_actor $MXOXKILL2
add_blip_for_char $MXOXPICK3 = create_marker_above_actor $MXOXKILL3
add_blip_for_char $MXOXPICK4 = create_marker_above_actor $MXOXKILL4
add_blip_for_char $MXOXPICK5 = create_marker_above_actor $MXOXKILL5
add_blip_for_char $MXOXPICK6 = create_marker_above_actor $MXOXKILL6
add_blip_for_char $MXOXPICK7 = create_marker_above_actor $MXOXKILL7
add_blip_for_char $MXOXPICK8 = create_marker_above_actor $MXOXKILL8
add_blip_for_char $MXOXPICK9 = create_marker_above_actor $MXOXKILL9
add_blip_for_char $MXOXPICK10 = create_marker_above_actor $MXOXKILL10
add_blip_for_char $MXOXPICK11 = create_marker_above_actor $MXOXKILL11
add_blip_for_char $MXOXPICK12 = create_marker_above_actor $MXOXKILL12
set_char_stay_in_same_place $MXOXKILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL10 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $MXOXKILL12 maintain_position_when_attacked 1
change_blip_colour $MXOXPICK1 color_to 0
change_blip_colour $MXOXPICK2 color_to 0
change_blip_colour $MXOXPICK3 color_to 0
change_blip_colour $MXOXPICK4 color_to 0
change_blip_colour $MXOXPICK5 color_to 0
change_blip_colour $MXOXPICK6 color_to 0
change_blip_colour $MXOXPICK7 color_to 0
change_blip_colour $MXOXPICK8 color_to 0
change_blip_colour $MXOXPICK9 color_to 0
change_blip_colour $MXOXPICK10 color_to 0
change_blip_colour $MXOXPICK11 color_to 0
change_blip_colour $MXOXPICK12 color_to 0
restore_camera_jumpcut 
switch_widescreen 0
remove_char_elegantly $MXOXNPC
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
wait 2000
set_char_obj_kill_player_on_foot $MXOXKILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL10 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MXOXKILL12 kill_player $PLAYER_CHAR

:MXOX_2096
wait 10
if 
  is_char_dead $MXOXKILL1
goto_if_false @MXOX_2123
change_blip_display $MXOXPICK1 display 0

:MXOX_2123
if 
  is_char_dead $MXOXKILL2
goto_if_false @MXOX_2146
change_blip_display $MXOXPICK2 display 0

:MXOX_2146
if 
  is_char_dead $MXOXKILL3
goto_if_false @MXOX_2169
change_blip_display $MXOXPICK3 display 0

:MXOX_2169
if 
  is_char_dead $MXOXKILL4
goto_if_false @MXOX_2192
change_blip_display $MXOXPICK4 display 0

:MXOX_2192
if 
  is_char_dead $MXOXKILL5
goto_if_false @MXOX_2215
change_blip_display $MXOXPICK5 display 0

:MXOX_2215
wait 10
if 
  is_char_dead $MXOXKILL6
goto_if_false @MXOX_2242
change_blip_display $MXOXPICK6 display 0

:MXOX_2242
if 
  is_char_dead $MXOXKILL7
goto_if_false @MXOX_2265
change_blip_display $MXOXPICK7 display 0

:MXOX_2265
if 
  is_char_dead $MXOXKILL8
goto_if_false @MXOX_2288
change_blip_display $MXOXPICK8 display 0

:MXOX_2288
if 
  is_char_dead $MXOXKILL9
goto_if_false @MXOX_2311
change_blip_display $MXOXPICK9 display 0

:MXOX_2311
if 
  is_char_dead $MXOXKILL10
goto_if_false @MXOX_2334
change_blip_display $MXOXPICK10 display 0

:MXOX_2334
if 
  is_char_dead $MXOXKILL11
goto_if_false @MXOX_2357
change_blip_display $MXOXPICK11 display 0

:MXOX_2357
if 
  is_char_dead $MXOXKILL12
goto_if_false @MXOX_2380
change_blip_display $MXOXPICK12 display 0

:MXOX_2380
wait 10
if and
  is_char_dead $MXOXKILL1
  is_char_dead $MXOXKILL2
  is_char_dead $MXOXKILL3
  is_char_dead $MXOXKILL4
  is_char_dead $MXOXKILL5
  is_char_dead $MXOXKILL6
goto_if_false @MXOX_2096
if and
  is_char_dead $MXOXKILL7
  is_char_dead $MXOXKILL8
  is_char_dead $MXOXKILL9
  is_char_dead $MXOXKILL10
  is_char_dead $MXOXKILL11
  is_char_dead $MXOXKILL12
goto_if_false @MXOX_2096
change_blip_display $MXOXPICK1 display 0
change_blip_display $MXOXPICK2 display 0
change_blip_display $MXOXPICK3 display 0
change_blip_display $MXOXPICK4 display 0
change_blip_display $MXOXPICK5 display 0
change_blip_display $MXOXPICK6 display 0
change_blip_display $MXOXPICK7 display 0
change_blip_display $MXOXPICK8 display 0
change_blip_display $MXOXPICK9 display 0
change_blip_display $MXOXPICK10 display 0
change_blip_display $MXOXPICK11 display 0
change_blip_display $MXOXPICK12 display 0
remove_blip $MXOXPICK1
remove_blip $MXOXPICK2
remove_blip $MXOXPICK3
remove_blip $MXOXPICK4
remove_blip $MXOXPICK5
remove_blip $MXOXPICK6
remove_blip $MXOXPICK7
remove_blip $MXOXPICK8
remove_blip $MXOXPICK9
remove_blip $MXOXPICK10
remove_blip $MXOXPICK11
remove_blip $MXOXPICK12
print_now 'MXOX_D' time 5000 1
wait 2000
add_pager_message 'MXOX_7' 140 10 2
add_blip_for_coord_old $TAXI_PICKUP2 = create_marker_at -1116.125 -598.8125 11.0625 color 5 display 2
add_sphere $MC0SPHERE2 = create_sphere -1116.125 -598.8125 11.0625 2.5
change_blip_scale $TAXI_PICKUP2 size 3

:MXOX_2689
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -1116.125 -598.8125 11.0625 radius 2.0 2.0 2.0
goto_if_false @MXOX_2689
remove_blip $TAXI_PICKUP2
remove_sphere $MC0SPHERE2
remove_char_elegantly $MXOXNPC1
remove_char_elegantly $MXOXNPC2
remove_char_elegantly $MXOXNPC3
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
do_fade 0 1000
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -1102.0 -592.125 17.0625 rotation 0.0 0.0 0.0
point_camera_at_point -1119.5 -605.0625 13.0625 switchstyle 2
set_player_coordinates $PLAYER_CHAR at -1139.125 -535.875 11.0625
if 
  $MXOX_POINT1 == 1
goto_if_false @MXOX_3186
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_8' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_9' time 4000 1
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_10' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_A' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_AA' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_B' time 4000 1
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_BB' time 5000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_C' time 5000 1
wait 5000
goto @MXOX_3511

:MXOX_3186
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_18' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_19' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_20' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_A' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_AA' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_B' time 4000 1
wait 4000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_BB' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MXOX_3511
print_now 'MXOX_C' time 5000 1

:MXOX_3511
clear_prints 
load_splash_screen 'MAINSC1'
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
do_fade 0 1000
wait 1000
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at -1116.125 -598.8125 11.0625
set_player_heading $PLAYER_CHAR z_angle_to 360.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 360.0
set_player_control $PLAYER_CHAR can_move 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
if 
  $MXOX_POINT1 == 1
goto_if_false @MXOX_3695
add_score $PLAYER_CHAR money += 10000
print_with_number_big 'M_PASS' 10000 5000 ms 1
$4534 = 1
start_new_script @THIRTY5 
register_mission_passed 'MXOX_2'
return 

:MXOX_3695
add_score $PLAYER_CHAR money += 15000
print_with_number_big 'M_PASS' 15000 5000 ms 1
$4534 = 1
start_new_script @THIRTY5 
register_mission_passed 'MXOX_2'
return 

:MXOX_3748
change_blip_display $XOX_PICKUP1 display 3
change_blip_display $XOX_PICKUP2 display 3
print_big 'M_FAIL' 6000 ms 1
$4534 = 0
return 

:MXOX_3786
$ONMISSION = 0
remove_blip $TAXI_PICKUP1
remove_sphere $MC0SPHERE1
remove_blip $TAXI_PICKUP2
remove_sphere $MC0SPHERE2
remove_blip $MXOXPICK1
remove_blip $MXOXPICK2
remove_blip $MXOXPICK3
remove_blip $MXOXPICK4
remove_blip $MXOXPICK5
remove_blip $MXOXPICK6
remove_blip $MXOXPICK7
remove_blip $MXOXPICK8
remove_blip $MXOXPICK9
remove_blip $MXOXPICK10
remove_blip $MXOXPICK11
remove_blip $MXOXPICK12
remove_char_elegantly $MXOXKILL1
remove_char_elegantly $MXOXKILL2
remove_char_elegantly $MXOXKILL3
remove_char_elegantly $MXOXKILL4
remove_char_elegantly $MXOXKILL5
remove_char_elegantly $MXOXKILL6
remove_char_elegantly $MXOXKILL7
remove_char_elegantly $MXOXKILL8
remove_char_elegantly $MXOXKILL9
remove_char_elegantly $MXOXKILL10
remove_char_elegantly $MXOXKILL11
remove_char_elegantly $MXOXKILL12
remove_char_elegantly $MXOXNPC1
remove_char_elegantly $MXOXNPC2
remove_char_elegantly $MXOXNPC3
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 34---------------
// Originally: Blow Fish

:MC4
gosub @MC4_36
if 
  has_deatharrest_been_executed 
goto_if_false @MC4_27
gosub @MC4_6357

:MC4_27
gosub @MC4_6388
terminate_this_script 

:MC4_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MC4'
request_model 10
request_model 11
request_model 18
request_model 20
request_model 21
request_model 22
request_model 23
request_model 99
request_model 156
request_model 135
load_all_models_now 
switch_widescreen 1
load_splash_screen 'FLY'
load_special_character 1 'MICKY'
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
print_big 'MC4_2' 3000 ms 2
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -1102.0 -592.125 17.0625 rotation 0.0 0.0 0.0
point_camera_at_point -1119.5 -605.0625 13.0625 switchstyle 2
set_player_coordinates $PLAYER_CHAR at -1139.125 -535.875 11.0625
do_fade 1 1000
wait 1000
print_help 'TALK'

:MC4_243
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MC4_271
goto @MC4_759

:MC4_271
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MC4_243
clear_help 
load_mission_audio 'J4_E'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MC4_3' time 10000 1

:MC4_333
wait 0
if 
  TIMERA >= 8280
goto_if_false @MC4_333
print_now 'MC4_4' time 10000 1

:MC4_371
wait 0
if 
  TIMERA >= 17280
goto_if_false @MC4_371
print_now 'MC4_5' time 10000 1

:MC4_409
wait 0
if 
  TIMERA >= 23040
goto_if_false @MC4_409
print_now 'MC4_5A' time 10000 1

:MC4_447
wait 0
if 
  TIMERA >= 29020
goto_if_false @MC4_447
print_now 'MC4_6' time 10000 1

:MC4_485
wait 0
if 
  TIMERA >= 37260
goto_if_false @MC4_485
print_now 'MC4_7' time 10000 1

:MC4_525
wait 0
if 
  TIMERA >= 44020
goto_if_false @MC4_525
print_now 'MC4_8' time 10000 1

:MC4_565
wait 0
if 
  TIMERA >= 50210
goto_if_false @MC4_565
print_now 'MC4_8A' time 10000 1

:MC4_605
wait 0
if 
  TIMERA >= 55100
goto_if_false @MC4_605
print_now 'MC4_9' time 10000 1

:MC4_645
wait 0
if 
  TIMERA >= 60010
goto_if_false @MC4_645
print_now 'MC4_9A' time 10000 1

:MC4_685
wait 0
if 
  TIMERA >= 67120
goto_if_false @MC4_685
print_now 'MC4_10' time 10000 1

:MC4_725
wait 0
if 
  TIMERA >= 77110
goto_if_false @MC4_725
clear_prints 
wait 1000
clear_mission_audio 

:MC4_759
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
switch_widescreen 0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_coordinates $PLAYER_CHAR at -1116.125 -598.8125 10.0625
set_player_heading $PLAYER_CHAR z_angle_to 360.0
set_camera_behind_player 
restore_camera_jumpcut 
create_car $MC4CAR1 = create_car 99 at -1130.625 -558.0 11.0625
set_car_heading $MC4CAR1 z_angle_to 270.0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
add_blip_for_car $CAR1PICK = create_marker_above_car $MC4CAR1
change_blip_colour $CAR1PICK color_to 1

:MC4_882
change_blip_display $CAR1PICK display 3
wait 0
if 
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
goto_if_false @MC4_882
change_blip_display $CAR1PICK display 0
add_pager_message 'MC4_11' 140 10 2

:MC4_936
wait 0
if 
  not is_car_dead $MC4CAR1
goto_if_false @MC4_6357
if 
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
goto_if_false @MC4_936
set_player_control $PLAYER_CHAR can_move 0
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1
$MC4CARDAM = 100
display_onscreen_counter_with_string $MC4CARDAM 1 'DAM'
add_blip_for_coord_old $RACEPOINT1 = create_marker_at -746.0 -435.25 8.6875 color 5 display 3
change_blip_scale $RACEPOINT1 size 3

:MC4_1071
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -746.0 -435.25 8.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -746.0 -435.25 8.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_1071
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT1
add_blip_for_coord_old $RACEPOINT2 = create_marker_at -735.4375 -288.5625 18.6875 color 5 display 3
change_blip_scale $RACEPOINT2 size 3
$MC4_TIME = 120000
display_onscreen_timer $MC4_TIME

:MC4_1255
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -735.4375 -288.5625 18.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -735.4375 -288.5625 18.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_1255
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT2
add_blip_for_coord_old $RACEPOINT3 = create_marker_at -969.875 -252.6875 33.6875 color 5 display 3
change_blip_scale $RACEPOINT3 size 3
create_car $MC4CAR2 = create_car 135 at -648.0 -473.625 18.5
create_char_inside_car $MC4KILLA = create_actor 21 18 in_car $MC4CAR2
create_car $MC4CAR3 = create_car 135 at -642.5 -457.4375 18.5
create_char_inside_car $MC4KILLB = create_actor 21 18 in_car $MC4CAR3
set_car_heading $MC4CAR2 z_angle_to 0.0
set_car_heading $MC4CAR3 z_angle_to 0.0
add_blip_for_car $CAR2PICK = create_marker_above_car $MC4CAR2
add_blip_for_car $CAR3PICK = create_marker_above_car $MC4CAR3
change_blip_colour $CAR2PICK color_to 0
change_blip_colour $CAR3PICK color_to 0
change_blip_display $CAR2PICK display 2
change_blip_display $CAR3PICK display 2
set_car_mission $MC4CAR2 driver_behaviour_to 3
set_car_mission $MC4CAR3 driver_behaviour_to 3
set_car_cruise_speed $MC4CAR2 max_speed_to 35.0
set_car_cruise_speed $MC4CAR3 max_speed_to 35.0
set_car_driving_style $MC4CAR2 traffic_behavior_to 2
set_car_driving_style $MC4CAR3 traffic_behavior_to 2
change_car_lock 2 = car $MC4CAR3
change_car_lock 2 = car $MC4CAR2
add_pager_message 'MC4_12' 140 10 2

:MC4_1624
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -969.875 -252.6875 33.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -969.875 -252.6875 33.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_1624
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT3
add_blip_for_coord_old $RACEPOINT4 = create_marker_at -984.8125 -125.3125 33.6875 color 5 display 3
change_blip_scale $RACEPOINT4 size 3

:MC4_1800
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -984.8125 -125.3125 33.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -984.8125 -125.3125 33.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_1800
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT4
add_blip_for_coord_old $RACEPOINT5 = create_marker_at -1102.125 -113.25 44.25 color 5 display 3
change_blip_scale $RACEPOINT5 size 3
create_char $MC4KILLC = create_actor 21 22 at -1138.438 -76.125 48.0
create_char $MC4KILLD = create_actor 21 23 at -1112.25 -69.0625 48.8125
create_char $MC4KILLE = create_actor 21 22 at -1128.625 -96.4375 46.0
create_char $MC4KILLF = create_actor 21 23 at -1062.563 -50.125 45.0625
create_char $MC4KILLG = create_actor 21 22 at -996.9375 -66.125 38.8125
create_char $MC4KILLH = create_actor 21 23 at -997.5 -5.25 43.0625
create_char $MC4KILLI = create_actor 21 22 at -1095.438 5.1875 54.875
give_weapon_to_char $MC4KILLC weapon 2 ammo 999
give_weapon_to_char $MC4KILLD weapon 3 ammo 999
give_weapon_to_char $MC4KILLE weapon 2 ammo 999
give_weapon_to_char $MC4KILLF weapon 3 ammo 999
give_weapon_to_char $MC4KILLG weapon 2 ammo 999
give_weapon_to_char $MC4KILLH weapon 2 ammo 999
give_weapon_to_char $MC4KILLI weapon 2 ammo 999
set_char_heading $MC4KILLC z_angle_to 180.0
set_char_heading $MC4KILLD z_angle_to 180.0
set_char_heading $MC4KILLE z_angle_to 180.0
set_char_heading $MC4KILLF z_angle_to 180.0
set_char_heading $MC4KILLG z_angle_to 180.0
set_char_heading $MC4KILLH z_angle_to 180.0
set_char_heading $MC4KILLI z_angle_to 180.0
set_char_stay_in_same_place $MC4KILLC maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILLD maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILLE maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILLF maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILLG maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILLH maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILLI maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MC4KILLC kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILLD kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILLE kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILLF kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILLG kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILLH kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILLI kill_player $PLAYER_CHAR
add_pager_message 'MC4_13' 140 10 2

:MC4_2350
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -1102.125 -113.25 44.25
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -1102.125 -113.25 44.25 radius 6.0 6.0 6.0
goto_if_false @MC4_2350
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT5
add_blip_for_coord_old $RACEPOINT6 = create_marker_at -984.9375 -42.4375 39.3125 color 5 display 3
change_blip_scale $RACEPOINT6 size 3

:MC4_2526
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -984.9375 -42.4375 39.3125
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -984.9375 -42.4375 39.3125 radius 6.0 6.0 6.0
goto_if_false @MC4_2526
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT6
add_blip_for_coord_old $RACEPOINT7 = create_marker_at -1077.438 14.75 52.1875 color 5 display 3
change_blip_scale $RACEPOINT7 size 3

:MC4_2702
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -1077.438 14.75 52.1875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -1077.438 14.75 52.1875 radius 6.0 6.0 6.0
goto_if_false @MC4_2702
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT7
add_blip_for_coord_old $RACEPOINT8 = create_marker_at -1262.5 31.3125 64.5625 color 5 display 3
change_blip_scale $RACEPOINT8 size 3

:MC4_2878
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -1262.5 31.3125 64.5625
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -1262.5 31.3125 64.5625 radius 6.0 6.0 6.0
goto_if_false @MC4_2878
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT8
add_blip_for_coord_old $RACEPOINT9 = create_marker_at -1250.188 170.0 68.5625 color 5 display 3
change_blip_scale $RACEPOINT9 size 3

:MC4_3054
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -1250.188 170.0 68.5625
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -1250.188 170.0 68.5625 radius 6.0 6.0 6.0
goto_if_false @MC4_3054
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT9
add_blip_for_coord_old $RACEPOINT10 = create_marker_at -1085.625 149.375 56.0 color 5 display 3
change_blip_scale $RACEPOINT10 size 3

:MC4_3230
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -1085.625 149.375 56.0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -1085.625 149.375 56.0 radius 6.0 6.0 6.0
goto_if_false @MC4_3230
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT10
add_blip_for_coord_old $RACEPOINT11 = create_marker_at -1018.125 108.125 48.6875 color 5 display 3
change_blip_scale $RACEPOINT11 size 3
remove_char_elegantly $MC4KILLC
remove_char_elegantly $MC4KILLD
remove_char_elegantly $MC4KILLE
remove_char_elegantly $MC4KILLF
remove_char_elegantly $MC4KILLG
remove_char_elegantly $MC4KILLH
remove_char_elegantly $MC4KILLI
remove_char_elegantly $MC4KILLJ
create_car $MC4CAR4 = create_car 156 at -1160.438 77.75 58.6875
create_char_inside_car $MC4KILLA2 = create_actor 21 11 in_car $MC4CAR4
create_car $MC4CAR5 = create_car 156 at -1147.563 84.8125 58.6875
create_char_inside_car $MC4KILLB2 = create_actor 21 11 in_car $MC4CAR5
set_car_heading $MC4CAR4 z_angle_to 0.0
set_car_heading $MC4CAR5 z_angle_to 0.0
add_blip_for_car $CAR4PICK = create_marker_above_car $MC4CAR4
add_blip_for_car $CAR5PICK = create_marker_above_car $MC4CAR5
change_blip_display $CAR4PICK display 2
change_blip_display $CAR5PICK display 2
change_blip_colour $CAR4PICK color_to 0
change_blip_colour $CAR5PICK color_to 0
set_car_mission $MC4CAR4 driver_behaviour_to 3
set_car_mission $MC4CAR5 driver_behaviour_to 3
set_car_cruise_speed $MC4CAR4 max_speed_to 35.0
set_car_cruise_speed $MC4CAR5 max_speed_to 35.0
set_car_driving_style $MC4CAR4 traffic_behavior_to 2
set_car_driving_style $MC4CAR5 traffic_behavior_to 2
change_car_lock 2 = car $MC4CAR4
change_car_lock 2 = car $MC4CAR5
wait 3000
$MC4CAR3 = -1
$MC4CAR2 = -1
change_blip_display $CAR2PICK display 0
change_blip_display $CAR3PICK display 0
add_pager_message 'MC4_14' 140 10 2

:MC4_3672
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -1018.125 108.125 48.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -1018.125 108.125 48.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_3672
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT11
add_blip_for_coord_old $RACEPOINT12 = create_marker_at -861.75 178.9375 48.6875 color 5 display 3
change_blip_scale $RACEPOINT12 size 3

:MC4_3848
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -861.75 178.9375 48.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -861.75 178.9375 48.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_3848
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT12
add_blip_for_coord_old $RACEPOINT13 = create_marker_at -588.4375 187.1875 45.0 color 5 display 3
change_blip_scale $RACEPOINT13 size 3

:MC4_4024
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -588.4375 187.1875 45.0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -588.4375 187.1875 45.0 radius 6.0 6.0 6.0
goto_if_false @MC4_4024
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT13
add_blip_for_coord_old $RACEPOINT14 = create_marker_at -588.4375 187.1875 45.0 color 5 display 3
change_blip_scale $RACEPOINT14 size 3

:MC4_4200
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 0 0 100 at_point -588.4375 187.1875 45.0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -588.4375 187.1875 45.0 radius 6.0 6.0 6.0
goto_if_false @MC4_4200
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT14
add_blip_for_coord_old $RACEPOINT15 = create_marker_at -629.25 -60.1875 18.6875 color 5 display 3
change_blip_scale $RACEPOINT15 size 3

:MC4_4376
wait 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  not is_car_dead $MC4CAR1
  $MC4CARDAM > 0
  $MC4_TIME > 0
goto_if_false @MC4_6357
get_car_health $MC4CAR_HEALTH = car $MC4CAR1
$MC4CAR_HEALTH /= 10
set_var_int_to_var_int $MC4CARDAM = $MC4CAR_HEALTH
draw_corona 5.5 6 0 with_color 100 0 0 at_point -629.25 -60.1875 18.6875
if and
  is_player_in_car $PLAYER_CHAR in_car $MC4CAR1
  locate_player_in_car_3d $PLAYER_CHAR 0 -629.25 -60.1875 18.6875 radius 6.0 6.0 6.0
goto_if_false @MC4_4376
add_one_off_sound 100 at 0.0 0.0 0.0
remove_blip $RACEPOINT15
$MC4CAR4 = -1
$MC4CAR5 = -1
change_blip_display $CAR4PICK display 0
change_blip_display $CAR5PICK display 0
clear_onscreen_timer $MC4_TIME
clear_onscreen_counter $MC4CARDAM
print_now 'MC4_15' time 4000 1
wait 4000
add_pager_message 'MC4_16' 140 10 2
wait 2000
add_blip_for_coord_old $RACEPOINT16 = create_marker_at -1201.75 108.125 68.625 color 5 display 3
add_sphere $RACEPOINT16_SPHERE = create_sphere -1201.75 108.125 68.625 2.5
change_blip_scale $RACEPOINT16 size 3

:MC4_4649
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -1201.75 108.125 68.625 radius 2.0 2.0 2.0
goto_if_false @MC4_4649
remove_blip $RACEPOINT16
remove_sphere $RACEPOINT16_SPHERE
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
clear_area 1 at -1201.75 108.125 68.625 range 10.0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -1206.813 98.3125 70.625 rotation 0.0 0.0 0.0
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2
create_char $MC4KILL0 = create_actor 21 22 at -1196.938 117.9375 68.625
set_char_obj_run_to_coord $MC4KILL0 run_to -1200.5 112.1875
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC4KILL0
do_fade 1 1000
wait 3000
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC4KILL0
turn_char_to_face_char $MC4KILL0 look_at_actor $PLAYER_ACTOR
print_now 'MC4_17' time 3000 1
wait 3000
print_now 'MC4_17A' time 6000 1
wait 6000
print_now 'MC4_18' time 5000 1
wait 5000
print_now 'MC4_19' time 5000 1
wait 5000
print_now 'MC4_20' time 4000 1
wait 3000
clear_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
delete_char $MC4KILL0
mark_model_as_no_longer_needed 10
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 135
mark_model_as_no_longer_needed 156
if 
  $CREATECOL == 0
goto_if_false @MC4_5232
create_char $MC5NPC1 = create_actor 21 20 at -1110.188 -596.8125 11.0625
create_char $MC5NPC2 = create_actor 21 21 at -1122.375 -589.1875 11.0625
create_char $MC5NPC3 = create_actor 21 20 at -1115.188 -578.375 11.0625
create_char $MC5NPC4 = create_actor 21 21 at -1120.063 -600.1875 11.0625
create_char $MC5CSK = create_actor 21 26 at -1116.938 -600.3125 11.0625
set_char_heading $MC5NPC1 z_angle_to 360.0
set_char_heading $MC5NPC2 z_angle_to 34.0
set_char_heading $MC5NPC3 z_angle_to 5.0
set_char_heading $MC5NPC4 z_angle_to 160.0
set_char_heading $MC5CSK z_angle_to 3.0
explode_char_head $MC5NPC1
explode_char_head $MC5NPC2
explode_char_head $MC5NPC3
explode_char_head $MC5NPC4
explode_char_head $MC5CSK
$CREATECOL = 1
dont_remove_char $MC5NPC1
dont_remove_char $MC5NPC2
dont_remove_char $MC5NPC3
dont_remove_char $MC5NPC4
dont_remove_char $MC5CSK

:MC4_5232
create_char $MC4KILL1 = create_actor 21 22 at -1225.688 86.875 82.375
create_char $MC4KILL2 = create_actor 21 23 at -1160.5 113.25 72.0625
create_char $MC4KILL3 = create_actor 21 22 at -1200.688 93.625 72.0625
create_char $MC4KILL4 = create_actor 21 23 at -1217.938 125.0 82.75
create_char $MC4KILL5 = create_actor 21 22 at -1186.625 81.4375 68.6875
create_char $MC4KILL6 = create_actor 21 23 at -1248.813 120.3125 68.625
create_char $MC4KILL7 = create_actor 21 22 at -1167.688 101.1875 68.75
create_char $MC4KILL8 = create_actor 21 22 at -1184.25 75.5 68.6875
create_char $MC4KILL9 = create_actor 21 23 at -1254.125 94.3125 68.8125
create_char $MC4KILL10 = create_actor 21 23 at -1178.188 125.8125 83.0
give_weapon_to_char $MC4KILL1 weapon 5 ammo 999
give_weapon_to_char $MC4KILL2 weapon 3 ammo 999
give_weapon_to_char $MC4KILL3 weapon 3 ammo 999
give_weapon_to_char $MC4KILL4 weapon 5 ammo 999
give_weapon_to_char $MC4KILL5 weapon 3 ammo 999
give_weapon_to_char $MC4KILL6 weapon 9 ammo 999
give_weapon_to_char $MC4KILL7 weapon 9 ammo 999
give_weapon_to_char $MC4KILL8 weapon 9 ammo 999
give_weapon_to_char $MC4KILL9 weapon 9 ammo 999
give_weapon_to_char $MC4KILL10 weapon 10 ammo 999
add_blip_for_char $MC4PICK1 = create_marker_above_actor $MC4KILL1
add_blip_for_char $MC4PICK2 = create_marker_above_actor $MC4KILL2
add_blip_for_char $MC4PICK3 = create_marker_above_actor $MC4KILL3
add_blip_for_char $MC4PICK4 = create_marker_above_actor $MC4KILL4
add_blip_for_char $MC4PICK5 = create_marker_above_actor $MC4KILL5
add_blip_for_char $MC4PICK6 = create_marker_above_actor $MC4KILL6
add_blip_for_char $MC4PICK7 = create_marker_above_actor $MC4KILL7
add_blip_for_char $MC4PICK8 = create_marker_above_actor $MC4KILL8
add_blip_for_char $MC4PICK9 = create_marker_above_actor $MC4KILL9
add_blip_for_char $MC4PICK10 = create_marker_above_actor $MC4KILL10
set_char_stay_in_same_place $MC4KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC4KILL10 maintain_position_when_attacked 1
change_blip_colour $MC4PICK1 color_to 0
change_blip_colour $MC4PICK2 color_to 0
change_blip_colour $MC4PICK3 color_to 0
change_blip_colour $MC4PICK4 color_to 0
change_blip_colour $MC4PICK5 color_to 0
change_blip_colour $MC4PICK6 color_to 0
change_blip_colour $MC4PICK7 color_to 0
change_blip_colour $MC4PICK8 color_to 0
change_blip_colour $MC4PICK9 color_to 0
change_blip_colour $MC4PICK10 color_to 0
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_player_heading $PLAYER_CHAR z_angle_to 360.0
$MC4_TIME = 60000
display_onscreen_timer $MC4_TIME
wait 1000
set_char_obj_kill_player_on_foot $MC4KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC4KILL10 kill_player $PLAYER_CHAR

:MC4_5843
wait 10
if 
  $MC4_TIME > 0
goto_if_false @MC4_6357
if 
  is_char_dead $MC4KILL1
goto_if_false @MC4_5888
change_blip_display $MC4PICK1 display 0

:MC4_5888
if 
  is_char_dead $MC4KILL2
goto_if_false @MC4_5911
change_blip_display $MC4PICK2 display 0

:MC4_5911
if 
  is_char_dead $MC4KILL3
goto_if_false @MC4_5934
change_blip_display $MC4PICK3 display 0

:MC4_5934
if 
  is_char_dead $MC4KILL4
goto_if_false @MC4_5957
change_blip_display $MC4PICK4 display 0

:MC4_5957
if 
  is_char_dead $MC4KILL5
goto_if_false @MC4_5980
change_blip_display $MC4PICK5 display 0

:MC4_5980
wait 10
if 
  is_char_dead $MC4KILL6
goto_if_false @MC4_6007
change_blip_display $MC4PICK6 display 0

:MC4_6007
if 
  is_char_dead $MC4KILL7
goto_if_false @MC4_6030
change_blip_display $MC4PICK7 display 0

:MC4_6030
if 
  is_char_dead $MC4KILL8
goto_if_false @MC4_6053
change_blip_display $MC4PICK8 display 0

:MC4_6053
if 
  is_char_dead $MC4KILL9
goto_if_false @MC4_6076
change_blip_display $MC4PICK9 display 0

:MC4_6076
if 
  is_char_dead $MC4KILL10
goto_if_false @MC4_6099
change_blip_display $MC4PICK10 display 0

:MC4_6099
wait 10
if and
  is_char_dead $MC4KILL1
  is_char_dead $MC4KILL2
  is_char_dead $MC4KILL3
  is_char_dead $MC4KILL4
  is_char_dead $MC4KILL5
goto_if_false @MC4_5843
if and
  is_char_dead $MC4KILL6
  is_char_dead $MC4KILL7
  is_char_dead $MC4KILL8
  is_char_dead $MC4KILL9
  is_char_dead $MC4KILL10
goto_if_false @MC4_5843
change_blip_display $MC4PICK1 display 0
change_blip_display $MC4PICK2 display 0
change_blip_display $MC4PICK3 display 0
change_blip_display $MC4PICK4 display 0
change_blip_display $MC4PICK5 display 0
change_blip_display $MC4PICK6 display 0
change_blip_display $MC4PICK7 display 0
change_blip_display $MC4PICK8 display 0
change_blip_display $MC4PICK9 display 0
change_blip_display $MC4PICK10 display 0
clear_onscreen_timer $MC4_TIME
wait 1000
set_player_control $PLAYER_CHAR can_move 0
print_now 'MC4_21' time 4000 1
wait 3000
set_player_control $PLAYER_CHAR can_move 1
$4535 = 1
print_with_number_big 'M_PASS' 20000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 20000
register_mission_passed 'MC4_2'
start_new_script @THIRTY6 
return 

:MC4_6357
print_big 'M_FAIL' 6000 ms 1
$4535 = 0
change_blip_display $CSK display 3
return 

:MC4_6388
$ONMISSION = 0
remove_blip $RACEPOINT1
remove_blip $RACEPOINT2
remove_blip $RACEPOINT3
remove_blip $RACEPOINT4
remove_blip $RACEPOINT5
remove_blip $RACEPOINT6
remove_blip $RACEPOINT7
remove_blip $RACEPOINT8
remove_blip $RACEPOINT9
remove_blip $RACEPOINT10
remove_blip $RACEPOINT11
remove_blip $RACEPOINT12
remove_blip $RACEPOINT13
remove_blip $RACEPOINT14
remove_blip $RACEPOINT15
remove_blip $RACEPOINT16
remove_blip $TAXI_PICKUP2
remove_sphere $RACEPOINT16_SPHERE
remove_blip $CAR1PICK
remove_blip $CAR2PICK
remove_blip $CAR3PICK
remove_char_elegantly $MC4KILL1
remove_char_elegantly $MC4KILL2
remove_char_elegantly $MC4KILL3
remove_char_elegantly $MC4KILL4
remove_char_elegantly $MC4KILL5
remove_char_elegantly $MC4KILL6
remove_char_elegantly $MC4KILL7
remove_char_elegantly $MC4KILL8
remove_char_elegantly $MC4KILL9
remove_char_elegantly $MC4KILL10
remove_char_elegantly $MC4KILLC
remove_char_elegantly $MC4KILLD
remove_char_elegantly $MC4KILLE
remove_char_elegantly $MC4KILLF
remove_char_elegantly $MC4KILLG
remove_char_elegantly $MC4KILLH
remove_char_elegantly $MC4KILLI
clear_onscreen_timer $MC4_TIME
clear_onscreen_counter $MC4CARDAM
unload_special_character 1
mark_model_as_no_longer_needed 10
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 99
mark_model_as_no_longer_needed 135
mark_model_as_no_longer_needed 139
mark_model_as_no_longer_needed 156
$MC4CAR1 = -1
$MC4CAR2 = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 35---------------
// Originally: Chaperone

:MC5
gosub @MC5_36
if 
  has_deatharrest_been_executed 
goto_if_false @MC5_27
gosub @MC5_2887

:MC5_27
gosub @MC5_2944
terminate_this_script 

:MC5_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MC5'
request_model 22
request_model 23
request_model 137
load_special_character 1 'LUIGI'
load_all_models_now 

:MC5_90
wait 0
if and
  has_model_loaded 22
  has_model_loaded 23
  has_model_loaded 137
goto_if_false @MC5_90
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
load_splash_screen 'FLY'
do_fade 0 1000
wait 1000
print_big 'MC5_2' 3000 ms 2
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -1102.0 -592.125 17.0625 rotation 0.0 0.0 0.0
point_camera_at_point -1119.5 -605.0625 13.0625 switchstyle 2
set_player_coordinates $PLAYER_CHAR at -1117.188 -596.5625 10.0625
set_player_heading $PLAYER_CHAR z_angle_to 186.0
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC5_415
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC5_415
print_now 'MC5_3' time 5000 1
wait 5000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC5_415
print_now 'MC5_4' time 3000 1
wait 2000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC5_415
print_now 'MC5_5' time 6000 1
wait 6000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MC5_415
print_now 'MC5_6' time 5000 1
wait 5000

:MC5_415
clear_prints 
load_splash_screen 'MAINSC1'
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
do_fade 0 1000
wait 1000
switch_widescreen 0
set_player_coordinates $PLAYER_CHAR at -1116.125 -598.8125 10.0625
set_player_heading $PLAYER_CHAR z_angle_to 360.0
set_camera_behind_player 
restore_camera_jumpcut 
create_char $MC5KILL1 = create_actor 21 22 at -1091.813 -570.0 13.375
create_char $MC5KILL2 = create_actor 21 23 at -1141.063 -591.9375 11.0625
create_char $MC5KILL3 = create_actor 21 22 at -1127.438 -561.0625 11.0625
create_char $MC5KILL4 = create_actor 21 23 at -1091.625 -576.5625 10.875
create_char $MC5KILL5 = create_actor 21 22 at -1108.438 -578.875 11.0625
create_char $MC5KILL6 = create_actor 21 23 at -1092.25 -606.5 11.0625
create_char $MC5KILL7 = create_actor 21 22 at -1118.438 -588.5 11.0625
create_char $MC5KILL8 = create_actor 21 23 at -1111.063 -624.375 11.0625
set_char_stay_in_same_place $MC5KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC5KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC5KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC5KILL8 maintain_position_when_attacked 1
give_weapon_to_char $MC5KILL1 weapon 5 ammo 999
give_weapon_to_char $MC5KILL2 weapon 5 ammo 999
give_weapon_to_char $MC5KILL3 weapon 5 ammo 999
give_weapon_to_char $MC5KILL4 weapon 3 ammo 999
give_weapon_to_char $MC5KILL5 weapon 3 ammo 999
give_weapon_to_char $MC5KILL6 weapon 3 ammo 999
give_weapon_to_char $MC5KILL7 weapon 3 ammo 999
give_weapon_to_char $MC5KILL8 weapon 5 ammo 999
add_blip_for_char $MC5PICK1 = create_marker_above_actor $MC5KILL1
add_blip_for_char $MC5PICK2 = create_marker_above_actor $MC5KILL2
add_blip_for_char $MC5PICK3 = create_marker_above_actor $MC5KILL3
add_blip_for_char $MC5PICK4 = create_marker_above_actor $MC5KILL4
add_blip_for_char $MC5PICK5 = create_marker_above_actor $MC5KILL5
add_blip_for_char $MC5PICK6 = create_marker_above_actor $MC5KILL6
add_blip_for_char $MC5PICK7 = create_marker_above_actor $MC5KILL7
add_blip_for_char $MC5PICK8 = create_marker_above_actor $MC5KILL8
change_blip_colour $MC5PICK1 color_to 0
change_blip_colour $MC5PICK2 color_to 0
change_blip_colour $MC5PICK3 color_to 0
change_blip_colour $MC5PICK4 color_to 0
change_blip_colour $MC5PICK5 color_to 0
change_blip_colour $MC5PICK6 color_to 0
change_blip_colour $MC5PICK7 color_to 0
change_blip_colour $MC5PICK8 color_to 0
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
$MC5_TIME = 60000
display_onscreen_timer $MC5_TIME
wait 1000
set_char_obj_kill_player_on_foot $MC5KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC5KILL8 kill_player $PLAYER_CHAR
create_char $M86NPC1 = create_actor 21 22 at 1337.563 -465.375 49.6875
create_char $M86NPC2 = create_actor 21 23 at 1325.5 -452.9375 54.4375
create_char $M86NPC3 = create_actor 21 22 at 1349.438 -452.8125 50.0
create_char $M86NPC4 = create_actor 21 23 at 1333.563 -470.75 49.75
set_char_heading $M86NPC1 z_angle_to 360.0
set_char_heading $M86NPC2 z_angle_to 34.0
set_char_heading $M86NPC3 z_angle_to 5.0
set_char_heading $M86NPC4 z_angle_to 160.0
explode_char_head $M86NPC1
explode_char_head $M86NPC2
explode_char_head $M86NPC3
explode_char_head $M86NPC4
dont_remove_char $M86NPC1
dont_remove_char $M86NPC2
dont_remove_char $M86NPC3
dont_remove_char $M86NPC4

:MC5_1109
wait 10
if 
  $MC5_TIME > 0
goto_if_false @MC5_2887
if 
  is_char_dead $MC5KILL1
goto_if_false @MC5_1154
change_blip_display $MC5PICK1 display 0

:MC5_1154
if 
  is_char_dead $MC5KILL2
goto_if_false @MC5_1177
change_blip_display $MC5PICK2 display 0

:MC5_1177
if 
  is_char_dead $MC5KILL3
goto_if_false @MC5_1200
change_blip_display $MC5PICK3 display 0

:MC5_1200
if 
  is_char_dead $MC5KILL4
goto_if_false @MC5_1223
change_blip_display $MC5PICK4 display 0

:MC5_1223
if 
  is_char_dead $MC5KILL5
goto_if_false @MC5_1246
change_blip_display $MC5PICK5 display 0

:MC5_1246
wait 10
if 
  is_char_dead $MC5KILL6
goto_if_false @MC5_1273
change_blip_display $MC5PICK6 display 0

:MC5_1273
if 
  is_char_dead $MC5KILL7
goto_if_false @MC5_1296
change_blip_display $MC5PICK7 display 0

:MC5_1296
if 
  is_char_dead $MC5KILL8
goto_if_false @MC5_1319
change_blip_display $MC5PICK8 display 0

:MC5_1319
wait 10
if and
  is_char_dead $MC5KILL1
  is_char_dead $MC5KILL2
  is_char_dead $MC5KILL3
  is_char_dead $MC5KILL4
  is_char_dead $MC5KILL5
goto_if_false @MC5_1109
if and
  is_char_dead $MC5KILL6
  is_char_dead $MC5KILL7
  is_char_dead $MC5KILL8
goto_if_false @MC5_1109
change_blip_display $MC5PICK1 display 0
change_blip_display $MC5PICK2 display 0
change_blip_display $MC5PICK3 display 0
change_blip_display $MC5PICK4 display 0
change_blip_display $MC5PICK5 display 0
change_blip_display $MC5PICK6 display 0
change_blip_display $MC5PICK7 display 0
change_blip_display $MC5PICK8 display 0
remove_blip $MC5PICK1
remove_blip $MC5PICK2
remove_blip $MC5PICK3
remove_blip $MC5PICK4
remove_blip $MC5PICK5
remove_blip $MC5PICK6
remove_blip $MC5PICK7
remove_blip $MC5PICK8
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
do_fade 0 1000
wait 1000
clear_onscreen_timer $MC5_TIME
create_car $MC5CAR = create_car 137 at -862.25 -432.0625 11.0625
change_car_colour $MC5CAR color_to 78 78
create_char_inside_car $WEINI_CHAR = create_actor 21 26 in_car $MC5CAR
set_char_suffers_critical_hits $WEINI_CHAR dismemberment_possible 0
set_char_health $WEINI_CHAR health_to 500
set_char_stay_in_same_place $WEINI_CHAR maintain_position_when_attacked 1
add_armour_to_char $WEINI_CHAR armour_to 100
give_weapon_to_char $WEINI_CHAR weapon 5 ammo 999
set_char_accuracy $WEINI_CHAR weapon_accuracy_to 85
set_car_cruise_speed $MC5CAR max_speed_to 30.0
set_car_driving_style $MC5CAR traffic_behavior_to 2
set_car_mission $MC5CAR driver_behaviour_to 1
set_car_heading $MC5CAR z_angle_to 270.0
lock_car_doors $MC5CAR door_status_to 2
car_goto_coordinates $MC5CAR drive_to -673.75 -410.1875 18.5
set_car_stays_in_current_level $MC5CAR bind_to_current_island 1
set_char_stays_in_current_level $WEINI_CHAR bind_to_current_island 1
set_car_ignore_level_transitions $MC5CAR level 1
set_char_ignore_level_transitions $WEINI_CHAR ignore_level_transitions 1
set_fixed_camera_position -842.125 -451.75 27.0625 rotation 0.0 0.0 0.0
point_camera_at_char $WEINI_CHAR mode 15 switchstyle 2
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $WEINI_CHAR
switch_widescreen 0
do_fade 1 1000
wait 1000
print_now 'MC5_7' time 5000 1
wait 5000
set_player_control $PLAYER_CHAR can_move 1
set_player_coordinates $PLAYER_CHAR at -1116.125 -598.8125 10.0625
set_player_heading $PLAYER_CHAR z_angle_to 360.0
set_camera_behind_player 
restore_camera_jumpcut 
display_onscreen_timer $MC5_TIME
$MC5_TIME = 120000
$MC5CARDAM = 100
display_onscreen_counter_with_string $MC5CARDAM 1 'DAM'
add_blip_for_char $MC5WEINI_PICK = create_marker_above_actor $WEINI_CHAR
change_blip_colour $MC5WEINI_PICK color_to 0
set_car_mission $MC5CAR driver_behaviour_to 1
set_car_stays_in_current_level $MC5CAR bind_to_current_island 1
set_char_stays_in_current_level $WEINI_CHAR bind_to_current_island 1
set_car_ignore_level_transitions $MC5CAR level 1
set_char_ignore_level_transitions $WEINI_CHAR ignore_level_transitions 1

:MC5_1865
wait 0
if 
  not is_car_dead $MC5CAR
goto_if_false @MC5_2887
get_car_health $MC5CAR_HEALTH = car $MC5CAR
$MC5CAR_HEALTH /= 10
set_var_int_to_var_int $MC5CARDAM = $MC5CAR_HEALTH
if 
  $MC5_TIME > 0
goto_if_false @MC5_2887
if 
  not $MC5CARDAM >= 35
goto_if_false @MC5_1865
clear_car_last_weapon_damage $MC5CAR
clear_onscreen_timer $MC5_TIME
set_char_obj_leave_car $WEINI_CHAR leave_car $MC5CAR
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MC5_2014
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
wait 100
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR

:MC5_2014
wait 2000
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $WEINI_CHAR
turn_char_to_face_char $WEINI_CHAR look_at_actor $PLAYER_ACTOR
clear_onscreen_counter $MC5CARDAM
switch_widescreen 1
print_now 'MC5_8' time 4000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $WEINI_CHAR
wait 4000
print_now 'MC5_9' time 6000 1
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
wait 6000
print_now 'MC5_10' time 4000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
wait 4000
print_now 'MC5_11' time 5000 1
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
wait 5000
print_now 'MC5_12' time 4000 1
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
wait 4000
restore_camera_jumpcut 
switch_widescreen 0
wait 1000
$MC5NPCDAM = 100
set_player_control $PLAYER_CHAR can_move 1
display_onscreen_counter_with_string $MC5NPCDAM 1 'VINIH'
wait 1000
set_char_obj_kill_player_on_foot $WEINI_CHAR kill_player $PLAYER_CHAR

:MC5_2250
wait 0
get_char_health $MC5NPC_HEALTH = actor $WEINI_CHAR
$MC5NPC_HEALTH /= 5
set_var_int_to_var_int $MC5NPCDAM = $MC5NPC_HEALTH
if 
  not $MC5NPCDAM >= 30
goto_if_false @MC5_2250
get_char_coordinates $WEINI_CHAR position_to $WEI_X $WEI_Y $WEI_Z
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MC5_2352
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR

:MC5_2352
do_fade 0 500
wait 500
remove_blip $MC5WEINI_PICK
delete_char $WEINI_CHAR
wait 500
create_char $WEINI_CHAR = create_actor 21 26 at $WEI_X $WEI_Y $WEI_Z
turn_char_to_face_char $WEINI_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $WEINI_CHAR
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
do_fade 1 1000
wait 1000
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
print_now 'MC5_13' time 5000 1
wait 5000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MC5_14' time 4000 1
wait 4000
print_now 'MC5_15' time 5000 1
wait 5000
point_camera_at_char $WEINI_CHAR mode 11 switchstyle 2
print_now 'MC5_16' time 5000 1
wait 5000
print_now 'MC5_16A' time 5000 1
wait 5000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MC5_17' time 3000 1
wait 3000
print_now 'MC5_18' time 3000 1
wait 3000
do_fade 0 1000
wait 1000
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
clear_onscreen_counter $MC5NPCDAM
set_player_control $PLAYER_CHAR can_move 1
set_anim_group_for_char $WEINI_CHAR walk_style_to 18
set_char_obj_flee_player_on_foot_always $WEINI_CHAR avoid_player $PLAYER_CHAR
add_blip_for_char $MC5WEINI_PICK = create_marker_above_actor $WEINI_CHAR
change_blip_colour $MC5WEINI_PICK color_to 0

:MC5_2682
wait 0
  is_char_dead $WEINI_CHAR
goto_if_false @MC5_2682
remove_blip $MC5WEINI_PICK
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
wait 3000
do_fade 0 3000
wait 3000
do_fade 1 2000
wait 3000
point_camera_at_player $PLAYER_CHAR mode 12 switchstyle 2
print_now 'MC5_19' time 6000 1
wait 6000
do_fade 0 2000
wait 2000
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 2000
wait 2000
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
add_score $PLAYER_CHAR money += 100000
print_with_number_big 'M_PASS' 100000 5000 ms 1
set_threat_for_ped_type 12 add_threat 1
player_made_progress 1
$PROGRESS_100 += 1
$4536 = 1
register_mission_passed 'MC5_2'
start_new_script @THIRTY7 
return 

:MC5_2887
print_big 'M_FAIL' 6000 ms 1
clear_threat_for_ped_type 12 remove_threat 1
delete_char $M86NPC1
delete_char $M86NPC2
delete_char $M86NPC3
delete_char $M86NPC4
$4536 = 0
change_blip_display $CSK display 3
return 

:MC5_2944
$ONMISSION = 0
remove_blip $MC5WEINI_PICK
remove_blip $MC5PICK1
remove_blip $MC5PICK2
remove_blip $MC5PICK3
remove_blip $MC5PICK4
remove_blip $MC5PICK5
remove_blip $MC5PICK6
remove_blip $MC5PICK7
remove_blip $MC5PICK8
remove_char_elegantly $MC5KILL1
remove_char_elegantly $MC5KILL2
remove_char_elegantly $MC5KILL3
remove_char_elegantly $MC5KILL4
remove_char_elegantly $MC5KILL5
remove_char_elegantly $MC5KILL6
remove_char_elegantly $MC5KILL7
remove_char_elegantly $MC5KILL8
remove_char_elegantly $MC5NPC1
remove_char_elegantly $MC5NPC2
remove_char_elegantly $MC5NPC3
remove_char_elegantly $MC5NPC4
remove_char_elegantly $MC5CSK
remove_char_elegantly $WEINI_CHAR
clear_onscreen_timer $MC5_TIME
clear_onscreen_counter $MC5CARDAM
clear_onscreen_counter $MC5NPCDAM
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 137
unload_special_character 1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 36---------------
// Originally: Cutting The Grass

:M86
gosub @M86_36
if 
  has_deatharrest_been_executed 
goto_if_false @M86_27
gosub @M86_3174

:M86_27
gosub @M86_3205
terminate_this_script 

:M86_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'M86'
request_model 1
request_model 20
request_model 21
request_model 116
request_model 138
load_special_character 1 'EIGHT2'
load_special_character 2 'RAY'
load_all_models_now 

:M86_110
wait 0
if and
  has_model_loaded 21
  has_model_loaded 20
goto_if_false @M86_110
$MISSION44 = 0
switch_widescreen 1
load_splash_screen '8BALL2'
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
print_big 'M86_2' 3000 ms 2
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
create_char $8BALL_CHAR = create_actor 21 26 at 1306.75 -466.0625 53.0625
set_player_coordinates $PLAYER_CHAR at 1309.5 -465.6875 53.0625
set_char_heading $8BALL_CHAR z_angle_to 270.0
set_player_heading $PLAYER_CHAR z_angle_to 90.0
turn_char_to_face_char $8BALL_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $8BALL_CHAR
create_char $COL_CHAR = create_actor 21 27 at 1315.438 -454.125 54.4375
turn_char_to_face_char $COL_CHAR look_at_actor $PLAYER_ACTOR
set_fixed_camera_position 1336.688 -483.8125 58.4375 rotation 0.0 0.0 0.0
point_camera_at_point 1320.188 -466.375 56.4375 switchstyle 2
do_fade 1 1000
wait 5000
set_fixed_camera_position 1306.125 -462.25 54.4375 rotation 0.0 0.0 0.0
point_camera_at_point 1307.5 -466.3125 54.0625 switchstyle 2
print_help 'TALK'

:M86_373
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @M86_401
goto @M86_958

:M86_401
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @M86_373
clear_help 
load_mission_audio 'J6_B'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'M86_3' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M86_473
wait 0
if 
  TIMERA >= 4210
goto_if_false @M86_473
print_now 'M86_4' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M86_521
wait 0
if 
  TIMERA >= 9120
goto_if_false @M86_521
print_now 'M86_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M86_569
wait 0
if 
  TIMERA >= 15240
goto_if_false @M86_569
print_now 'M86_6' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M86_617
wait 0
if 
  TIMERA >= 23010
goto_if_false @M86_617
print_now 'M86_6A' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:M86_665
wait 0
if 
  TIMERA >= 29070
goto_if_false @M86_665
print_now 'M86_7' time 10000 1
set_char_wait_state $8BALL_CHAR anim 19 wait_state_time 3000

:M86_713
wait 0
if 
  TIMERA >= 37060
goto_if_false @M86_713
print_now 'M86_8' time 10000 1
point_camera_at_point 1315.438 -454.125 54.4375 switchstyle 1

:M86_766
wait 0
if 
  TIMERA >= 40060
goto_if_false @M86_766
print_now 'M86_8A' time 10000 1
turn_char_to_face_char $8BALL_CHAR look_at_actor $COL_CHAR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $COL_CHAR

:M86_822
wait 0
if 
  TIMERA >= 49200
goto_if_false @M86_822
print_now 'M86_9' time 10000 1
point_camera_at_player $PLAYER_CHAR mode 15 switchstyle 2

:M86_871
wait 0
if 
  TIMERA >= 54010
goto_if_false @M86_871
print_now 'M86_10' time 10000 1
point_camera_at_point 1315.438 -454.125 54.4375 switchstyle 2

:M86_924
wait 0
if 
  TIMERA >= 58120
goto_if_false @M86_924
clear_prints 
wait 1000
clear_mission_audio 

:M86_958
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
print_now 'M86_11' time 5000 1
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
restore_camera_jumpcut 
set_player_as_leader $8BALL_CHAR to_player $PLAYER_CHAR
give_weapon_to_char $8BALL_CHAR weapon 3 ammo 999
set_char_bleeding $8BALL_CHAR bleeding_to 1
set_char_threat_search $8BALL_CHAR search_threat 4096
add_blip_for_char $8BALLPICK = create_marker_above_actor $8BALL_CHAR
change_blip_display $8BALLPICK display 3
remove_char_elegantly $COL_CHAR
clear_prints 
load_splash_screen 'MAINSC1'
create_car $M86_CAR = create_car 138 at 1288.813 -456.5625 -100.0
set_car_heading $M86_CAR z_angle_to 325.0
set_car_proofs $M86_CAR immunities 0 0 0 1 0
create_char $M86KILL1 = create_actor 12 20 at 1301.313 -465.25 54.0625
create_char $M86KILL2 = create_actor 12 21 at 1306.375 -464.4375 49.625
create_char $M86KILL3 = create_actor 12 20 at 1320.625 -463.125 46.375
create_char $M86KILL4 = create_actor 12 21 at 1310.563 -457.875 45.25
create_char $M86KILL5 = create_actor 12 20 at 1302.438 -464.375 45.25
create_char $M86KILL6 = create_actor 12 21 at 1301.688 -451.4375 49.625
create_char $M86KILL7 = create_actor 12 20 at 1312.313 -467.9375 54.0625
create_char $M86KILL8 = create_actor 12 21 at 1333.313 -461.8125 49.75
create_char $M86KILL9 = create_actor 12 20 at 1329.563 -448.6875 54.4375
create_char $M86KILL10 = create_actor 12 21 at 1345.0 -466.0625 49.6875
give_weapon_to_char $M86KILL1 weapon 3 ammo 999
give_weapon_to_char $M86KILL2 weapon 4 ammo 999
give_weapon_to_char $M86KILL3 weapon 3 ammo 999
give_weapon_to_char $M86KILL4 weapon 4 ammo 999
give_weapon_to_char $M86KILL5 weapon 4 ammo 999
give_weapon_to_char $M86KILL6 weapon 5 ammo 999
give_weapon_to_char $M86KILL7 weapon 4 ammo 999
give_weapon_to_char $M86KILL8 weapon 4 ammo 999
give_weapon_to_char $M86KILL9 weapon 4 ammo 999
give_weapon_to_char $M86KILL10 weapon 4 ammo 999
set_char_stay_in_same_place $M86KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL10 maintain_position_when_attacked 1
create_char $M86KILL11 = create_actor 12 21 at 1315.875 -453.25 54.4375
create_char $M86KILL12 = create_actor 12 20 at 1311.813 -456.6875 49.625
create_char $M86KILL13 = create_actor 12 21 at 1307.25 -449.8125 45.25
create_char $M86KILL14 = create_actor 12 20 at 1298.125 -448.9375 38.0625
create_char $M86KILL15 = create_actor 12 21 at 1323.125 -460.9375 54.4375
create_char $M86KILL16 = create_actor 12 20 at 1317.5 -462.875 59.5
create_char $M86KILL17 = create_actor 12 21 at 1330.375 -471.9375 49.75
create_char $M86KILL18 = create_actor 12 20 at 1352.938 -454.1875 50.0625
create_char $M86KILL19 = create_actor 12 21 at 1315.313 -464.375 54.0625
give_weapon_to_char $M86KILL11 weapon 3 ammo 999
give_weapon_to_char $M86KILL12 weapon 5 ammo 999
give_weapon_to_char $M86KILL13 weapon 5 ammo 999
give_weapon_to_char $M86KILL14 weapon 5 ammo 999
give_weapon_to_char $M86KILL15 weapon 5 ammo 999
give_weapon_to_char $M86KILL16 weapon 5 ammo 999
give_weapon_to_char $M86KILL17 weapon 5 ammo 999
give_weapon_to_char $M86KILL18 weapon 5 ammo 999
give_weapon_to_char $M86KILL19 weapon 5 ammo 999
set_char_stay_in_same_place $M86KILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL12 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL14 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL15 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL16 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL17 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL18 maintain_position_when_attacked 1
set_char_stay_in_same_place $M86KILL19 maintain_position_when_attacked 1
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
$M86_TIME = 240000
display_onscreen_timer $M86_TIME
wait 1000
set_char_obj_kill_player_on_foot $M86KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL10 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL15 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL16 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL17 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL18 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $M86KILL19 kill_player $PLAYER_CHAR
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1260.75 -110.8125 14.875 color 5 display 2
add_sphere $M86SPHERE = create_sphere 1260.75 -110.8125 14.875 4.0
change_blip_scale $TAXI_PICKUP size 3
print_now 'M86_21' time 3000 1

:M86_2046
wait 10
if and
  not is_char_dead $8BALL_CHAR
  $M86_TIME > 0
goto_if_false @M86_3174
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $8BALL_CHAR radius 30.0 30.0 30.0
goto_if_false @M86_3159
if 
  is_char_in_any_car $8BALL_CHAR
goto_if_false @M86_2133
change_blip_display $8BALLPICK display 0
goto @M86_2147

:M86_2133
change_blip_display $8BALLPICK display 3
goto @M86_2147

:M86_2147
if 
  not locate_player_any_means_3d $PLAYER_CHAR 0 1306.125 -462.25 54.4375 radius 50.0 50.0 50.0
goto_if_false @M86_2046
if 
  is_player_in_car $PLAYER_CHAR in_car $M86_CAR
goto_if_false @M86_2209
goto @M86_2231

:M86_2209
alter_wanted_level $PLAYER_CHAR wanted_level_to 5

:M86_2216
print_now 'WANT' time 3000 1

:M86_2231
wait 0
if and
  not is_char_dead $8BALL_CHAR
  $M86_TIME > 0
goto_if_false @M86_3174
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $8BALL_CHAR radius 50.0 50.0 50.0
goto_if_false @M86_3159
if 
  is_char_in_any_car $8BALL_CHAR
goto_if_false @M86_2318
change_blip_display $8BALLPICK display 0
goto @M86_2332

:M86_2318
change_blip_display $8BALLPICK display 3
goto @M86_2332

:M86_2332
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @M86_2216
if and
  locate_player_any_means_3d $PLAYER_CHAR 0 1260.75 -110.8125 14.875 radius 4.0 4.0 4.0
  locate_char_any_means_3d $8BALL_CHAR 0 1260.75 -110.8125 14.875 radius 4.0 4.0 4.0
goto_if_false @M86_2231
clear_onscreen_timer $M86_TIME
switch_widescreen 1
load_splash_screen '8BALL'
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
remove_blip $8BALLPICK
remove_blip $TAXI_PICKUP
remove_sphere $M86SPHERE
clear_area 1 at 1271.875 -94.625 14.8125 range 10.0
clear_area 2 at 1296.438 -108.1875 14.875 range 5.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1283.313 -95.5625 20.8125 rotation 0.0 0.0 0.0
point_camera_at_point 1271.813 -91.8125 14.875 switchstyle 2
warp_player_from_car_to_coord $PLAYER_CHAR at 1271.875 -94.625 -100.0
warp_char_from_car_to_coord $8BALL_CHAR from_car_and_place_at 1271.813 -91.8125 -100.0
set_char_heading $8BALL_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $8BALL_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $8BALL_CHAR
do_fade 1 1000
wait 1000
print_now 'M86_15' time 5000 1
wait 5000
print_now 'M86_16' time 5000 1
wait 5000
print_now 'M86_17' time 3000 1
wait 3000
print_now 'M86_18' time 5000 1
wait 5000
clear_prints 
load_splash_screen 'MAINSC1'
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
do_fade 0 1000
wait 1000
delete_char $8BALL_CHAR
do_fade 1 1000
wait 1000
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 5

:M86_2766
wait 0
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @M86_2766
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
do_fade 0 1000
wait 1000
set_fixed_camera_position 1270.5 -98.6875 16.9375 rotation 0.0 0.0 0.0
create_car $M86COPCAR = create_car 116 at 1281.875 -95.0 14.75
set_car_heading $M86COPCAR z_angle_to 0.0
create_char_inside_car $M86_COP2 = create_actor 21 1 in_car $M86COPCAR
set_car_cruise_speed $M86COPCAR max_speed_to 0.0
switch_car_siren $M86COPCAR siren = 1
change_car_lock 1 = car $M86COPCAR
car_set_idle $M86COPCAR
create_char $8BALL_CHAR = create_actor 21 26 at 1276.688 -93.5625 14.875
create_char $M86_COP1 = create_actor 21 1 at 1274.25 -96.25 15.0
char_look_at_char_always $M86_COP1 to_look_at_actor $8BALL_CHAR
point_camera_at_char $8BALL_CHAR mode 15 switchstyle 2
wait 2000
do_fade 1 1000
set_char_obj_enter_car_as_passenger $8BALL_CHAR go_to_car $M86COPCAR
set_char_as_leader $M86_COP1 to_actor $8BALL_CHAR
print_now 'M86_19' time 5000 1
wait 5000
print_now 'M86_20' time 5000 1
wait 5000

:M86_3015
wait 0
if 
  is_char_in_car $8BALL_CHAR in_car $M86COPCAR
goto_if_false @M86_3015
do_fade 0 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
add_score $PLAYER_CHAR money += 20000
print_with_number_big 'M_PASS' 20000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
delete_char $M86NPC1
delete_char $M86NPC2
delete_char $M86NPC3
delete_char $M86NPC4
$4537 = 1
start_new_script @THIRTY8 
register_mission_passed 'M86_2'
return 

:M86_3159
print_now 'M86_22' time 3000 1

:M86_3174
print_big 'M_FAIL' 6000 ms 1
$4537 = 0
change_blip_display $8BALL display 3
return 

:M86_3205
$ONMISSION = 0
remove_blip $TAXI_PICKUP
remove_blip $8BALLPICK
remove_sphere $M86SPHERE
remove_char_elegantly $8BALL_CHAR
delete_car $M86COPCAR
remove_char_elegantly $M86KILL1
remove_char_elegantly $M86KILL2
remove_char_elegantly $M86KILL3
remove_char_elegantly $M86KILL4
remove_char_elegantly $M86KILL5
remove_char_elegantly $M86KILL6
remove_char_elegantly $M86KILL7
remove_char_elegantly $M86KILL8
remove_char_elegantly $M86KILL9
remove_char_elegantly $M86KILL10
remove_char_elegantly $8BALL_CHAR
remove_char_elegantly $COL_CHAR
clear_onscreen_timer $M86_TIME
mark_model_as_no_longer_needed 1
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
mark_model_as_no_longer_needed 22
mark_model_as_no_longer_needed 23
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 138
unload_special_character 1
unload_special_character 2
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 37---------------
// Originally: Bomb Da Base: Act I

:MC6
gosub @MC6_36
if 
  has_deatharrest_been_executed 
goto_if_false @MC6_27
gosub @MC6_3244

:MC6_27
gosub @MC6_3280
terminate_this_script 

:MC6_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MC6'
request_model 138
request_model 20
request_model 21
load_special_character 1 'RAY'
load_special_character 2 'MIGUEL'
load_special_character 3 'COL3'
load_all_models_now 

:MC6_114
wait 0
if 
  has_model_loaded 138
goto_if_false @MC6_114
switch_widescreen 1
load_splash_screen '3ROAD'
do_fade 0 1000
wait 1000
print_big 'MC6_2' 3000 ms 2
clear_area 1 at -460.0625 214.5625 67.8125 range 30.0
set_player_control $PLAYER_CHAR can_move 0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -462.4375 222.6875 70.8125 rotation 0.0 0.0 0.0
point_camera_at_point -458.375 213.5625 68.8125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at -460.0625 214.5625 67.8125
create_char $MIG_CHAR = create_actor 21 27 at -456.0625 214.5625 67.8125
set_char_heading $MIG_CHAR z_angle_to 180.0
set_player_heading $PLAYER_CHAR z_angle_to 0.0
turn_char_to_face_char $MIG_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MIG_CHAR
do_fade 1 1000
wait 1000
print_help 'TALK'

:MC6_324
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MC6_352
goto @MC6_552

:MC6_352
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MC6_324
clear_help 
load_mission_audio 'J4_F'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MC6_3' time 10000 1
set_char_wait_state $MIG_CHAR anim 19 wait_state_time 3000

:MC6_424
wait 0
if 
  TIMERA >= 9050
goto_if_false @MC6_424
print_now 'MC6_4' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MC6_472
wait 0
if 
  TIMERA >= 12240
goto_if_false @MC6_472
print_now 'MC6_5' time 10000 1
set_char_wait_state $MIG_CHAR anim 19 wait_state_time 3000

:MC6_520
wait 0
if 
  TIMERA >= 16020
goto_if_false @MC6_520
clear_prints 
wait 1000
clear_mission_audio 

:MC6_552
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
delete_char $MIG_CHAR
set_fixed_camera_position -391.25 280.5 62.625 rotation 0.0 0.0 0.0
point_camera_at_point -380.8125 300.625 65.875 switchstyle 2
create_car $MC6DOORCAR = create_car 138 at -370.3125 244.4375 61.3125
set_car_heading $MC6DOORCAR z_angle_to 116.0
do_fade 1 1000
wait 1000
print_now 'MC6_13' time 3000 1
wait 4000
do_fade 0 1000
wait 1000
create_char $MC6KILL1 = create_actor 12 20 at -377.6875 299.9375 63.875
create_char $MC6KILL2 = create_actor 12 21 at -383.4375 300.0625 63.875
create_char $MC6KILL3 = create_actor 12 20 at -380.625 308.125 72.3125
create_char $MC6KILL4 = create_actor 12 21 at -369.25 305.25 63.875
create_char $MC6KILL5 = create_actor 12 20 at -394.125 305.5 63.875
create_char $MC6KILL6 = create_actor 12 21 at -388.0625 315.5 66.3125
create_char $MC6KILL7 = create_actor 12 20 at -388.1875 301.4375 75.375
create_char $MC6KILL8 = create_actor 12 21 at -372.9375 301.1875 75.375
create_char $MC6KILL9 = create_actor 12 20 at -361.375 301.1875 71.5
create_char $MC6KILL10 = create_actor 12 21 at -393.0625 300.9375 71.5
create_char $MC6KILL11 = create_actor 12 20 at -420.3125 289.125 62.9375
create_char $MC6KILL12 = create_actor 12 21 at -348.75 296.75 62.9375
create_char $MC6KILL13 = create_actor 12 20 at -397.75 269.1875 62.9375
create_char $MC6KILL14 = create_actor 12 21 at -374.0625 280.875 62.5
create_char $MC6KILL15 = create_actor 12 20 at -357.0 246.6875 60.875
create_char $MC6KILL16 = create_actor 12 21 at -386.8125 304.1875 63.875
create_char $MC6KILL17 = create_actor 12 20 at -401.1875 304.0625 63.875
create_char $MC6KILL18 = create_actor 12 21 at -375.0625 306.375 75.3125
create_char $MC6KILL19 = create_actor 12 20 at -401.25 307.625 75.3125
create_char $MC6KILL20 = create_actor 12 21 at -359.8125 303.9375 75.3125
give_weapon_to_char $MC6KILL1 weapon 5 ammo 999
give_weapon_to_char $MC6KILL2 weapon 5 ammo 999
give_weapon_to_char $MC6KILL3 weapon 5 ammo 999
give_weapon_to_char $MC6KILL4 weapon 5 ammo 999
give_weapon_to_char $MC6KILL5 weapon 5 ammo 999
give_weapon_to_char $MC6KILL6 weapon 5 ammo 999
give_weapon_to_char $MC6KILL7 weapon 5 ammo 999
give_weapon_to_char $MC6KILL8 weapon 5 ammo 999
give_weapon_to_char $MC6KILL9 weapon 5 ammo 999
give_weapon_to_char $MC6KILL10 weapon 5 ammo 999
give_weapon_to_char $MC6KILL11 weapon 5 ammo 999
give_weapon_to_char $MC6KILL12 weapon 5 ammo 999
give_weapon_to_char $MC6KILL13 weapon 5 ammo 999
give_weapon_to_char $MC6KILL14 weapon 5 ammo 999
give_weapon_to_char $MC6KILL15 weapon 4 ammo 999
give_weapon_to_char $MC6KILL16 weapon 4 ammo 999
give_weapon_to_char $MC6KILL17 weapon 4 ammo 999
give_weapon_to_char $MC6KILL18 weapon 4 ammo 999
give_weapon_to_char $MC6KILL19 weapon 4 ammo 999
give_weapon_to_char $MC6KILL20 weapon 4 ammo 999
set_char_stay_in_same_place $MC6KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL10 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL12 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL14 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL15 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL16 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL17 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL18 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL19 maintain_position_when_attacked 1
set_char_stay_in_same_place $MC6KILL20 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MC6KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL10 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL15 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL16 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL17 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL18 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL19 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MC6KILL20 kill_player $PLAYER_CHAR
generate_random_int_in_range $MC6_LOCATE = random_int 1 4
if 
  $MC6_LOCATE == 1
goto_if_false @MC6_1599
create_char $MC6COL1 = create_actor 21 28 at -357.9375 302.0 62.875
goto @MC6_1710

:MC6_1599
if 
  $MC6_LOCATE == 2
goto_if_false @MC6_1642
create_char $MC6COL1 = create_actor 21 28 at -387.6875 316.125 62.875
goto @MC6_1710

:MC6_1642
if 
  $MC6_LOCATE == 3
goto_if_false @MC6_1685
create_char $MC6COL1 = create_actor 21 28 at -401.375 301.25 74.3125
goto @MC6_1710

:MC6_1685
create_char $MC6COL1 = create_actor 21 28 at -354.0 304.125 74.3125
goto @MC6_1710

:MC6_1710
wait 1000
set_char_stay_in_same_place $MC6COL1 maintain_position_when_attacked 1
set_char_only_damaged_by_player $MC6COL1 immune_to_nonplayer 1
set_char_wait_state $MC6COL1 anim 14 wait_state_time 90000
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 1000
wait 1000
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at -380.8125 300.625 65.875 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
print_now 'MC6_5A' time 5000 1
wait 5000
print_now 'MC6_5B' time 6000 1
wait 6000
set_player_control $PLAYER_CHAR can_move 1
print_now 'MC6_15' time 6000 1

:MC6_1846
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 -380.8125 300.625 65.875 radius 50.0 50.0 50.0
goto_if_false @MC6_1893
change_blip_display $TAXI_PICKUP display 0

:MC6_1893
get_char_health $MC6COL1_HEALTH = actor $MC6COL1
if or
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $MC6COL1 radius 3.0 3.0 3.0
  not $MC6COL1_HEALTH >= 100
goto_if_false @MC6_1846
remove_blip $TAXI_PICKUP
turn_char_to_face_char $MC6COL1 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MC6COL1
clear_char_last_weapon_damage $MC6COL1
set_char_wait_state $MC6COL1 anim 15 wait_state_time 90000
point_camera_at_char $MC6COL1 mode 11 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
print_now 'MC6_14' time 4000 1
wait 4000
do_fade 0 1000
wait 1000
create_car $MC6CAR = create_car 138 at -1267.563 93.375 68.6875
set_car_only_damaged_by_player $MC6CAR immune_to_nonplayer 1
set_car_heading $MC6CAR z_angle_to 180.0
change_car_lock 2 = car $MC6CAR
create_char_inside_car $COL_CHAR = create_actor 21 26 in_car $MC6CAR
set_char_suffers_critical_hits $COL_CHAR dismemberment_possible 0
set_char_health $COL_CHAR health_to 100
add_armour_to_char $COL_CHAR armour_to 100
give_weapon_to_char $COL_CHAR weapon 6 ammo 999
set_char_accuracy $COL_CHAR weapon_accuracy_to 75
add_blip_for_char $COLCHARPICK = create_marker_above_actor $COL_CHAR
change_blip_colour $COLCHARPICK color_to 0
set_car_cruise_speed $MC6CAR max_speed_to 20.0
set_fixed_camera_position -1274.563 73.1875 68.8125 rotation 0.0 0.0 0.0
point_camera_at_car $MC6CAR mode 15 switchstyle 2
car_goto_coordinates $MC6CAR drive_to -1267.625 6.6875 63.6875
set_car_stays_in_current_level $MC6CAR bind_to_current_island 1
set_char_stays_in_current_level $COL_CHAR bind_to_current_island 1
set_car_ignore_level_transitions $MC6CAR level 1
set_char_ignore_level_transitions $COL_CHAR ignore_level_transitions 1
wait 2000
do_fade 1 1000
wait 1000
set_car_driving_style $MC6CAR traffic_behavior_to 2
set_car_mission $MC6CAR driver_behaviour_to 2
wait 3000
restore_camera_jumpcut 
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
switch_widescreen 0
$MC6CARDAM = 100
$MC6_TIME = 180000
$MC6_BOOM = 0
display_onscreen_counter_with_string $MC6CARDAM 1 'DAM'
display_onscreen_timer $MC6_TIME
print_now 'MC6_11' time 5000 1
get_game_timer $GAME_TIME1
$MC6SAY_11 = 0

:MC6_2352
wait 0
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
get_car_health $MC6CAR_HEALTH = car $MC6CAR
$MC6CAR_HEALTH /= 10
set_var_int_to_var_int $MC6CARDAM = $MC6CAR_HEALTH
if and
  $MC6SAY_11 == 0
  $GAME_TIME2 > 3000
goto_if_false @MC6_2440
print_now 'MC6_11A' time 5000 1
$MC6SAY_11 = 1

:MC6_2440
if 
  $MC6_TIME > 0
goto_if_false @MC6_3244
if and
  not is_car_dead $MC6CAR
  not is_char_dead $COL_CHAR
goto_if_false @MC6_3158
if 
  not $MC6CARDAM >= 95
goto_if_false @MC6_2352
print_now 'MC6_12' time 3000 1

:MC6_2512
wait 10
$MC6_BOOM += 10
if 
  $MC6_BOOM == 5000
goto_if_false @MC6_2590
get_car_coordinates $MC6CAR position_to $MC6CAR_X $MC6CAR_Y $MC6CAR_Z
$MC6CAR_Z -= 1.0
create_pickup $MC6MINE = create_pickup 1324 type 10 at $MC6CAR_X $MC6CAR_Y $MC6CAR_Z
$MC6_BOOM = 0

:MC6_2590
get_car_health $MC6CAR_HEALTH = car $MC6CAR
$MC6CAR_HEALTH /= 10
set_var_int_to_var_int $MC6CARDAM = $MC6CAR_HEALTH
if 
  $MC6_TIME > 0
goto_if_false @MC6_3244
if and
  not is_car_dead $MC6CAR
  not is_char_dead $COL_CHAR
goto_if_false @MC6_3158
if 
  not $MC6CARDAM >= 35
goto_if_false @MC6_2512
clear_car_last_weapon_damage $MC6CAR
clear_onscreen_counter $MC6CARDAM
display_onscreen_counter_with_string $COLDAM 1 'COLH'
set_char_obj_kill_player_on_foot $COL_CHAR kill_player $PLAYER_CHAR
clear_onscreen_timer $MC6_TIME
$COLDAM = 100
print_now 'MC6_10' time 3000 1

:MC6_2730
wait 0
get_char_health $COL_HEALTH = actor $COL_CHAR
set_var_int_to_var_int $COLDAM = $COL_HEALTH
if 
  is_char_dead $COL_CHAR
goto_if_false @MC6_2730
clear_onscreen_counter $COLDAM
get_char_coordinates $COL_CHAR position_to $COL_X $COL_Y $COL_Z
do_fade 0 500
wait 500
remove_blip $COLCHARPICK
delete_char $COL_CHAR
create_char $COL_CHAR = create_actor 21 26 at $COL_X $COL_Y $COL_Z
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @MC6_2861
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
wait 100
set_char_obj_leave_car $PLAYER_ACTOR leave_car $PLAYCAR

:MC6_2861
turn_char_to_face_char $COL_CHAR look_at_actor $PLAYER_ACTOR
point_camera_at_char $COL_CHAR mode 11 switchstyle 2
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 1 500
wait 500
print_now 'MC6_6' time 6000 1
wait 6000
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $COL_CHAR
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MC6_7' time 5000 1
wait 5000
point_camera_at_char $COL_CHAR mode 11 switchstyle 2
print_now 'MC6_8' time 6000 1
wait 6000
print_now 'MC6_8A' time 6000 1
wait 6000
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
print_now 'MC6_9' time 4000 1
wait 4000
do_fade 0 500
wait 500
switch_widescreen 0
restore_camera_jumpcut 
do_fade 1 500
wait 500
set_player_control $PLAYER_CHAR can_move 1
set_anim_group_for_char $COL_CHAR walk_style_to 18
set_char_obj_flee_player_on_foot_always $COL_CHAR avoid_player $PLAYER_CHAR
add_blip_for_char $COLCHARPICK = create_marker_above_actor $COL_CHAR

:MC6_3096
wait 0
if 
  locate_player_any_means_char_3d $PLAYER_CHAR 0 $COL_CHAR radius 80.0 80.0 80.0
goto_if_false @MC6_3244
if 
  is_char_dead $COL_CHAR
goto_if_false @MC6_3096
remove_blip $COLCHARPICK
goto @MC6_3158

:MC6_3158
clear_wanted_level $PLAYER_CHAR
set_player_control $PLAYER_CHAR can_move 1
$4538 = 1
print_with_number_big 'M_PASS' 20000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
add_score $PLAYER_CHAR money += 20000
register_mission_passed 'MC6_2'
clear_threat_for_ped_type 12 remove_threat 1
start_new_script @THIRTY9 
return 

:MC6_3244
print_big 'M_FAIL' 6000 ms 1
$4538 = 0
change_blip_display $CSK display 3
remove_char_elegantly $COL_CHAR
return 

:MC6_3280
$ONMISSION = 0
clear_onscreen_timer $XSKDAM
remove_char_elegantly $COLKILL
clear_onscreen_counter $COLDAM
clear_onscreen_counter $MC6CARDAM
clear_onscreen_timer $MC6_TIME
remove_blip $COLCHARPICK
remove_blip $TAXI_PICKUP
remove_pickup $MC6MINE
remove_char_elegantly $MC6KILL1
remove_char_elegantly $MC6KILL2
remove_char_elegantly $MC6KILL3
remove_char_elegantly $MC6KILL4
remove_char_elegantly $MC6KILL5
remove_char_elegantly $MC6KILL6
remove_char_elegantly $MC6KILL7
remove_char_elegantly $MC6KILL8
remove_char_elegantly $MC6KILL9
remove_char_elegantly $MC6KILL10
remove_char_elegantly $MC6KILL11
remove_char_elegantly $MC6KILL12
remove_char_elegantly $MC6KILL13
remove_char_elegantly $MC6KILL14
remove_char_elegantly $MC6KILL15
remove_char_elegantly $MC6KILL16
remove_char_elegantly $MC6KILL17
remove_char_elegantly $MC6KILL18
remove_char_elegantly $MC6KILL19
remove_char_elegantly $MC6KILL20
remove_char_elegantly $MC6KILL20
remove_char_elegantly $MC6COL1
unload_special_character 1
unload_special_character 2
unload_special_character 3
mark_model_as_no_longer_needed 138
mark_model_as_no_longer_needed 149
mark_model_as_no_longer_needed 20
mark_model_as_no_longer_needed 21
$MC6CAR = -1
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 38---------------
// Originally: Bomb Da Base: Act II

:MK5
gosub @MK5_36
if 
  has_deatharrest_been_executed 
goto_if_false @MK5_27
gosub @MK5_1863

:MK5_27
gosub @MK5_1894
terminate_this_script 

:MK5_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MK5'
request_model 18
load_all_models_now 

:MK5_69
wait 0
if 
  has_model_loaded 18
goto_if_false @MK5_69
load_splash_screen '3ROAD'
do_fade 0 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 0
switch_widescreen 1
print_big 'MK5_2' 3000 ms 2
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
do_fade 1 1000
wait 1000
print_now 'MK5_3' time 6000 1
wait 6000
create_char $MK5KILL1 = create_actor 11 18 at -442.75 -21.0 3.8125
create_char $MK5KILL2 = create_actor 11 18 at -660.1875 -50.0 18.8125
create_char $MK5KILL3 = create_actor 11 18 at -652.75 -166.6875 3.8125
create_char $MK5KILL4 = create_actor 11 18 at -934.75 -296.75 33.8125
create_char $MK5KILL5 = create_actor 11 18 at -1222.125 -548.5625 11.0625
create_char $MK5KILL6 = create_actor 11 18 at -837.625 -468.75 11.0625
create_char $MK5KILL7 = create_actor 11 18 at -1017.813 173.1875 7.75
create_char $MK5KILL8 = create_actor 11 18 at -844.6875 199.625 21.625
create_char $MK5KILL9 = create_actor 11 18 at -902.9375 375.3125 38.8125
create_char $MK5KILL10 = create_actor 11 18 at -281.5625 313.4375 73.0625
give_weapon_to_char $MK5KILL1 weapon 4 ammo 999
give_weapon_to_char $MK5KILL2 weapon 4 ammo 999
give_weapon_to_char $MK5KILL3 weapon 4 ammo 999
give_weapon_to_char $MK5KILL4 weapon 4 ammo 999
give_weapon_to_char $MK5KILL5 weapon 4 ammo 999
give_weapon_to_char $MK5KILL6 weapon 4 ammo 999
give_weapon_to_char $MK5KILL7 weapon 4 ammo 999
give_weapon_to_char $MK5KILL8 weapon 4 ammo 999
give_weapon_to_char $MK5KILL9 weapon 4 ammo 999
give_weapon_to_char $MK5KILL10 weapon 4 ammo 999
add_blip_for_char $MK5PICK1 = create_marker_above_actor $MK5KILL1
add_blip_for_char $MK5PICK2 = create_marker_above_actor $MK5KILL2
add_blip_for_char $MK5PICK3 = create_marker_above_actor $MK5KILL3
add_blip_for_char $MK5PICK4 = create_marker_above_actor $MK5KILL4
add_blip_for_char $MK5PICK5 = create_marker_above_actor $MK5KILL5
add_blip_for_char $MK5PICK6 = create_marker_above_actor $MK5KILL6
add_blip_for_char $MK5PICK7 = create_marker_above_actor $MK5KILL7
add_blip_for_char $MK5PICK8 = create_marker_above_actor $MK5KILL8
add_blip_for_char $MK5PICK9 = create_marker_above_actor $MK5KILL9
add_blip_for_char $MK5PICK10 = create_marker_above_actor $MK5KILL10
change_blip_colour $MK5PICK1 color_to 0
change_blip_colour $MK5PICK2 color_to 0
change_blip_colour $MK5PICK3 color_to 0
change_blip_colour $MK5PICK4 color_to 0
change_blip_colour $MK5PICK5 color_to 0
change_blip_colour $MK5PICK6 color_to 0
change_blip_colour $MK5PICK7 color_to 0
change_blip_colour $MK5PICK8 color_to 0
change_blip_colour $MK5PICK9 color_to 0
change_blip_colour $MK5PICK10 color_to 0
set_char_threat_search $MK5KILL1 search_threat 1
set_char_threat_search $MK5KILL2 search_threat 1
set_char_threat_search $MK5KILL3 search_threat 1
set_char_threat_search $MK5KILL4 search_threat 1
set_char_threat_search $MK5KILL5 search_threat 1
set_char_threat_search $MK5KILL6 search_threat 1
set_char_threat_search $MK5KILL7 search_threat 1
set_char_threat_search $MK5KILL8 search_threat 1
set_char_threat_search $MK5KILL9 search_threat 1
set_char_threat_search $MK5KILL10 search_threat 1
set_char_heed_threats $MK5KILL1 heed_threats 1
set_char_heed_threats $MK5KILL2 heed_threats 1
set_char_heed_threats $MK5KILL3 heed_threats 1
set_char_heed_threats $MK5KILL4 heed_threats 1
set_char_heed_threats $MK5KILL5 heed_threats 1
set_char_heed_threats $MK5KILL6 heed_threats 1
set_char_heed_threats $MK5KILL7 heed_threats 1
set_char_heed_threats $MK5KILL8 heed_threats 1
set_char_heed_threats $MK5KILL9 heed_threats 1
set_char_heed_threats $MK5KILL10 heed_threats 1
char_wander_dir $MK5KILL1 wander_direction 0
char_wander_dir $MK5KILL2 wander_direction 0
char_wander_dir $MK5KILL3 wander_direction 0
char_wander_dir $MK5KILL4 wander_direction 0
char_wander_dir $MK5KILL7 wander_direction 0
char_wander_dir $MK5KILL8 wander_direction 0
char_wander_dir $MK5KILL9 wander_direction 0
char_wander_dir $MK5KILL10 wander_direction 0
$MK5_TIME = 240000
display_onscreen_timer $MK5_TIME
display_onscreen_counter_with_string $MK5KILLCOUNT 0 'THUGS2'
$MK5KILLCOUNT = 0
$MK5DEAD1 = 0
$MK5DEAD2 = 0
$MK5DEAD3 = 0
$MK5DEAD4 = 0
$MK5DEAD5 = 0
$MK5DEAD6 = 0
$MK5DEAD7 = 0
$MK5DEAD8 = 0
$MK5DEAD9 = 0
$MK5DEAD10 = 0
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
do_fade 1 1000
wait 1000
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0

:MK5_958
wait 0
if 
  $MK5_TIME > 0
goto_if_false @MK5_1863
if 
  $MK5DEAD1 == 0
goto_if_false @MK5_1035
if 
  is_char_dead $MK5KILL1
goto_if_false @MK5_1035
change_blip_display $MK5PICK1 display 0
$MK5KILLCOUNT += 1
$MK5DEAD1 = 1

:MK5_1035
if 
  $MK5DEAD2 == 0
goto_if_false @MK5_1090
if 
  is_char_dead $MK5KILL2
goto_if_false @MK5_1090
change_blip_display $MK5PICK2 display 0
$MK5KILLCOUNT += 1
$MK5DEAD2 = 1

:MK5_1090
if 
  $MK5DEAD3 == 0
goto_if_false @MK5_1145
if 
  is_char_dead $MK5KILL3
goto_if_false @MK5_1145
change_blip_display $MK5PICK3 display 0
$MK5KILLCOUNT += 1
$MK5DEAD3 = 1

:MK5_1145
if 
  $MK5DEAD4 == 0
goto_if_false @MK5_1200
if 
  is_char_dead $MK5KILL4
goto_if_false @MK5_1200
change_blip_display $MK5PICK4 display 0
$MK5KILLCOUNT += 1
$MK5DEAD4 = 1

:MK5_1200
if 
  $MK5DEAD5 == 0
goto_if_false @MK5_1255
if 
  is_char_dead $MK5KILL5
goto_if_false @MK5_1255
change_blip_display $MK5PICK5 display 0
$MK5KILLCOUNT += 1
$MK5DEAD5 = 1

:MK5_1255
if 
  $MK5DEAD6 == 0
goto_if_false @MK5_1314
wait 10
if 
  is_char_dead $MK5KILL6
goto_if_false @MK5_1314
change_blip_display $MK5PICK6 display 0
$MK5KILLCOUNT += 1
$MK5DEAD6 = 1

:MK5_1314
if 
  $MK5DEAD7 == 0
goto_if_false @MK5_1369
if 
  is_char_dead $MK5KILL7
goto_if_false @MK5_1369
change_blip_display $MK5PICK7 display 0
$MK5KILLCOUNT += 1
$MK5DEAD7 = 1

:MK5_1369
if 
  $MK5DEAD8 == 0
goto_if_false @MK5_1424
if 
  is_char_dead $MK5KILL8
goto_if_false @MK5_1424
change_blip_display $MK5PICK8 display 0
$MK5KILLCOUNT += 1
$MK5DEAD8 = 1

:MK5_1424
if 
  $MK5DEAD9 == 0
goto_if_false @MK5_1479
if 
  is_char_dead $MK5KILL9
goto_if_false @MK5_1479
change_blip_display $MK5PICK9 display 0
$MK5KILLCOUNT += 1
$MK5DEAD9 = 1

:MK5_1479
if 
  $MK5DEAD10 == 0
goto_if_false @MK5_1534
if 
  is_char_dead $MK5KILL10
goto_if_false @MK5_1534
change_blip_display $MK5PICK10 display 0
$MK5KILLCOUNT += 1
$MK5DEAD10 = 1

:MK5_1534
wait 10
if and
  is_char_dead $MK5KILL1
  is_char_dead $MK5KILL2
  is_char_dead $MK5KILL3
  is_char_dead $MK5KILL4
  is_char_dead $MK5KILL5
goto_if_false @MK5_958
if and
  is_char_dead $MK5KILL6
  is_char_dead $MK5KILL7
  is_char_dead $MK5KILL8
  is_char_dead $MK5KILL9
  is_char_dead $MK5KILL10
goto_if_false @MK5_958
change_blip_display $MK5PICK1 display 0
change_blip_display $MK5PICK2 display 0
change_blip_display $MK5PICK3 display 0
change_blip_display $MK5PICK4 display 0
change_blip_display $MK5PICK5 display 0
change_blip_display $MK5PICK6 display 0
change_blip_display $MK5PICK7 display 0
change_blip_display $MK5PICK8 display 0
change_blip_display $MK5PICK9 display 0
change_blip_display $MK5PICK10 display 0
remove_blip $MK5PICK1
remove_blip $MK5PICK2
remove_blip $MK5PICK3
remove_blip $MK5PICK4
remove_blip $MK5PICK5
remove_blip $MK5PICK6
remove_blip $MK5PICK7
remove_blip $MK5PICK8
remove_blip $MK5PICK9
remove_blip $MK5PICK10
$MK5KILLCOUNT = 10
clear_onscreen_timer $MK5_TIME
clear_onscreen_counter $MK5KILLCOUNT
print_now 'MK5_4' time 6500 1
alter_wanted_level $PLAYER_CHAR wanted_level_to 4

:MK5_1769
wait 0
if 
  not is_wanted_level_greater $PLAYER_CHAR wanted_level > 0
goto_if_false @MK5_1769
add_score $PLAYER_CHAR money += 40000
print_with_number_big 'M_PASS' 40000 5000 ms 1
player_made_progress 1
$PROGRESS_100 += 1
play_mission_passed_tune 1
$4539 = 1
register_mission_passed 'MK5_2'
start_new_script @FORTY 
return 

:MK5_1863
print_big 'M_FAIL' 6000 ms 1
$4539 = 0
change_blip_display $KEN display 3
return 

:MK5_1894
$ONMISSION = 0
remove_blip $MK5PICK1
remove_blip $MK5PICK2
remove_blip $MK5PICK3
remove_blip $MK5PICK4
remove_blip $MK5PICK5
remove_blip $MK5PICK6
remove_blip $MK5PICK7
remove_blip $MK5PICK8
remove_blip $MK5PICK9
remove_blip $MK5PICK10
remove_char_elegantly $MK5KILL1
remove_char_elegantly $MK5KILL2
remove_char_elegantly $MK5KILL3
remove_char_elegantly $MK5KILL4
remove_char_elegantly $MK5KILL5
remove_char_elegantly $MK5KILL6
remove_char_elegantly $MK5KILL7
remove_char_elegantly $MK5KILL8
remove_char_elegantly $MK5KILL9
remove_char_elegantly $MK5KILL10
clear_onscreen_timer $MK5_TIME
clear_onscreen_counter $MK5KILLCOUNT
mark_model_as_no_longer_needed 18
load_splash_screen 'MAINSC1'
mission_has_finished 
return 

//-------------Mission 39---------------
// Originally: Last Requests

:MA8
gosub @MA8_36
if 
  has_deatharrest_been_executed 
goto_if_false @MA8_27
gosub @MA8_7118

:MA8_27
gosub @MA8_7149
terminate_this_script 

:MA8_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
script_name 'MA8'
request_model 11
request_model 16
request_model 17
request_model 18
request_model 135
request_model 136
request_model 156
load_special_character 1 'ASUKA'
load_special_character 2 'TANNER'
load_all_models_now 

:MA8_120
wait 0
if and
  has_model_loaded 11
  has_model_loaded 18
  has_model_loaded 135
  has_model_loaded 136
  has_model_loaded 156
goto_if_false @MA8_120
switch_widescreen 1
load_splash_screen '3ROAD'
do_fade 0 1000
print_big 'MA8_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
wait 1000
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at -653.375 -48.0625 17.8125 range 50.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_fixed_camera_position -643.4375 -56.125 26.8125 rotation 0.0 0.0 0.0
point_camera_at_point -652.8125 -47.4375 18.8125 switchstyle 2
create_char $ASUKA_CHAR = create_actor 21 26 at -653.375 -48.0625 17.8125
set_player_coordinates $PLAYER_CHAR at -652.125 -50.1875 17.8125
turn_char_to_face_char $ASUKA_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $ASUKA_CHAR
create_car $ASUKACAR = create_car 136 at -648.625 -43.4375 18.8125
create_char $TANNER_CHAR = create_actor 21 27 at -647.1875 -43.125 18.8125
set_char_heading $TANNER_CHAR z_angle_to 133.0
turn_char_to_face_char $TANNER_CHAR look_at_actor $ASUKA_CHAR
set_car_heading $ASUKACAR z_angle_to 180.0
change_car_colour $ASUKACAR color_to 56 56
do_fade 1 1000
wait 1000
print_help 'TALK'

:MA8_420
wait 0
if 
  is_button_pressed 0 key_pressed 16
goto_if_false @MA8_448
goto @MA8_952

:MA8_448
wait 0
if 
  is_button_pressed 0 key_pressed 15
goto_if_false @MA8_420
clear_help 
load_mission_audio 'LO2_A'
wait 1000
play_mission_audio 
TIMERA = 0
print_now 'MA8_3' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA8_520
wait 0
if 
  TIMERA >= 8090
goto_if_false @MA8_520
print_now 'MA8_4' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA8_568
wait 0
if 
  TIMERA >= 14010
goto_if_false @MA8_568
print_now 'MA8_5' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA8_616
wait 0
if 
  TIMERA >= 18060
goto_if_false @MA8_616
print_now 'MA8_6' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA8_664
wait 0
if 
  TIMERA >= 21190
goto_if_false @MA8_664
print_now 'MA8_7' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA8_712
wait 0
if 
  TIMERA >= 29100
goto_if_false @MA8_712
print_now 'MA8_8' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA8_760
wait 0
if 
  TIMERA >= 32120
goto_if_false @MA8_760
print_now 'MA8_9' time 10000 1
set_char_wait_state $ASUKA_CHAR anim 19 wait_state_time 3000

:MA8_808
wait 0
if 
  TIMERA >= 42020
goto_if_false @MA8_808
print_now 'MA8_10' time 10000 1
set_char_wait_state $PLAYER_ACTOR anim 19 wait_state_time 3000

:MA8_858
wait 0
if 
  TIMERA >= 52050
goto_if_false @MA8_858
clear_prints 
clear_mission_audio 
set_char_running $ASUKA_CHAR wander_state_to 1
set_char_obj_enter_car_as_passenger $ASUKA_CHAR go_to_car $ASUKACAR
set_char_obj_enter_car_as_driver $TANNER_CHAR go_to_and_drive_car $ASUKACAR

:MA8_910
wait 0
if 
  is_char_in_car $ASUKA_CHAR in_car $ASUKACAR
goto_if_false @MA8_910
car_goto_coordinates $ASUKACAR drive_to -638.4375 -60.1875 18.6875
wait 2000

:MA8_952
clear_prints 
clear_help 
clear_small_prints 
load_splash_screen 'MAINSC1'
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
do_fade 0 1000
wait 1000
set_player_heading $PLAYER_CHAR z_angle_to 180.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_widescreen 0
delete_char $TANNER_CHAR
delete_char $ASUKA_CHAR
delete_car $ASUKACAR
unload_special_character 2
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
create_car $MA8KILLCAR1 = create_car 156 at -617.5625 -3.0 18.6875
create_car $MA8KILLCAR2 = create_car 156 at -617.75 20.0 18.6875
set_car_heading $MA8KILLCAR1 z_angle_to 180.0
set_car_heading $MA8KILLCAR2 z_angle_to 180.0
set_car_cruise_speed $MA8KILLCAR1 max_speed_to 30.0
set_car_cruise_speed $MA8KILLCAR2 max_speed_to 30.0
set_car_only_damaged_by_player $MA8KILLCAR1 immune_to_nonplayer 1
set_car_only_damaged_by_player $MA8KILLCAR2 immune_to_nonplayer 1
create_char_inside_car $MA8KILLA = create_actor 7 11 in_car $MA8KILLCAR1
create_char_inside_car $MA8KILLB = create_actor 7 11 in_car $MA8KILLCAR2
create_char_as_passenger $MA8KILLC = create_actor 21 11 in_car $MA8KILLCAR1 passenger_seat 0
create_char_as_passenger $MA8KILLD = create_actor 21 11 in_car $MA8KILLCAR2 passenger_seat 0
create_char_as_passenger $MA8KILLE = create_actor 21 11 in_car $MA8KILLCAR1 passenger_seat 1
create_char_as_passenger $MA8KILLF = create_actor 21 11 in_car $MA8KILLCAR2 passenger_seat 1
create_char_as_passenger $MA8KILLG = create_actor 21 11 in_car $MA8KILLCAR1 passenger_seat 2
create_char_as_passenger $MA8KILLH = create_actor 21 11 in_car $MA8KILLCAR2 passenger_seat 2
give_weapon_to_char $MA8KILLA weapon 5 ammo 999
give_weapon_to_char $MA8KILLB weapon 5 ammo 999
give_weapon_to_char $MA8KILLC weapon 4 ammo 999
give_weapon_to_char $MA8KILLD weapon 4 ammo 999
give_weapon_to_char $MA8KILLE weapon 3 ammo 999
give_weapon_to_char $MA8KILLF weapon 3 ammo 999
give_weapon_to_char $MA8KILLG weapon 3 ammo 999
give_weapon_to_char $MA8KILLH weapon 3 ammo 999
set_char_obj_kill_player_any_means $MA8KILLA kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLB kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLC kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLD kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLE kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLF kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLG kill_player $PLAYER_CHAR
set_char_obj_kill_player_any_means $MA8KILLH kill_player $PLAYER_CHAR
add_blip_for_char $MA8PICKA = create_marker_above_actor $MA8KILLA
add_blip_for_char $MA8PICKB = create_marker_above_actor $MA8KILLB
add_blip_for_char $MA8PICKC = create_marker_above_actor $MA8KILLC
add_blip_for_char $MA8PICKD = create_marker_above_actor $MA8KILLD
add_blip_for_char $MA8PICKE = create_marker_above_actor $MA8KILLE
add_blip_for_char $MA8PICKF = create_marker_above_actor $MA8KILLF
add_blip_for_char $MA8PICKG = create_marker_above_actor $MA8KILLG
add_blip_for_char $MA8PICKH = create_marker_above_actor $MA8KILLH
change_blip_colour $MA8PICKA color_to 0
change_blip_colour $MA8PICKB color_to 0
change_blip_colour $MA8PICKC color_to 0
change_blip_colour $MA8PICKD color_to 0
change_blip_colour $MA8PICKE color_to 0
change_blip_colour $MA8PICKF color_to 0
change_blip_colour $MA8PICKG color_to 0
change_blip_colour $MA8PICKH color_to 0
wait 4000
print_now 'MA8_11' time 6000 1

:MA8_1523
wait 0
if 
  is_char_dead $MA8KILLA
goto_if_false @MA8_1550
change_blip_display $MA8PICKA display 0

:MA8_1550
if 
  is_char_dead $MA8KILLB
goto_if_false @MA8_1573
change_blip_display $MA8PICKB display 0

:MA8_1573
if 
  is_char_dead $MA8KILLC
goto_if_false @MA8_1596
change_blip_display $MA8PICKC display 0

:MA8_1596
if 
  is_char_dead $MA8KILLD
goto_if_false @MA8_1619
change_blip_display $MA8PICKD display 0

:MA8_1619
if 
  is_char_dead $MA8KILLE
goto_if_false @MA8_1642
change_blip_display $MA8PICKE display 0

:MA8_1642
wait 10
if 
  is_char_dead $MA8KILLF
goto_if_false @MA8_1669
change_blip_display $MA8PICKF display 0

:MA8_1669
if 
  is_char_dead $MA8KILLG
goto_if_false @MA8_1692
change_blip_display $MA8PICKG display 0

:MA8_1692
if 
  is_char_dead $MA8KILLH
goto_if_false @MA8_1715
change_blip_display $MA8PICKH display 0

:MA8_1715
wait 0
if and
  is_char_dead $MA8KILLA
  is_char_dead $MA8KILLB
  is_char_dead $MA8KILLC
  is_char_dead $MA8KILLD
goto_if_false @MA8_1523
if and
  is_char_dead $MA8KILLE
  is_char_dead $MA8KILLF
  is_char_dead $MA8KILLG
  is_char_dead $MA8KILLH
goto_if_false @MA8_1523
change_blip_display $MA8PICKA display 0
change_blip_display $MA8PICKB display 0
change_blip_display $MA8PICKC display 0
change_blip_display $MA8PICKD display 0
change_blip_display $MA8PICKE display 0
change_blip_display $MA8PICKF display 0
change_blip_display $MA8PICKG display 0
change_blip_display $MA8PICKH display 0
remove_blip $MA8PICKA
remove_blip $MA8PICKB
remove_blip $MA8PICKC
remove_blip $MA8PICKD
remove_blip $MA8PICKE
remove_blip $MA8PICKF
remove_blip $MA8PICKG
remove_blip $MA8PICKH
add_blip_for_coord_old $TAXI_PICKUP1 = create_marker_at -267.75 415.25 85.3125 color 5 display 2
add_sphere $MA8SPHERE1 = create_sphere -267.75 415.25 84.3125 2.5
change_blip_scale $TAXI_PICKUP1 size 3
print_now 'MA8_12' time 6000 1
load_special_character 2 'EIGHT'

:MA8_1946
wait 0
if 
  locate_player_on_foot_3d $PLAYER_CHAR 0 -267.75 415.25 85.3125 radius 2.0 2.0 2.0
goto_if_false @MA8_1946
switch_widescreen 1
do_fade 0 500
set_player_control $PLAYER_CHAR can_move 0
wait 500
remove_sphere $MA8SPHERE1
remove_blip $TAXI_PICKUP1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
set_fixed_camera_position -291.0 400.6875 102.6875 rotation 0.0 0.0 0.0
point_camera_at_point -267.75 415.25 85.3125 switchstyle 2
create_car $MA8CAR2 = create_car 136 at -272.375 383.625 78.6875
create_car $MA8CAR3 = create_car 136 at -272.4375 373.9375 78.6875
set_car_heading $MA8CAR2 z_angle_to 0.0
set_car_heading $MA8CAR3 z_angle_to 0.0
set_car_cruise_speed $MA8CAR2 max_speed_to 30.0
set_car_cruise_speed $MA8CAR3 max_speed_to 30.0
create_char_inside_car $MA8JAPAN1 = create_actor 10 16 in_car $MA8CAR2
create_char_inside_car $MA8JAPAN2 = create_actor 10 17 in_car $MA8CAR3
create_char_as_passenger $MA8JAPAN3 = create_actor 10 16 in_car $MA8CAR2 passenger_seat 0
create_char_as_passenger $MA8JAPAN4 = create_actor 10 17 in_car $MA8CAR3 passenger_seat 0
give_weapon_to_char $MA8JAPAN1 weapon 5 ammo 999
give_weapon_to_char $MA8JAPAN2 weapon 5 ammo 999
give_weapon_to_char $MA8JAPAN3 weapon 5 ammo 999
give_weapon_to_char $MA8JAPAN4 weapon 5 ammo 999
car_goto_coordinates $MA8CAR2 drive_to -272.375 416.0 85.3125
car_goto_coordinates $MA8CAR3 drive_to -272.5625 408.4375 83.8125
clear_area 1 at -272.5625 408.4375 83.8125 range 50.0
do_fade 1 1000
wait 5000
set_char_obj_leave_car $MA8JAPAN3 leave_car $MA8CAR2
wait 1800
turn_char_to_face_char $MA8JAPAN3 look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $MA8JAPAN1
print_now 'MA8_13' time 6000 1
wait 6000
print_now 'MA8_14' time 5000 1
wait 5000
do_fade 0 500
wait 500
do_fade 1 500
wait 500
add_blip_for_coord_old $TAXI_PICKUP3 = create_marker_at -231.1875 929.875 37.9375 color 5 display 2
change_blip_scale $TAXI_PICKUP3 size 3
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_player_as_leader $MA8JAPAN1 to_player $PLAYER_CHAR
set_player_as_leader $MA8JAPAN2 to_player $PLAYER_CHAR
set_player_as_leader $MA8JAPAN3 to_player $PLAYER_CHAR
set_player_as_leader $MA8JAPAN4 to_player $PLAYER_CHAR
set_char_accuracy $MA8JAPAN1 weapon_accuracy_to 80
set_char_accuracy $MA8JAPAN2 weapon_accuracy_to 80
set_char_accuracy $MA8JAPAN3 weapon_accuracy_to 80
set_char_accuracy $MA8JAPAN4 weapon_accuracy_to 80
char_look_at_player_always $MA8JAPAN1 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MA8JAPAN2 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MA8JAPAN3 to_look_at_player $PLAYER_CHAR
char_look_at_player_always $MA8JAPAN4 to_look_at_player $PLAYER_CHAR
set_char_threat_search $MA8JAPAN1 search_threat 16
set_char_threat_search $MA8JAPAN1 search_threat 32
set_char_threat_search $MA8JAPAN1 search_threat 64
set_char_threat_search $MA8JAPAN2 search_threat 16
set_char_threat_search $MA8JAPAN2 search_threat 32
set_char_threat_search $MA8JAPAN2 search_threat 64
set_char_threat_search $MA8JAPAN3 search_threat 16
set_char_threat_search $MA8JAPAN3 search_threat 32
set_char_threat_search $MA8JAPAN3 search_threat 64
set_char_threat_search $MA8JAPAN4 search_threat 16
set_char_threat_search $MA8JAPAN4 search_threat 32
set_char_threat_search $MA8JAPAN4 search_threat 64
set_char_threat_search $MA8JAPAN1 search_threat 2048
set_char_threat_search $MA8JAPAN2 search_threat 2048
set_char_threat_search $MA8JAPAN3 search_threat 2048
set_char_threat_search $MA8JAPAN4 search_threat 2048
set_char_running $MA8JAPAN1 wander_state_to 1
set_char_running $MA8JAPAN2 wander_state_to 1
set_char_running $MA8JAPAN3 wander_state_to 1
set_char_running $MA8JAPAN4 wander_state_to 1
create_car $MA8CAR4 = create_car 135 at -286.25 519.375 85.0625
create_car $MA8CAR5 = create_car 135 at -275.0 521.8125 84.75
create_car $MA8CAR6 = create_car 135 at -279.0 635.625 62.8125
create_car $MA8CAR7 = create_car 135 at -269.125 697.0625 53.0625
create_car $MA8CAR8 = create_car 135 at -236.75 830.375 37.875
set_car_heading $MA8CAR4 z_angle_to 90.0
set_car_heading $MA8CAR5 z_angle_to 90.0
set_car_heading $MA8CAR6 z_angle_to 90.0
set_car_heading $MA8CAR7 z_angle_to 78.0
set_car_heading $MA8CAR8 z_angle_to 78.0
create_char $MA8KILL1 = create_actor 11 18 at -272.25 527.0 84.0
create_char $MA8KILL2 = create_actor 11 18 at -281.125 526.375 84.125
create_char $MA8KILL3 = create_actor 11 18 at -287.375 498.25 87.875
create_char $MA8KILL4 = create_actor 11 18 at -275.125 504.6875 87.0625
create_char $MA8KILL5 = create_actor 11 18 at -274.25 618.3125 65.3125
create_char $MA8KILL6 = create_actor 11 18 at -282.25 639.5 62.3125
create_char $MA8KILL7 = create_actor 11 18 at -260.625 710.5625 50.625
create_char $MA8KILL8 = create_actor 11 18 at -254.5625 779.375 40.8125
create_char $MA8KILL9 = create_actor 11 18 at -233.5625 839.6875 37.9375
create_char $MA8KILL10 = create_actor 11 18 at -237.375 887.25 37.9375
add_armour_to_char $MA8KILL1 armour_to 100
add_armour_to_char $MA8KILL2 armour_to 100
add_armour_to_char $MA8KILL3 armour_to 100
add_armour_to_char $MA8KILL4 armour_to 100
add_armour_to_char $MA8KILL5 armour_to 100
add_armour_to_char $MA8KILL6 armour_to 100
add_armour_to_char $MA8KILL7 armour_to 100
add_armour_to_char $MA8KILL8 armour_to 100
add_armour_to_char $MA8KILL9 armour_to 100
add_armour_to_char $MA8KILL10 armour_to 100
give_weapon_to_char $MA8KILL1 weapon 5 ammo 999
give_weapon_to_char $MA8KILL2 weapon 5 ammo 999
give_weapon_to_char $MA8KILL3 weapon 5 ammo 999
give_weapon_to_char $MA8KILL4 weapon 5 ammo 999
give_weapon_to_char $MA8KILL5 weapon 5 ammo 999
give_weapon_to_char $MA8KILL6 weapon 5 ammo 999
give_weapon_to_char $MA8KILL7 weapon 5 ammo 999
give_weapon_to_char $MA8KILL8 weapon 5 ammo 999
give_weapon_to_char $MA8KILL9 weapon 5 ammo 999
give_weapon_to_char $MA8KILL10 weapon 5 ammo 999
set_char_accuracy $MA8KILL1 weapon_accuracy_to 75
set_char_accuracy $MA8KILL2 weapon_accuracy_to 75
set_char_accuracy $MA8KILL3 weapon_accuracy_to 75
set_char_accuracy $MA8KILL4 weapon_accuracy_to 75
set_char_accuracy $MA8KILL5 weapon_accuracy_to 75
set_char_accuracy $MA8KILL6 weapon_accuracy_to 75
set_char_accuracy $MA8KILL7 weapon_accuracy_to 75
set_char_accuracy $MA8KILL8 weapon_accuracy_to 75
set_char_accuracy $MA8KILL9 weapon_accuracy_to 75
set_char_accuracy $MA8KILL10 weapon_accuracy_to 75
set_char_stay_in_same_place $MA8KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL10 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MA8KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL10 kill_player $PLAYER_CHAR
wait 100
$MA8_TIME = 0

:MA8_3373
$MA8_TIME += 100
wait 100
if 
  not $MA8_TIME >= 20000
goto_if_false @MA8_3446
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 -280.125 447.3125 88.5 radius 15.0 15.0 15.0
goto_if_false @MA8_3373
goto @MA8_3498

:MA8_3446
leave_group $MA8JAPAN1
leave_group $MA8JAPAN2
leave_group $MA8JAPAN3
leave_group $MA8JAPAN4
set_char_obj_flee_player_on_foot_always $MA8JAPAN1 avoid_player $PLAYER_CHAR
set_char_obj_flee_player_on_foot_always $MA8JAPAN2 avoid_player $PLAYER_CHAR
set_char_obj_flee_player_on_foot_always $MA8JAPAN3 avoid_player $PLAYER_CHAR
set_char_obj_flee_player_on_foot_always $MA8JAPAN4 avoid_player $PLAYER_CHAR

:MA8_3498
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 -231.1875 929.875 37.9375 radius 20.0 20.0 20.0
goto_if_false @MA8_3498
remove_blip $TAXI_PICKUP3
set_player_control $PLAYER_CHAR can_move 0
remove_char_elegantly $MA8KILL1
remove_char_elegantly $MA8KILL2
remove_char_elegantly $MA8KILL3
remove_char_elegantly $MA8KILL4
remove_char_elegantly $MA8KILL5
remove_char_elegantly $MA8KILL6
remove_char_elegantly $MA8KILL7
remove_char_elegantly $MA8KILL8
remove_char_elegantly $MA8KILL9
remove_char_elegantly $MA8KILL10
mark_model_as_no_longer_needed 135
set_fixed_camera_position -468.75 816.0 129.9375 rotation 0.0 0.0 0.0
point_camera_at_point -499.25 687.5625 131.9375 switchstyle 2
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
switch_widescreen 1
force_weather 2
print_now 'MA8_26' time 3000 1
wait 3000
create_char $MA8KILL1 = create_actor 11 18 at -438.5625 854.4375 38.1875
create_char $MA8KILL2 = create_actor 11 18 at -441.9375 818.6875 42.3125
create_char $MA8KILL3 = create_actor 11 18 at -538.0 785.625 65.5
create_char $MA8KILL4 = create_actor 11 18 at -485.875 788.4375 48.4375
create_char $MA8KILL5 = create_actor 11 18 at -468.5 756.375 89.0
create_char $MA8KILL6 = create_actor 11 18 at -498.125 721.8125 98.5625
create_char $MA8KILL7 = create_actor 11 18 at -537.5 724.3125 113.1875
create_char $MA8KILL8 = create_actor 11 18 at -506.0 689.3125 124.125
create_char $MA8KILL9 = create_actor 11 18 at -453.5625 693.5625 136.5625
create_char $MA8KILL10 = create_actor 11 18 at -538.0 658.75 160.25
create_char $MA8KILL11 = create_actor 11 18 at -509.6875 642.5 166.75
create_char $MA8KILL12 = create_actor 11 18 at -537.3125 624.9375 160.25
create_char $MA8KILL13 = create_actor 11 18 at -467.9375 593.0625 183.75
create_char $MA8KILL14 = create_actor 11 18 at -540.5625 593.5625 207.75
create_char $MA8KILL15 = create_actor 11 18 at -551.5625 547.5 220.75
create_char $MA8KILL16 = create_actor 11 18 at -545.1875 540.375 233.3125
create_char $MA8KILL17 = create_actor 11 18 at -532.0 571.0 209.3125
create_char $MA8KILL18 = create_actor 11 18 at -528.625 540.0 214.3125
create_char $MA8KILL19 = create_actor 11 18 at -539.4375 539.9375 214.3125
create_char $MA8KILL20 = create_actor 11 18 at -547.4375 539.5625 216.9375
create_char $MA8KILL21 = create_actor 11 18 at -539.1875 534.5625 218.875
create_char $MA8KILL22 = create_actor 11 18 at -541.5 541.75 224.5625
create_char $MA8KILL23 = create_actor 11 18 at -577.8125 537.8125 211.5
create_char $MA8KILL24 = create_actor 11 18 at -573.6875 568.1875 213.0625
create_char $MA8KILL25 = create_actor 11 18 at -514.375 525.375 210.5625
add_armour_to_char $MA8KILL1 armour_to 100
add_armour_to_char $MA8KILL2 armour_to 100
add_armour_to_char $MA8KILL3 armour_to 100
add_armour_to_char $MA8KILL4 armour_to 100
add_armour_to_char $MA8KILL5 armour_to 100
add_armour_to_char $MA8KILL6 armour_to 100
add_armour_to_char $MA8KILL7 armour_to 100
add_armour_to_char $MA8KILL8 armour_to 100
add_armour_to_char $MA8KILL9 armour_to 100
add_armour_to_char $MA8KILL10 armour_to 100
add_armour_to_char $MA8KILL11 armour_to 100
add_armour_to_char $MA8KILL12 armour_to 100
add_armour_to_char $MA8KILL13 armour_to 100
add_armour_to_char $MA8KILL14 armour_to 100
add_armour_to_char $MA8KILL15 armour_to 100
add_armour_to_char $MA8KILL16 armour_to 100
add_armour_to_char $MA8KILL17 armour_to 100
add_armour_to_char $MA8KILL18 armour_to 100
add_armour_to_char $MA8KILL19 armour_to 100
add_armour_to_char $MA8KILL20 armour_to 100
add_armour_to_char $MA8KILL21 armour_to 100
add_armour_to_char $MA8KILL22 armour_to 100
add_armour_to_char $MA8KILL23 armour_to 100
add_armour_to_char $MA8KILL24 armour_to 100
add_armour_to_char $MA8KILL25 armour_to 100
give_weapon_to_char $MA8KILL1 weapon 5 ammo 999
give_weapon_to_char $MA8KILL2 weapon 5 ammo 999
give_weapon_to_char $MA8KILL3 weapon 5 ammo 999
give_weapon_to_char $MA8KILL4 weapon 5 ammo 999
give_weapon_to_char $MA8KILL5 weapon 5 ammo 999
give_weapon_to_char $MA8KILL6 weapon 5 ammo 999
give_weapon_to_char $MA8KILL7 weapon 5 ammo 999
give_weapon_to_char $MA8KILL8 weapon 5 ammo 999
give_weapon_to_char $MA8KILL9 weapon 5 ammo 999
give_weapon_to_char $MA8KILL10 weapon 5 ammo 999
give_weapon_to_char $MA8KILL11 weapon 5 ammo 999
give_weapon_to_char $MA8KILL12 weapon 5 ammo 999
give_weapon_to_char $MA8KILL13 weapon 5 ammo 999
give_weapon_to_char $MA8KILL14 weapon 5 ammo 999
give_weapon_to_char $MA8KILL15 weapon 5 ammo 999
give_weapon_to_char $MA8KILL16 weapon 6 ammo 999
give_weapon_to_char $MA8KILL17 weapon 5 ammo 999
give_weapon_to_char $MA8KILL18 weapon 5 ammo 999
give_weapon_to_char $MA8KILL19 weapon 5 ammo 999
give_weapon_to_char $MA8KILL20 weapon 5 ammo 999
give_weapon_to_char $MA8KILL21 weapon 5 ammo 999
give_weapon_to_char $MA8KILL22 weapon 5 ammo 999
give_weapon_to_char $MA8KILL23 weapon 5 ammo 999
give_weapon_to_char $MA8KILL24 weapon 5 ammo 999
give_weapon_to_char $MA8KILL25 weapon 5 ammo 999
set_char_accuracy $MA8KILL1 weapon_accuracy_to 75
set_char_accuracy $MA8KILL2 weapon_accuracy_to 75
set_char_accuracy $MA8KILL3 weapon_accuracy_to 75
set_char_accuracy $MA8KILL4 weapon_accuracy_to 75
set_char_accuracy $MA8KILL5 weapon_accuracy_to 75
set_char_accuracy $MA8KILL6 weapon_accuracy_to 75
set_char_accuracy $MA8KILL7 weapon_accuracy_to 75
set_char_accuracy $MA8KILL8 weapon_accuracy_to 75
set_char_accuracy $MA8KILL9 weapon_accuracy_to 75
set_char_accuracy $MA8KILL10 weapon_accuracy_to 75
set_char_accuracy $MA8KILL11 weapon_accuracy_to 75
set_char_accuracy $MA8KILL12 weapon_accuracy_to 75
set_char_accuracy $MA8KILL13 weapon_accuracy_to 75
set_char_accuracy $MA8KILL14 weapon_accuracy_to 75
set_char_accuracy $MA8KILL15 weapon_accuracy_to 75
set_char_accuracy $MA8KILL16 weapon_accuracy_to 75
set_char_accuracy $MA8KILL17 weapon_accuracy_to 75
set_char_accuracy $MA8KILL18 weapon_accuracy_to 75
set_char_accuracy $MA8KILL19 weapon_accuracy_to 75
set_char_accuracy $MA8KILL20 weapon_accuracy_to 75
set_char_accuracy $MA8KILL21 weapon_accuracy_to 75
set_char_accuracy $MA8KILL22 weapon_accuracy_to 75
set_char_accuracy $MA8KILL23 weapon_accuracy_to 75
set_char_accuracy $MA8KILL24 weapon_accuracy_to 75
set_char_accuracy $MA8KILL25 weapon_accuracy_to 75
set_char_stay_in_same_place $MA8KILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL10 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL12 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL14 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL15 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL16 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL17 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL18 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL19 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL20 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL21 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL22 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL23 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL24 maintain_position_when_attacked 1
set_char_stay_in_same_place $MA8KILL25 maintain_position_when_attacked 1
set_char_obj_kill_player_on_foot $MA8KILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL10 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL15 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL16 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL17 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL18 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL19 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL20 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL21 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL22 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL23 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL24 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILL25 kill_player $PLAYER_CHAR
create_char $KEN_CHAR = create_actor 11 27 at -500.0 574.1875 209.3125
set_char_obj_kill_player_on_foot $KEN_CHAR kill_player $PLAYER_CHAR
set_char_suffers_critical_hits $KEN_CHAR dismemberment_possible 0
set_char_health $KEN_CHAR health_to 1000
set_char_stay_in_same_place $KEN_CHAR maintain_position_when_attacked 1
give_weapon_to_char $KEN_CHAR weapon 4 ammo 999
set_char_accuracy $KEN_CHAR weapon_accuracy_to 80
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
add_blip_for_char $KENPICK = create_marker_above_actor $KEN_CHAR
change_blip_colour $KENPICK color_to 0
remove_blip $TAXI_PICKUP3

:MA8_5203
wait 0
if 
  locate_player_any_means_3d $PLAYER_CHAR 0 -544.3125 629.5625 160.25 radius 40.0 40.0 40.0
goto_if_false @MA8_5203
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
turn_char_to_face_char $KEN_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $KEN_CHAR
print_now 'MA8_15' time 5000 1
point_camera_at_char $KEN_CHAR mode 11 switchstyle 2
wait 5000
print_now 'MA8_16' time 6000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
wait 6000
print_now 'MA8_17' time 5000 1
point_camera_at_char $KEN_CHAR mode 11 switchstyle 2
wait 5000
$MA8KENDAM = 100
restore_camera_jumpcut 
switch_widescreen 0
set_player_control $PLAYER_CHAR can_move 1
set_char_coordinates $KEN_CHAR at -531.875 541.75 220.6875
set_char_stay_in_same_place $KEN_CHAR maintain_position_when_attacked 1

:MA8_5407
wait 0
if 
  is_player_in_area_3d $PLAYER_CHAR 0 -583.125 498.0625 208.8125 -460.25 584.875 244.8125
goto_if_false @MA8_5407
display_onscreen_counter_with_string $MA8KENDAM 1 'KINH'
create_char $MA8KILLN = create_actor 11 18 at -583.75 560.8125 210.1875
create_char $MA8KILLM = create_actor 11 18 at -536.0 528.4375 210.875
set_char_obj_kill_player_on_foot $MA8KILLN kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MA8KILLM kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLN weapon 3 ammo 999
give_weapon_to_char $MA8KILLM weapon 3 ammo 999
$MA8CREATE1 = 0
$MA8CREATE2 = 0

:MA8_5548
wait 100
$MA8CREATE1 += 1
$MA8CREATE2 += 1
if 
  is_char_dead $MA8KILLN
goto_if_false @MA8_5644
if 
  $MA8CREATE1 > 200
goto_if_false @MA8_5644
create_char $MA8KILLN = create_actor 11 18 at -510.5625 536.6875 209.6875
set_char_obj_kill_player_on_foot $MA8KILLN kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLN weapon 3 ammo 999
$MA8CREATE1 = 0

:MA8_5644
if 
  is_char_dead $MA8KILLM
goto_if_false @MA8_5722
if 
  $MA8CREATE2 > 200
goto_if_false @MA8_5722
create_char $MA8KILLM = create_actor 11 18 at -576.25 546.75 210.375
set_char_obj_kill_player_on_foot $MA8KILLM kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLM weapon 3 ammo 999
$MA8CREATE2 = 0

:MA8_5722
get_char_health $MA8KEN_HEALTH = actor $KEN_CHAR
$MA8KEN_HEALTH /= 10
set_var_int_to_var_int $MA8KENDAM = $MA8KEN_HEALTH
if 
  not $MA8KENDAM >= 80
goto_if_false @MA8_5548
give_weapon_to_char $KEN_CHAR weapon 5 ammo 999
set_char_stay_in_same_place $KEN_CHAR maintain_position_when_attacked 1
print_now 'MA8_18' time 3000 1
wait 2000
print_now 'MA8_19' time 4000 1

:MA8_5815
wait 100
$MA8CREATE1 += 1
$MA8CREATE2 += 1
if 
  is_char_dead $MA8KILLN
goto_if_false @MA8_5911
if 
  $MA8CREATE1 > 200
goto_if_false @MA8_5911
create_char $MA8KILLN = create_actor 11 18 at -510.5625 536.6875 209.6875
set_char_obj_kill_player_on_foot $MA8KILLN kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLN weapon 3 ammo 999
$MA8CREATE1 = 0

:MA8_5911
if 
  is_char_dead $MA8KILLM
goto_if_false @MA8_5989
if 
  $MA8CREATE2 > 200
goto_if_false @MA8_5989
create_char $MA8KILLM = create_actor 11 18 at -576.25 546.75 210.375
set_char_obj_kill_player_on_foot $MA8KILLM kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLM weapon 3 ammo 999
$MA8CREATE2 = 0

:MA8_5989
get_char_health $MA8KEN_HEALTH = actor $KEN_CHAR
$MA8KEN_HEALTH /= 10
set_var_int_to_var_int $MA8KENDAM = $MA8KEN_HEALTH
if 
  not $MA8KENDAM >= 60
goto_if_false @MA8_5815
give_weapon_to_char $KEN_CHAR weapon 6 ammo 999
set_char_stay_in_same_place $KEN_CHAR maintain_position_when_attacked 1
print_now 'MA8_20' time 3000 1
wait 2000
print_now 'MA8_21' time 3000 1

:MA8_6082
wait 100
$MA8CREATE1 += 1
$MA8CREATE2 += 1
if 
  is_char_dead $MA8KILLN
goto_if_false @MA8_6178
if 
  $MA8CREATE1 > 200
goto_if_false @MA8_6178
create_char $MA8KILLN = create_actor 11 18 at -510.5625 536.6875 209.6875
set_char_obj_kill_player_on_foot $MA8KILLN kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLN weapon 3 ammo 999
$MA8CREATE1 = 0

:MA8_6178
if 
  is_char_dead $MA8KILLM
goto_if_false @MA8_6256
if 
  $MA8CREATE2 > 200
goto_if_false @MA8_6256
create_char $MA8KILLM = create_actor 11 18 at -576.25 546.75 210.375
set_char_obj_kill_player_on_foot $MA8KILLM kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILLM weapon 3 ammo 999
$MA8CREATE2 = 0

:MA8_6256
get_char_health $MA8KEN_HEALTH = actor $KEN_CHAR
$MA8KEN_HEALTH /= 10
set_var_int_to_var_int $MA8KENDAM = $MA8KEN_HEALTH
if 
  not $MA8KENDAM >= 40
goto_if_false @MA8_6082
give_weapon_to_char $KEN_CHAR weapon 6 ammo 999
set_char_stay_in_same_place $KEN_CHAR maintain_position_when_attacked 1
print_now 'MA8_22' time 2000 1
wait 2000
print_now 'MA8_23' time 3000 1
$ROCKET = 0

:MA8_6356
wait 100
$ROCKET += 100
if 
  not $ROCKET >= 5000
goto_if_false @MA8_6400
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_X $PLAYER_Y $PLAYER_Z

:MA8_6400
if 
  $ROCKET > 8000
goto_if_false @MA8_6426
$ROCKET = 0

:MA8_6426
wait 100
$MA8CREATE1 += 1
$MA8CREATE2 += 1
if 
  is_char_dead $MA8KILL11
goto_if_false @MA8_6522
if 
  $MA8CREATE1 == 200
goto_if_false @MA8_6522
create_char $MA8KILL11 = create_actor 11 18 at -510.5625 536.6875 209.6875
set_char_obj_kill_player_on_foot $MA8KILL11 kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILL11 weapon 3 ammo 999
$MA8CREATE1 = 0

:MA8_6522
if 
  is_char_dead $MA8KILL12
goto_if_false @MA8_6600
if 
  $MA8CREATE2 == 200
goto_if_false @MA8_6600
create_char $MA8KILL12 = create_actor 11 18 at -576.25 546.75 210.375
set_char_obj_kill_player_on_foot $MA8KILL12 kill_player $PLAYER_CHAR
give_weapon_to_char $MA8KILL12 weapon 3 ammo 999
$MA8CREATE2 = 0

:MA8_6600
get_char_health $MA8KEN_HEALTH = actor $KEN_CHAR
$MA8KEN_HEALTH /= 10
set_var_int_to_var_int $MA8KENDAM = $MA8KEN_HEALTH
if or
  not $MA8KENDAM >= 10
  is_char_dead $KEN_CHAR
goto_if_false @MA8_6356
switch_widescreen 1
do_fade 0 500
set_player_control $PLAYER_CHAR can_move 0
wait 500
get_char_coordinates $KEN_CHAR position_to $KEN_X $KEN_Y $KEN_Z
wait 400
delete_char $KEN_CHAR
wait 100
create_char $KEN_CHAR = create_actor 21 27 at $KEN_X $KEN_Y $KEN_Z
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
turn_char_to_face_char $KEN_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $KEN_CHAR
clear_onscreen_counter $MA8KENDAM
do_fade 1 1000
wait 1000
print_now 'MA8_24' time 5000 1
point_camera_at_char $KEN_CHAR mode 11 switchstyle 2
wait 5000
print_now 'MA8_25' time 6000 1
point_camera_at_player $PLAYER_CHAR mode 11 switchstyle 2
wait 6000
do_fade 0 500
wait 1000
delete_char $KEN_CHAR
do_fade 1 500
wait 500
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
set_player_control $PLAYER_CHAR can_move 1
switch_widescreen 0
print_big 'M_PASS1' 6000 ms 1
play_mission_passed_tune 1
set_threat_for_ped_type 11 add_threat 1
set_gang_weapons 4 primary_weapon_to 2 secondary_weapon_to 1
$4540 = 1
$MISSION44 = 1
set_zone_ped_info 'SWANKS' 1 20 0 0 0 0 0 400 0 30
set_zone_ped_info 'SWANKS' 0 10 0 0 0 0 0 300 0 20
set_zone_car_info 'SWANKS' 1 15 0 0 0 0 0 70 0 30 0 400 400 0 20 0
set_zone_car_info 'SWANKS' 0 13 0 0 0 0 0 90 0 20 0 400 400 0 20 0
wait 3000
start_new_script @FORTY1 
if 
  $MA8_PASS == 0
goto_if_false @MA8_7116
register_mission_passed 'MA8_2'
player_made_progress 1
$PROGRESS_100 += 1
$MA8_PASS = 1

:MA8_7116
return 

:MA8_7118
print_big 'M_FAIL' 6000 ms 1
$4540 = 0
change_blip_display $ASUKA display 3
return 

:MA8_7149
remove_blip $TAXI_PICKUP1
remove_blip $TAXI_PICKUP2
remove_blip $TAXI_PICKUP3
remove_blip $KENPICK
remove_blip $MA8PICKA
remove_blip $MA8PICKB
remove_blip $MA8PICKC
remove_blip $MA8PICKD
remove_blip $MA8PICKE
remove_blip $MA8PICKF
remove_blip $MA8PICKG
remove_blip $MA8PICKH
remove_sphere $MA8SPHERE1
remove_sphere $MA8SPHERE2
remove_char_elegantly $MA8KILL1
remove_char_elegantly $MA8KILL2
remove_char_elegantly $MA8KILL3
remove_char_elegantly $MA8KILL4
remove_char_elegantly $MA8KILL5
remove_char_elegantly $MA8KILL6
remove_char_elegantly $MA8KILL7
remove_char_elegantly $MA8KILL8
remove_char_elegantly $MA8KILL9
remove_char_elegantly $MA8KILL10
remove_char_elegantly $MA8KILL11
remove_char_elegantly $MA8KILL12
remove_char_elegantly $MA8KILLA
remove_char_elegantly $MA8KILLB
remove_char_elegantly $MA8KILLC
remove_char_elegantly $MA8KILLD
remove_char_elegantly $MA8KILLE
remove_char_elegantly $MA8KILLF
remove_char_elegantly $MA8KILLG
remove_char_elegantly $MA8KILLH
remove_char_elegantly $KEN_CHAR
remove_char_elegantly $MA8JAPAN1
remove_char_elegantly $MA8JAPAN2
remove_char_elegantly $MA8JAPAN3
remove_char_elegantly $MA8JAPAN4
clear_onscreen_counter $MA8KENDAM
unload_special_character 1
unload_special_character 2
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 16
mark_model_as_no_longer_needed 17
mark_model_as_no_longer_needed 18
mark_model_as_no_longer_needed 135
mark_model_as_no_longer_needed 136
mark_model_as_no_longer_needed 156
load_splash_screen 'MAINSC1'
$ONMISSION = 0
mission_has_finished 
return 

//-------------Mission 40---------------
// Originally: Turismo

:MEND
gosub @MEND_36
if 
  has_deatharrest_been_executed 
goto_if_false @MEND_27
gosub @MEND_2851

:MEND_27
gosub @MEND_2890
terminate_this_script 

:MEND_36
$ONMISSION = 1
$MISSION44 = 0
register_mission_given 
set_fading_colour 0 0 0
script_name 'MEND'
request_model 2
request_model 4
request_model 3
request_model 11
request_model 107
request_model 156
request_model 126
request_model 142
request_model 109
request_model 119
request_model 137
request_model 122
load_special_character 1 'KEEPER'
load_all_models_now 
force_weather 2

:MEND_139
wait 0
if and
  not is_player_dead $PLAYER_CHAR
  has_model_loaded 109
  has_model_loaded 119
  has_model_loaded 137
  has_model_loaded 122
  has_model_loaded 126
  has_model_loaded 142
goto_if_false @MEND_139
switch_widescreen 1
load_splash_screen 'BOSS'
do_fade 0 0
wait 1000
print_big 'MEND_2' 3000 ms 2
set_player_control $PLAYER_CHAR can_move 0
set_car_density_multiplier 0.0
set_ped_density_multiplier 0.0
clear_area 1 at -653.375 -48.0625 17.8125 range 20.0
set_player_coordinates $PLAYER_CHAR at -541.0625 784.1875 64.5
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
generate_random_int_in_range $BEMENDCAR = random_int 1 5
do_fade 1 1000
wait 1000
wait 0
if 
  $BEMENDCAR == 1
goto_if_false @MEND_345
create_car $MENDCAR1 = create_car 122 at -442.0 862.625 36.8125
goto @MEND_485

:MEND_345
if 
  $BEMENDCAR == 2
goto_if_false @MEND_386
create_car $MENDCAR1 = create_car 119 at -442.0 862.625 36.8125
goto @MEND_485

:MEND_386
if 
  $BEMENDCAR == 3
goto_if_false @MEND_427
create_car $MENDCAR1 = create_car 109 at -442.0 862.625 36.8125
goto @MEND_485

:MEND_427
if 
  $BEMENDCAR == 4
goto_if_false @MEND_469
create_car $MENDCAR1 = create_car 137 at -442.0 862.625 36.8125
goto @MEND_485

:MEND_469
create_car $MENDCAR1 = create_car 122 at -442.0 862.625 36.8125

:MEND_485
create_char $SLICK = create_actor 21 26 at -444.4375 858.625 37.0
turn_char_to_face_char $SLICK look_at_actor $PLAYER_ACTOR
change_car_lock 1 = car $MENDCAR1
set_car_heading $MENDCAR1 z_angle_to 270.0
add_blip_for_car $MENDCARPICK1 = create_marker_above_car $MENDCAR1
create_car $MENDCAR2 = create_car 142 at -489.75 -249.75 1.0
set_car_heading $MENDCAR2 z_angle_to 262.0
create_car $MENDCAR3 = create_car 126 at -1568.875 -972.625 10.8125
set_car_heading $MENDCAR3 z_angle_to 270.0
print_now 'MEND_3' time 6000 1
wait 6000
print_now 'MEND_3A' time 6000 1
wait 6000
set_fixed_camera_position -470.25 866.5 52.8125 rotation 0.0 0.0 0.0
point_camera_at_point -442.0 862.625 36.8125 switchstyle 2
print_now 'MEND_8' time 4000 1
set_char_wait_state $SLICK anim 16 wait_state_time 4000
create_car $MENDKILLCAR1 = create_car 107 at -748.1875 -437.5625 8.75
create_car $MENDKILLCAR2 = create_car 107 at -748.375 -431.5 8.75
create_car $MENDKILLCAR3 = create_car 107 at -1489.25 -818.5625 11.0625
create_car $MENDKILLCAR4 = create_car 107 at -1469.25 -818.5625 11.0625
create_car $MENDKILLCAR5 = create_car 156 at -634.375 -60.3125 18.6875
create_car $MENDKILLCAR6 = create_car 156 at -614.375 -60.3125 18.6875
create_char_inside_car $MENDKILLA = create_actor 6 3 in_car $MENDKILLCAR3
create_char_inside_car $MENDKILLB = create_actor 6 3 in_car $MENDKILLCAR4
create_char_inside_car $MENDKILLC = create_actor 21 11 in_car $MENDKILLCAR5
create_char_inside_car $MENDKILLD = create_actor 21 11 in_car $MENDKILLCAR6
set_car_heading $MENDKILLCAR1 z_angle_to 180.0
set_car_heading $MENDKILLCAR2 z_angle_to 180.0
set_car_heading $MENDKILLCAR3 z_angle_to 270.0
set_car_heading $MENDKILLCAR4 z_angle_to 270.0
set_car_heading $MENDKILLCAR5 z_angle_to 270.0
set_car_heading $MENDKILLCAR6 z_angle_to 270.0
create_char $MENDKILL1 = create_actor 6 3 at -755.75 -439.125 9.0
create_char $MENDKILL2 = create_actor 6 3 at -753.0625 -431.4375 8.9375
create_char $MENDKILL3 = create_actor 6 3 at -748.75 -426.8125 9.0
create_char $MENDKILL4 = create_actor 6 3 at -724.875 -442.125 8.9375
create_char $MENDKILL5 = create_actor 6 3 at -750.375 -443.25 12.125
create_char $MENDKILL6 = create_actor 21 11 at -701.625 -43.625 18.5
create_char $MENDKILL7 = create_actor 21 11 at -710.0 -37.25 18.25
create_char $MENDKILL8 = create_actor 21 11 at -686.625 -26.75 18.8125
create_char $MENDKILL9 = create_actor 21 11 at -692.0625 -206.875 18.0625
create_char $MENDKILL10 = create_actor 21 11 at -680.625 -238.3125 19.375
create_char $MENDKILL11 = create_actor 21 2 at -1542.313 -950.1875 14.5
create_char $MENDKILL12 = create_actor 21 3 at -1570.875 -932.5625 11.0625
create_char $MENDKILL13 = create_actor 21 4 at -1565.688 -1010.188 10.8125
create_char $MENDKILL14 = create_actor 21 2 at -1469.063 -990.6875 10.8125
create_char $MENDKILL15 = create_actor 21 4 at -1525.0 -952.125 10.9375
set_char_only_damaged_by_player $MENDKILL1 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL2 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL3 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL4 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL5 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL6 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL7 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL8 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL9 immune_to_nonplayer 1
set_char_only_damaged_by_player $MENDKILL10 immune_to_nonplayer 1
set_char_obj_kill_player_on_foot $MENDKILL1 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL2 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL3 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL4 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL5 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL6 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL7 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL8 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL9 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL10 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL11 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL12 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL13 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL14 kill_player $PLAYER_CHAR
set_char_obj_kill_player_on_foot $MENDKILL15 kill_player $PLAYER_CHAR
set_char_stay_in_same_place $MENDKILL1 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL2 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL3 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL4 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL5 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL6 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL7 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL8 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL9 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL10 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL11 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL12 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL13 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL14 maintain_position_when_attacked 1
set_char_stay_in_same_place $MENDKILL15 maintain_position_when_attacked 1
give_weapon_to_char $MENDKILL1 weapon 5 ammo 999
give_weapon_to_char $MENDKILL2 weapon 5 ammo 999
give_weapon_to_char $MENDKILL3 weapon 5 ammo 999
give_weapon_to_char $MENDKILL4 weapon 5 ammo 999
give_weapon_to_char $MENDKILL5 weapon 5 ammo 999
give_weapon_to_char $MENDKILL6 weapon 5 ammo 999
give_weapon_to_char $MENDKILL7 weapon 5 ammo 999
give_weapon_to_char $MENDKILL8 weapon 5 ammo 999
give_weapon_to_char $MENDKILL9 weapon 5 ammo 999
give_weapon_to_char $MENDKILL10 weapon 5 ammo 999
give_weapon_to_char $MENDKILL11 weapon 5 ammo 999
give_weapon_to_char $MENDKILL12 weapon 5 ammo 999
give_weapon_to_char $MENDKILL13 weapon 5 ammo 999
give_weapon_to_char $MENDKILL14 weapon 5 ammo 999
give_weapon_to_char $MENDKILL15 weapon 5 ammo 999
set_car_mission $MENDKILLCAR3 driver_behaviour_to 0
set_car_driving_style $MENDKILLCAR3 traffic_behavior_to 0
set_car_mission $MENDKILLCAR4 driver_behaviour_to 0
set_car_driving_style $MENDKILLCAR4 traffic_behavior_to 0
set_car_mission $MENDKILLCAR5 driver_behaviour_to 0
set_car_driving_style $MENDKILLCAR5 traffic_behavior_to 0
set_car_mission $MENDKILLCAR6 driver_behaviour_to 0
set_car_driving_style $MENDKILLCAR6 traffic_behavior_to 0
set_car_only_damaged_by_player $MENDKILLCAR3 immune_to_nonplayer 1
set_car_only_damaged_by_player $MENDKILLCAR4 immune_to_nonplayer 1
set_car_only_damaged_by_player $MENDKILLCAR5 immune_to_nonplayer 1
set_car_only_damaged_by_player $MENDKILLCAR6 immune_to_nonplayer 1
set_car_cruise_speed $MENDKILLCAR3 max_speed_to 30.0
set_car_cruise_speed $MENDKILLCAR4 max_speed_to 30.0
set_car_cruise_speed $MENDKILLCAR5 max_speed_to 30.0
set_car_cruise_speed $MENDKILLCAR6 max_speed_to 30.0
change_car_lock 2 = car $MENDKILLCAR3
change_car_lock 2 = car $MENDKILLCAR4
change_car_lock 2 = car $MENDKILLCAR5
change_car_lock 2 = car $MENDKILLCAR6
wait 3000
do_fade 0 1000
wait 1000
delete_char $SLICK
set_car_density_multiplier 1.0
set_ped_density_multiplier 1.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1

:MEND_1798
wait 0
if 
  not is_car_dead $MENDCAR3
goto_if_false @MEND_2851
alter_wanted_level $PLAYER_CHAR wanted_level_to 4
if 
  is_player_in_car $PLAYER_CHAR in_car $MENDCAR1
goto_if_false @MEND_1798
alter_wanted_level $PLAYER_CHAR wanted_level_to 5
$KILLCAR1 = 0
$KILLCAR2 = 0
$MEND_TIME = 300000
display_onscreen_timer $MEND_TIME
$MISSION44 = 1
remove_blip $MENDCARPICK1
add_blip_for_car $MENDCARPICK3 = create_marker_above_car $MENDCAR3

:MEND_1900
wait 0
if and
  not is_car_dead $MENDCAR3
  $MEND_TIME > 0
goto_if_false @MEND_2851
if 
  $MEND_TIME >= 180000
goto_if_false @MEND_1955
alter_wanted_level $PLAYER_CHAR wanted_level_to 5

:MEND_1955
if 
  not $MEND_TIME >= 180000
goto_if_false @MEND_1983
alter_wanted_level $PLAYER_CHAR wanted_level_to 6

:MEND_1983
if 
  $KILLCAR1 == 0
goto_if_false @MEND_2060
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PROJECT'
goto_if_false @MEND_2060
set_car_mission $MENDKILLCAR5 driver_behaviour_to 2
set_car_driving_style $MENDKILLCAR5 traffic_behavior_to 2
set_car_mission $MENDKILLCAR6 driver_behaviour_to 2
set_car_driving_style $MENDKILLCAR6 traffic_behavior_to 2
$KILLCAR1 = 1

:MEND_2060
wait 0
if 
  $KILLCAR2 == 0
goto_if_false @MEND_2160
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'AIRPORT'
goto_if_false @MEND_1900
alter_wanted_level $PLAYER_CHAR wanted_level_to 6
wait 1000
set_car_mission $MENDKILLCAR3 driver_behaviour_to 2
set_car_driving_style $MENDKILLCAR3 traffic_behavior_to 2
set_car_mission $MENDKILLCAR4 driver_behaviour_to 2
set_car_driving_style $MENDKILLCAR4 traffic_behavior_to 2
alter_wanted_level $PLAYER_CHAR wanted_level_to 6
$KILLCAR2 = 1

:MEND_2160
wait 0
if and
  not is_car_dead $MENDCAR3
  $MEND_TIME > 0
goto_if_false @MEND_2851
alter_wanted_level $PLAYER_CHAR wanted_level_to 6
if 
  is_player_in_car $PLAYER_CHAR in_car $MENDCAR3
goto_if_false @MEND_2160
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at 1999.625 -165.5 80.0 color 5 display 2
change_blip_scale $TAXI_PICKUP size 3
clear_onscreen_timer $MEND_TIME
change_blip_display $MENDCARPICK3 display 0
print_now 'MEND_4' time 5000 1
get_game_timer $GAME_TIME1
$MEND_SAY1 = 0
$MEND_SAY2 = 0
$MEND_SAY3 = 0
goto @MEND_2305

:MEND_2298
change_blip_display $MENDCARPICK3 display 3

:MEND_2305
wait 0
if 
  not is_car_dead $MENDCAR3
goto_if_false @MEND_2851
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if and
  $MEND_SAY1 == 0
  $GAME_TIME2 > 5000
goto_if_false @MEND_2386
print_now 'MEND_5' time 6000 1
$MEND_SAY1 = 1

:MEND_2386
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if and
  $MEND_SAY2 == 0
  $GAME_TIME2 > 11000
goto_if_false @MEND_2447
print_now 'MEND_6' time 6000 1
$MEND_SAY2 = 1

:MEND_2447
get_game_timer $GAME_TIME2
sub_int_var_from_int_var $GAME_TIME2 -= $GAME_TIME1
if and
  $MEND_SAY3 == 0
  $GAME_TIME2 > 17000
goto_if_false @MEND_2508
print_now 'MEND_7' time 4000 1
$MEND_SAY3 = 1

:MEND_2508
wait 0
if 
  is_player_in_car $PLAYER_CHAR in_car $MENDCAR3
goto_if_false @MEND_2298
change_blip_display $MENDCARPICK3 display 0
if and
  is_player_in_car $PLAYER_CHAR in_car $MENDCAR3
  is_player_in_area_2d $PLAYER_CHAR 0 1999.625 -38.5 1700.563 -291.625
goto_if_false @MEND_2305
clear_prints 
load_splash_screen 'MEND'
do_fade 0 1000
wait 1000
set_time_of_day 2 40
switch_widescreen 1
clear_wanted_level $PLAYER_CHAR
set_fixed_camera_position -364.375 265.0625 82.8125 rotation 0.0 0.0 0.0
point_camera_at_point -363.9375 264.1875 82.625 switchstyle 2
set_player_control $PLAYER_CHAR can_move 0
set_player_health $PLAYER_CHAR health_to 100
clear_area 1 at -767.0625 -600.3125 11.3125 range 2.0
warp_player_from_car_to_coord $PLAYER_CHAR at -767.0625 -600.3125 11.3125
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_in_front_of_player 
player_made_progress 1
$PROGRESS_100 += 1
register_mission_passed 'MEND_2'
do_fade 1 1000
wait 1000
start_credits 

:MEND_2737
wait 0
if 
  not is_button_pressed 0 key_pressed 16
goto_if_false @MEND_2778
if 
  are_credits_finished 
goto_if_false @MEND_2737
goto @MEND_2778

:MEND_2778
stop_credits 
load_splash_screen 'MAINSC1'
do_fade 0 1000
wait 1000
restore_camera_jumpcut 
switch_widescreen 0
do_fade 1 1000
wait 1000
$4541 = 1
print_big 'LC00' 6000 ms 1
set_player_control $PLAYER_CHAR can_move 1
return 

:MEND_2851
print_big 'M_FAIL' 6000 ms 1
$4541 = 0
change_blip_display $ASUKA display 3
start_new_script @FORTY1 
return 

:MEND_2890
$ONMISSION = 0
wait 1000
remove_blip $TAXI_PICKUP
clear_onscreen_timer $MEND_TIME
remove_blip $MENDCARPICK1
remove_blip $MENDCARPICK3
remove_blip $TAXI_PICKUP
remove_char_elegantly $MENDKILL1
remove_char_elegantly $MENDKILL2
remove_char_elegantly $MENDKILL3
remove_char_elegantly $MENDKILL4
remove_char_elegantly $MENDKILL5
remove_char_elegantly $MENDKILL6
remove_char_elegantly $MENDKILL7
remove_char_elegantly $MENDKILL8
remove_char_elegantly $MENDKILL9
remove_char_elegantly $MENDKILL10
remove_char_elegantly $MENDKILLA
remove_char_elegantly $MENDKILLB
remove_char_elegantly $MENDKILLC
remove_char_elegantly $MENDKILLD
mark_model_as_no_longer_needed 2
mark_model_as_no_longer_needed 3
mark_model_as_no_longer_needed 4
mark_model_as_no_longer_needed 11
mark_model_as_no_longer_needed 107
mark_model_as_no_longer_needed 116
mark_model_as_no_longer_needed 117
mark_model_as_no_longer_needed 126
mark_model_as_no_longer_needed 142
mark_model_as_no_longer_needed 156
mark_model_as_no_longer_needed 109
mark_model_as_no_longer_needed 119
mark_model_as_no_longer_needed 137
mark_model_as_no_longer_needed 122
load_splash_screen 'MAINSC1'
mission_has_finished 
return 
terminate_this_script 

//-------------Mission 41---------------
// Originally: I Scream, You Scream

:AMBULAN
gosub @AMBULAN_16
gosub @AMBULAN_11770
terminate_this_script 

:AMBULAN_16
$ONMISSION = 1
$FLAG_PLAYER_ON_AMBULANCE_MISSION = 1
wait 0
script_name 'AMBULAN'
$PARAMEDIC_MISION_TIMER = 0
$PARAMEDIC_MISION_CAR = 0
$PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$AMBULANCE_HEALTH_LAST = 0
$AMBULANCE_HEALTH_NOW = 0
$TIME_DROP = 0
$MAX_PEDS_IN_CAR = 0
$PEDS_IN_CAR = 0
$PARAMEDIC_CLOSE_ENOUGH_TO_HOSPITAL = 0
$PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL = 1
$PED_COUNTER = 0
$PARAMEDIC_CREATED_PATIENT1 = 0
$PARAMEDIC_CREATED_PATIENT2 = 0
$PARAMEDIC_CREATED_PATIENT3 = 0
$PARAMEDIC_CREATED_PATIENT4 = 0
$PARAMEDIC_CREATED_PATIENT5 = 0
$PARAMEDIC_CREATED_PATIENT6 = 0
$PARAMEDIC_CREATED_PATIENT7 = 0
$PARAMEDIC_CREATED_PATIENT8 = 0
$PARAMEDIC_CREATED_PATIENT9 = 0
$PARAMEDIC_CREATED_PATIENT10 = 0
$PARAMEDIC_CREATED_PATIENT11 = 0
$PARAMEDIC_CREATED_PATIENT12 = 0
$SAVED_PEDS = 0
$FIRST_RESCUE_FLAG = 0
$FIRST_CHUNK_FLAG = 0
$TIME_CHUNK_DIVIDER = 11.0
$PARAMEDIC_MISSION_LEVEL = 1
$TIME_CHUNK = 0
$PARAMEDIC_TIME_BONUS = 0
$SCORE_AM = 0
$BONUS_TIME_FLAG = 0
$DROP_OFF_TIME_BONUS = 0
$HOSPITAL_BLIP_FLAG = 0
$MISSION_END_BUTTON_AMBULANCE = 0
$CAR_FULL_FLAG = 0
$SAVED_PEDS_THIS_GO = 0
$PARAMEDIC_ISLAND_PATIENT_IS_ON = 0
print_now 'ATUTOR2' time 3000 1
wait 3000
set_wanted_multiplier 0.5

:AMBULAN_336
print_with_number_now 'ALEVEL' $PARAMEDIC_MISSION_LEVEL time 5000 4
clear_onscreen_timer $PARAMEDIC_MISION_TIMER
$PARAMEDIC_MISION_TIMER = 0
clear_help 
if 
  $DISPLAYED_AMBULANCE_HELP == 0
goto_if_false @AMBULAN_510
get_controller_mode $CURRENT_CONTROLS
if 
  $CURRENT_CONTROLS == 0
goto_if_false @AMBULAN_419
print_help 'SIREN_1'

:AMBULAN_419
if 
  $CURRENT_CONTROLS == 1
goto_if_false @AMBULAN_447
print_help 'SIREN_2'

:AMBULAN_447
if 
  $CURRENT_CONTROLS == 2
goto_if_false @AMBULAN_475
print_help 'SIREN_3'

:AMBULAN_475
if 
  $CURRENT_CONTROLS == 3
goto_if_false @AMBULAN_503
print_help 'SIREN_4'

:AMBULAN_503
$DISPLAYED_AMBULANCE_HELP = 1

:AMBULAN_510
if 
  is_int_var_greater_than_int_var $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > $PED_COUNTER
goto_if_false @AMBULAN_564
gosub @AMBULAN_1998
gosub @AMBULAN_724
gosub @AMBULAN_4650
$PED_COUNTER += 1
goto @AMBULAN_510

:AMBULAN_564
if 
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 3
goto_if_false @AMBULAN_596
$BONUS_TIME_FLAG = 1
goto @AMBULAN_603

:AMBULAN_596
$BONUS_TIME_FLAG = 0

:AMBULAN_603
set_var_int_to_var_int $TIME_CHUNK = $PARAMEDIC_MISION_TIMER
div_int_var_by_int_var $TIME_CHUNK /= $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL
$TIME_CHUNK /= 2
set_var_int_to_var_int $BRACKETS_VAR = $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL
$BRACKETS_VAR += 1
mult_int_var_by_int_var $TIME_CHUNK *= $BRACKETS_VAR
add_int_var_to_int_var $PARAMEDIC_MISION_TIMER += $TIME_CHUNK
div_int_var_by_int_var $PARAMEDIC_MISION_TIMER /= $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL
set_var_int_to_var_int $TIME_CHUNK = $PARAMEDIC_MISION_TIMER
$TIME_CHUNK /= 2
display_onscreen_timer $PARAMEDIC_MISION_TIMER
if 
  $ONMISSION == 0
goto_if_false @AMBULAN_717
add_blip_for_coord $HOSPITAL_BLIP = create_checkpoint_at $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z

:AMBULAN_717
goto @AMBULAN_4718

:AMBULAN_724
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 0
  $PARAMEDIC_CREATED_PATIENT1 == 0
goto_if_false @AMBULAN_830
create_random_char $PATIENT1 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT1 = 1
set_char_bleeding $PATIENT1 bleeding_to 1
set_char_only_damaged_by_player $PATIENT1 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT1 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT1 wander_state_to 1
clear_char_threat_search $PATIENT1
add_blip_for_char $INJURED_PED_1_BLIP = create_marker_above_actor $PATIENT1
set_char_obj_wait_on_foot $PATIENT1
return 

:AMBULAN_830
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 1
  $PARAMEDIC_CREATED_PATIENT2 == 0
goto_if_false @AMBULAN_936
create_random_char $PATIENT2 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT2 = 1
set_char_bleeding $PATIENT2 bleeding_to 1
set_char_only_damaged_by_player $PATIENT2 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT2 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT2 wander_state_to 1
clear_char_threat_search $PATIENT2
add_blip_for_char $INJURED_PED_2_BLIP = create_marker_above_actor $PATIENT2
set_char_obj_wait_on_foot $PATIENT2
return 

:AMBULAN_936
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 2
  $PARAMEDIC_CREATED_PATIENT3 == 0
goto_if_false @AMBULAN_1042
create_random_char $PATIENT3 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT3 = 1
set_char_bleeding $PATIENT3 bleeding_to 1
set_char_only_damaged_by_player $PATIENT3 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT3 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT3 wander_state_to 1
clear_char_threat_search $PATIENT3
add_blip_for_char $INJURED_PED_3_BLIP = create_marker_above_actor $PATIENT3
set_char_obj_wait_on_foot $PATIENT3
return 

:AMBULAN_1042
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 3
  $PARAMEDIC_CREATED_PATIENT4 == 0
goto_if_false @AMBULAN_1148
create_random_char $PATIENT4 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT4 = 1
set_char_bleeding $PATIENT4 bleeding_to 1
set_char_only_damaged_by_player $PATIENT4 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT4 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT4 wander_state_to 1
clear_char_threat_search $PATIENT4
add_blip_for_char $INJURED_PED_4_BLIP = create_marker_above_actor $PATIENT4
set_char_obj_wait_on_foot $PATIENT4
return 

:AMBULAN_1148
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 4
  $PARAMEDIC_CREATED_PATIENT5 == 0
goto_if_false @AMBULAN_1254
create_random_char $PATIENT5 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT5 = 1
set_char_bleeding $PATIENT5 bleeding_to 1
set_char_only_damaged_by_player $PATIENT5 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT5 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT5 wander_state_to 1
clear_char_threat_search $PATIENT5
add_blip_for_char $INJURED_PED_5_BLIP = create_marker_above_actor $PATIENT5
set_char_obj_wait_on_foot $PATIENT5
return 

:AMBULAN_1254
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 5
  $PARAMEDIC_CREATED_PATIENT6 == 0
goto_if_false @AMBULAN_1360
create_random_char $PATIENT6 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT6 = 1
set_char_bleeding $PATIENT6 bleeding_to 1
set_char_only_damaged_by_player $PATIENT6 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT6 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT6 wander_state_to 1
clear_char_threat_search $PATIENT6
add_blip_for_char $INJURED_PED_6_BLIP = create_marker_above_actor $PATIENT6
set_char_obj_wait_on_foot $PATIENT6
return 

:AMBULAN_1360
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 6
  $PARAMEDIC_CREATED_PATIENT7 == 0
goto_if_false @AMBULAN_1466
create_random_char $PATIENT7 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT7 = 1
set_char_bleeding $PATIENT7 bleeding_to 1
set_char_only_damaged_by_player $PATIENT7 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT7 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT7 wander_state_to 1
clear_char_threat_search $PATIENT7
add_blip_for_char $INJURED_PED_7_BLIP = create_marker_above_actor $PATIENT7
set_char_obj_wait_on_foot $PATIENT7
return 

:AMBULAN_1466
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 7
  $PARAMEDIC_CREATED_PATIENT8 == 0
goto_if_false @AMBULAN_1572
create_random_char $PATIENT8 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT8 = 1
set_char_bleeding $PATIENT8 bleeding_to 1
set_char_only_damaged_by_player $PATIENT8 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT8 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT8 wander_state_to 1
clear_char_threat_search $PATIENT8
add_blip_for_char $INJURED_PED_8_BLIP = create_marker_above_actor $PATIENT8
set_char_obj_wait_on_foot $PATIENT8
return 

:AMBULAN_1572
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 8
  $PARAMEDIC_CREATED_PATIENT9 == 0
goto_if_false @AMBULAN_1678
create_random_char $PATIENT9 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT9 = 1
set_char_bleeding $PATIENT9 bleeding_to 1
set_char_only_damaged_by_player $PATIENT9 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT9 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT9 wander_state_to 1
clear_char_threat_search $PATIENT9
add_blip_for_char $INJURED_PED_9_BLIP = create_marker_above_actor $PATIENT9
set_char_obj_wait_on_foot $PATIENT9
return 

:AMBULAN_1678
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 9
  $PARAMEDIC_CREATED_PATIENT10 == 0
goto_if_false @AMBULAN_1784
create_random_char $PATIENT10 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT10 = 1
set_char_bleeding $PATIENT10 bleeding_to 1
set_char_only_damaged_by_player $PATIENT10 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT10 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT10 wander_state_to 1
clear_char_threat_search $PATIENT10
add_blip_for_char $INJURED_PED_10_BLIP = create_marker_above_actor $PATIENT10
set_char_obj_wait_on_foot $PATIENT10
return 

:AMBULAN_1784
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 10
  $PARAMEDIC_CREATED_PATIENT11 == 0
goto_if_false @AMBULAN_1890
create_random_char $PATIENT11 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT11 = 1
set_char_bleeding $PATIENT11 bleeding_to 1
set_char_only_damaged_by_player $PATIENT11 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT11 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT11 wander_state_to 1
clear_char_threat_search $PATIENT11
add_blip_for_char $INJURED_PED_11_BLIP = create_marker_above_actor $PATIENT11
set_char_obj_wait_on_foot $PATIENT11
return 

:AMBULAN_1890
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 11
  $PARAMEDIC_CREATED_PATIENT12 == 0
goto_if_false @AMBULAN_1996
create_random_char $PATIENT12 = create_random_actor $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z
$PARAMEDIC_CREATED_PATIENT12 = 1
set_char_bleeding $PATIENT12 bleeding_to 1
set_char_only_damaged_by_player $PATIENT12 immune_to_nonplayer 1
generate_random_float_in_range $PATIENT_Z_ANGLE = random_float 0.0 359.875
set_char_heading $PATIENT12 z_angle_to $PATIENT_Z_ANGLE
set_char_running $PATIENT12 wander_state_to 1
clear_char_threat_search $PATIENT12
add_blip_for_char $INJURED_PED_12_BLIP = create_marker_above_actor $PATIENT12
set_char_obj_wait_on_foot $PATIENT12
return 

:AMBULAN_1996
return 

:AMBULAN_1998
wait 0
get_player_coordinates $PLAYER_CHAR position_to $PLAYER1_A_X $PLAYER1_A_Y $PLAYER1_A_Z
if 
  is_collision_in_memory 1
goto_if_false @AMBULAN_2114
generate_random_float_in_range $PARAMEDIC_PATIENT_RANDOM_X = random_float 778.0 1540.0
generate_random_float_in_range $PARAMEDIC_PATIENT_RANDOM_Y = random_float -1110.0 0.0
$PARAMEDIC_CHECKPOINT_X = 1141.5
$PARAMEDIC_CHECKPOINT_Y = -595.1875
$PARAMEDIC_CHECKPOINT_Z = 13.875
$PARAMEDIC_INSIDE_HOSPITAL_X = 1149.125
$PARAMEDIC_INSIDE_HOSPITAL_Y = -597.3125
$PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$PARAMEDIC_CLOSE_ENOUGH_TO_HOSPITAL = 1
$PARAMEDIC_ISLAND_PATIENT_IS_ON = 1

:AMBULAN_2114
if 
  is_collision_in_memory 2
goto_if_false @AMBULAN_2212
generate_random_float_in_range $PARAMEDIC_PATIENT_RANDOM_X = random_float -192.0 545.0
generate_random_float_in_range $PARAMEDIC_PATIENT_RANDOM_Y = random_float -1626.0 98.0
$PARAMEDIC_CHECKPOINT_X = 178.5
$PARAMEDIC_CHECKPOINT_Y = -23.5625
$PARAMEDIC_CHECKPOINT_Z = 15.1875
$PARAMEDIC_INSIDE_HOSPITAL_X = 182.75
$PARAMEDIC_INSIDE_HOSPITAL_Y = -15.75
$PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$PARAMEDIC_CLOSE_ENOUGH_TO_HOSPITAL = 1
$PARAMEDIC_ISLAND_PATIENT_IS_ON = 2

:AMBULAN_2212
if 
  is_collision_in_memory 3
goto_if_false @AMBULAN_2310
generate_random_float_in_range $PARAMEDIC_PATIENT_RANDOM_X = random_float -1300.0 -414.0
generate_random_float_in_range $PARAMEDIC_PATIENT_RANDOM_Y = random_float -608.75 380.0
$PARAMEDIC_CHECKPOINT_X = -1255.5
$PARAMEDIC_CHECKPOINT_Y = -144.375
$PARAMEDIC_CHECKPOINT_Z = 57.75
$PARAMEDIC_INSIDE_HOSPITAL_X = -1246.75
$PARAMEDIC_INSIDE_HOSPITAL_Y = -139.0625
$PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$PARAMEDIC_CLOSE_ENOUGH_TO_HOSPITAL = 1
$PARAMEDIC_ISLAND_PATIENT_IS_ON = 3

:AMBULAN_2310
if and
  $PARAMEDIC_CLOSE_ENOUGH_TO_HOSPITAL == 0
  $PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE == 0
goto_if_false @AMBULAN_2382
if 
  $PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE == 0
goto_if_false @AMBULAN_2375
print_now 'A_RANGE' time 5000 1
$PARAMEDIC_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 1

:AMBULAN_2375
goto @AMBULAN_11770

:AMBULAN_2382
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @AMBULAN_2436
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @AMBULAN_2429
$MISSION_END_BUTTON_AMBULANCE = 1

:AMBULAN_2429
goto @AMBULAN_2460

:AMBULAN_2436
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @AMBULAN_2460
$MISSION_END_BUTTON_AMBULANCE = 1

:AMBULAN_2460
if 
  $MISSION_END_BUTTON_AMBULANCE == 1
goto_if_false @AMBULAN_2581
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @AMBULAN_2542
if 
  not is_button_pressed 0 key_pressed 19
goto_if_false @AMBULAN_2535
print_now 'A_CANC' time 3000 1
goto @AMBULAN_11770

:AMBULAN_2535
goto @AMBULAN_2581

:AMBULAN_2542
if 
  not is_button_pressed 0 key_pressed 14
goto_if_false @AMBULAN_2581
print_now 'A_CANC' time 3000 1
goto @AMBULAN_11770

:AMBULAN_2581
if 
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 106
goto_if_false @AMBULAN_2621
print_now 'A_CANC' time 3000 1
goto @AMBULAN_11770

:AMBULAN_2621
get_closest_char_node $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y $PARAMEDIC_CREATE_PATIENT_Z to_ped_path_coords_closest_to $PARAMEDIC_PATIENT_RANDOM_X $PARAMEDIC_PATIENT_RANDOM_Y $PLAYER1_A_Z
if and
  $PARAMEDIC_CREATE_PATIENT_X > 1398.0
  1615.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -965.0
  -902.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2691
goto @AMBULAN_1998

:AMBULAN_2691
if and
  $PARAMEDIC_CREATE_PATIENT_X > 879.0
  892.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -427.0
  -407.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2741
goto @AMBULAN_1998

:AMBULAN_2741
if and
  $PARAMEDIC_CREATE_PATIENT_X > 944.75
  1017.063 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -1148.75
  -1076.563 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2791
goto @AMBULAN_1998

:AMBULAN_2791
if and
  $PARAMEDIC_CREATE_PATIENT_X > 920.75
  1004.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -754.1875
  -670.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2841
goto @AMBULAN_1998

:AMBULAN_2841
if and
  $PARAMEDIC_CREATE_PATIENT_X > 670.0
  1035.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -953.0
  -912.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2891
goto @AMBULAN_1998

:AMBULAN_2891
if and
  $PARAMEDIC_CREATE_PATIENT_X > 1364.0
  1641.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -1165.0
  -617.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2941
goto @AMBULAN_1998

:AMBULAN_2941
if and
  $PARAMEDIC_CREATE_PATIENT_X > 649.0
  1066.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > 25.0
  217.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_2991
goto @AMBULAN_1998

:AMBULAN_2991
if and
  $PARAMEDIC_CREATE_PATIENT_X > -1611.5
  -745.25 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -1001.875
  -371.1875 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3041
goto @AMBULAN_1998

:AMBULAN_3041
if and
  $PARAMEDIC_CREATE_PATIENT_X > 939.75
  1035.563 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -901.25
  -828.1875 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3091
goto @AMBULAN_1998

:AMBULAN_3091
if and
  $PARAMEDIC_CREATE_PATIENT_X > 1215.25
  1223.688 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -839.375
  -763.5625 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3141
goto @AMBULAN_1998

:AMBULAN_3141
if and
  $PARAMEDIC_CREATE_PATIENT_X > 845.25
  899.5625 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -312.5625
  -295.6875 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3191
goto @AMBULAN_1998

:AMBULAN_3191
if and
  $PARAMEDIC_CREATE_PATIENT_X > 113.25
  99.6875 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -1284.75
  -1273.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3241
goto @AMBULAN_1998

:AMBULAN_3241
if and
  $PARAMEDIC_CREATE_PATIENT_X > 18.3125
  92.0 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -388.6875
  -312.375 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3291
goto @AMBULAN_1998

:AMBULAN_3291
if and
  $PARAMEDIC_CREATE_PATIENT_X > -1255.375
  -1187.875 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > 80.5625
  123.375 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3341
goto @AMBULAN_1998

:AMBULAN_3341
if and
  $PARAMEDIC_CREATE_PATIENT_X > 1386.375
  1475.75 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -292.0625
  -168.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3391
goto @AMBULAN_1998

:AMBULAN_3391
if and
  $PARAMEDIC_CREATE_PATIENT_X > 766.6875
  851.75 > $PARAMEDIC_CREATE_PATIENT_X
  $PARAMEDIC_CREATE_PATIENT_Y > -604.0625
  -558.1875 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3441
goto @AMBULAN_1998

:AMBULAN_3441
if 
  $PARAMEDIC_ISLAND_PATIENT_IS_ON == 1
goto_if_false @AMBULAN_3509
if or
  not $PARAMEDIC_CREATE_PATIENT_X > 778.0
  not 1540.0 > $PARAMEDIC_CREATE_PATIENT_X
  not $PARAMEDIC_CREATE_PATIENT_Y > -1110.0
  not 190.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3509
goto @AMBULAN_1998

:AMBULAN_3509
if 
  $PARAMEDIC_ISLAND_PATIENT_IS_ON == 2
goto_if_false @AMBULAN_3577
if or
  not $PARAMEDIC_CREATE_PATIENT_X > -192.0
  not 545.0 > $PARAMEDIC_CREATE_PATIENT_X
  not $PARAMEDIC_CREATE_PATIENT_Y > -1626.0
  not 98.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3577
goto @AMBULAN_1998

:AMBULAN_3577
if 
  $PARAMEDIC_ISLAND_PATIENT_IS_ON == 3
goto_if_false @AMBULAN_3645
if or
  not $PARAMEDIC_CREATE_PATIENT_X > -1300.0
  not -414.0 > $PARAMEDIC_CREATE_PATIENT_X
  not $PARAMEDIC_CREATE_PATIENT_Y > -608.75
  not 380.0 > $PARAMEDIC_CREATE_PATIENT_Y
goto_if_false @AMBULAN_3645
goto @AMBULAN_1998

:AMBULAN_3645
if 
  -1.0 > $PARAMEDIC_CREATE_PATIENT_Z
goto_if_false @AMBULAN_3671
goto @AMBULAN_1998

:AMBULAN_3671
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_A = $PLAYER1_A_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_A -= $PARAMEDIC_CREATE_PATIENT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_A = $PLAYER1_A_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_A -= $PARAMEDIC_CREATE_PATIENT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_A *= $DIFFERENCE_X_FLOAT_A
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_A *= $DIFFERENCE_Y_FLOAT_A
set_var_float_to_var_float $SUM_DIFFERENCE_A_XY = $DIFFERENCE_X_FLOAT_A
add_float_var_to_float_var $SUM_DIFFERENCE_A_XY += $DIFFERENCE_Y_FLOAT_A
sqrt $PLAYERS_DISTANCE_FROM_PED = square_root $SUM_DIFFERENCE_A_XY
if 
  120.0 > $PLAYERS_DISTANCE_FROM_PED
goto_if_false @AMBULAN_3769
goto @AMBULAN_1998

:AMBULAN_3769
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_A = $PARAMEDIC_CHECKPOINT_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_A -= $PARAMEDIC_CREATE_PATIENT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_A = $PARAMEDIC_CHECKPOINT_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_A -= $PARAMEDIC_CREATE_PATIENT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_A *= $DIFFERENCE_X_FLOAT_A
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_A *= $DIFFERENCE_Y_FLOAT_A
set_var_float_to_var_float $SUM_DIFFERENCE_A_XY = $DIFFERENCE_X_FLOAT_A
add_float_var_to_float_var $SUM_DIFFERENCE_A_XY += $DIFFERENCE_Y_FLOAT_A
sqrt $PEDS_DISTANCE_FROM_HOSPITAL = square_root $SUM_DIFFERENCE_A_XY
if 
  100.0 > $PEDS_DISTANCE_FROM_HOSPITAL
goto_if_false @AMBULAN_3867
goto @AMBULAN_1998

:AMBULAN_3867
if 
  $PARAMEDIC_CREATED_PATIENT1 > 0
goto_if_false @AMBULAN_3938
if 
  not is_char_dead $PATIENT1
goto_if_false @AMBULAN_3938
if 
  locate_char_any_means_2d $PATIENT1 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_3938
goto @AMBULAN_1998

:AMBULAN_3938
if 
  $PARAMEDIC_CREATED_PATIENT2 > 0
goto_if_false @AMBULAN_4009
if 
  not is_char_dead $PATIENT2
goto_if_false @AMBULAN_4009
if 
  locate_char_any_means_2d $PATIENT2 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4009
goto @AMBULAN_1998

:AMBULAN_4009
if 
  $PARAMEDIC_CREATED_PATIENT3 > 0
goto_if_false @AMBULAN_4080
if 
  not is_char_dead $PATIENT3
goto_if_false @AMBULAN_4080
if 
  locate_char_any_means_2d $PATIENT3 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4080
goto @AMBULAN_1998

:AMBULAN_4080
if 
  $PARAMEDIC_CREATED_PATIENT4 > 0
goto_if_false @AMBULAN_4151
if 
  not is_char_dead $PATIENT4
goto_if_false @AMBULAN_4151
if 
  locate_char_any_means_2d $PATIENT4 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4151
goto @AMBULAN_1998

:AMBULAN_4151
if 
  $PARAMEDIC_CREATED_PATIENT5 > 0
goto_if_false @AMBULAN_4222
if 
  not is_char_dead $PATIENT5
goto_if_false @AMBULAN_4222
if 
  locate_char_any_means_2d $PATIENT5 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4222
goto @AMBULAN_1998

:AMBULAN_4222
if 
  $PARAMEDIC_CREATED_PATIENT6 > 0
goto_if_false @AMBULAN_4293
if 
  not is_char_dead $PATIENT6
goto_if_false @AMBULAN_4293
if 
  locate_char_any_means_2d $PATIENT6 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4293
goto @AMBULAN_1998

:AMBULAN_4293
if 
  $PARAMEDIC_CREATED_PATIENT7 > 0
goto_if_false @AMBULAN_4364
if 
  not is_char_dead $PATIENT7
goto_if_false @AMBULAN_4364
if 
  locate_char_any_means_2d $PATIENT7 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4364
goto @AMBULAN_1998

:AMBULAN_4364
if 
  $PARAMEDIC_CREATED_PATIENT8 > 0
goto_if_false @AMBULAN_4435
if 
  not is_char_dead $PATIENT8
goto_if_false @AMBULAN_4435
if 
  locate_char_any_means_2d $PATIENT8 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4435
goto @AMBULAN_1998

:AMBULAN_4435
if 
  $PARAMEDIC_CREATED_PATIENT9 > 0
goto_if_false @AMBULAN_4506
if 
  not is_char_dead $PATIENT9
goto_if_false @AMBULAN_4506
if 
  locate_char_any_means_2d $PATIENT9 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4506
goto @AMBULAN_1998

:AMBULAN_4506
if 
  $PARAMEDIC_CREATED_PATIENT10 > 0
goto_if_false @AMBULAN_4577
if 
  not is_char_dead $PATIENT10
goto_if_false @AMBULAN_4577
if 
  locate_char_any_means_2d $PATIENT10 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4577
goto @AMBULAN_1998

:AMBULAN_4577
if 
  $PARAMEDIC_CREATED_PATIENT11 > 0
goto_if_false @AMBULAN_4648
if 
  not is_char_dead $PATIENT11
goto_if_false @AMBULAN_4648
if 
  locate_char_any_means_2d $PATIENT11 0 $PARAMEDIC_CREATE_PATIENT_X $PARAMEDIC_CREATE_PATIENT_Y radius 25.0 25.0
goto_if_false @AMBULAN_4648
goto @AMBULAN_1998

:AMBULAN_4648
return 

:AMBULAN_4650
if 
  $PARAMEDIC_ISLAND_PATIENT_IS_ON == 3
goto_if_false @AMBULAN_4676
$TIME_CHUNK_DIVIDER = 10.0

:AMBULAN_4676
set_var_float_to_var_float $PED_TIME_LIMIT_FLOAT = $PEDS_DISTANCE_FROM_HOSPITAL
div_float_var_by_float_var $PED_TIME_LIMIT_FLOAT /= $TIME_CHUNK_DIVIDER
$PED_TIME_LIMIT_FLOAT *= 1000.0
cset_var_int_to_var_float $PED_TIME_LIMIT_TEMP = float_to_integer $PED_TIME_LIMIT_FLOAT
add_int_var_to_int_var $PARAMEDIC_MISION_TIMER += $PED_TIME_LIMIT_TEMP
return 

:AMBULAN_4718
wait 0
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @AMBULAN_4776
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @AMBULAN_4769
$MISSION_END_BUTTON_AMBULANCE = 1

:AMBULAN_4769
goto @AMBULAN_4800

:AMBULAN_4776
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @AMBULAN_4800
$MISSION_END_BUTTON_AMBULANCE = 1

:AMBULAN_4800
if 
  $MISSION_END_BUTTON_AMBULANCE == 1
goto_if_false @AMBULAN_4921
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @AMBULAN_4882
if 
  not is_button_pressed 0 key_pressed 19
goto_if_false @AMBULAN_4875
print_now 'A_CANC' time 3000 1
goto @AMBULAN_11770

:AMBULAN_4875
goto @AMBULAN_4921

:AMBULAN_4882
if 
  not is_button_pressed 0 key_pressed 14
goto_if_false @AMBULAN_4921
print_now 'A_CANC' time 3000 1
goto @AMBULAN_11770

:AMBULAN_4921
if 
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 106
goto_if_false @AMBULAN_4968
print_now 'A_CANC' time 3000 1
goto @AMBULAN_11770
goto @AMBULAN_4976

:AMBULAN_4968
store_car_player_is_in $PARAMEDIC_MISION_CAR = player $PLAYER_CHAR

:AMBULAN_4976
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 6
  $BONUS_TIME_FLAG == 2
  $DROP_OFF_TIME_BONUS == 0
goto_if_false @AMBULAN_5022
$BONUS_TIME_FLAG = 1
$DROP_OFF_TIME_BONUS += 1

:AMBULAN_5022
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 9
  $BONUS_TIME_FLAG == 2
  $DROP_OFF_TIME_BONUS == 1
goto_if_false @AMBULAN_5068
$BONUS_TIME_FLAG = 1
$DROP_OFF_TIME_BONUS += 1

:AMBULAN_5068
if and
  $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL > 12
  $BONUS_TIME_FLAG == 2
  $DROP_OFF_TIME_BONUS == 2
goto_if_false @AMBULAN_5114
$BONUS_TIME_FLAG = 1
$DROP_OFF_TIME_BONUS += 1

:AMBULAN_5114
if 
  $AMBULANCE_PAGER_FLAG == 0
goto_if_false @AMBULAN_5181
if 
  $PARAMEDIC_MISSIONS_DONE > 34
goto_if_false @AMBULAN_5181
add_pager_message 'PAGEB13' 140 100 1
gosub @AMBULAN_12435
$AMBULANCE_PAGER_FLAG = 1

:AMBULAN_5181
if 
  $AMBULANCE_PAGER_FLAG == 1
goto_if_false @AMBULAN_5248
if 
  $PARAMEDIC_MISSIONS_DONE > 69
goto_if_false @AMBULAN_5248
add_pager_message 'PAGEB14' 140 100 1
gosub @AMBULAN_12437
$AMBULANCE_PAGER_FLAG = 2

:AMBULAN_5248
if 
  $PARAMEDIC_CREATED_PATIENT1 > 0
goto_if_false @AMBULAN_5756
if 
  is_char_dead $PATIENT1
goto_if_false @AMBULAN_5304
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_5304
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_5354
explode_char_head $PATIENT1
remove_char_elegantly $PATIENT1
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_5354
if 
  $PARAMEDIC_CREATED_PATIENT1 == 3
goto_if_false @AMBULAN_5430
if 
  is_char_male $PATIENT1
goto_if_false @AMBULAN_5402
$PED_SEX_FLAG = 0
goto @AMBULAN_5409

:AMBULAN_5402
$PED_SEX_FLAG = 1

:AMBULAN_5409
get_char_coordinates $PATIENT1 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_5430
if 
  $PARAMEDIC_CREATED_PATIENT1 == 1
goto_if_false @AMBULAN_5518
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT1 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_5518
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_5518
set_char_obj_enter_car_as_passenger $PATIENT1 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT1 = 2

:AMBULAN_5518
if 
  $PARAMEDIC_CREATED_PATIENT1 == 2
goto_if_false @AMBULAN_5570
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT1 radius 25.0 25.0
goto_if_false @AMBULAN_5570
$PARAMEDIC_CREATED_PATIENT1 = 1

:AMBULAN_5570
if 
  $PARAMEDIC_CREATED_PATIENT1 == 2
goto_if_false @AMBULAN_5623
if 
  is_char_in_any_car $PATIENT1
goto_if_false @AMBULAN_5623
remove_blip $INJURED_PED_1_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT1 = 3

:AMBULAN_5623
if 
  $PARAMEDIC_CREATED_PATIENT1 == 3
goto_if_false @AMBULAN_5692
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_5692
set_char_obj_leave_car $PATIENT1 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT1 = 4

:AMBULAN_5692
if 
  $PARAMEDIC_CREATED_PATIENT1 == 4
goto_if_false @AMBULAN_5756
if 
  not is_char_in_any_car $PATIENT1
goto_if_false @AMBULAN_5756
set_char_obj_goto_coord_on_foot $PATIENT1 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT1
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT1 = 0

:AMBULAN_5756
if 
  $PARAMEDIC_CREATED_PATIENT2 > 0
goto_if_false @AMBULAN_6264
if 
  is_char_dead $PATIENT2
goto_if_false @AMBULAN_5812
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_5812
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_5862
explode_char_head $PATIENT2
remove_char_elegantly $PATIENT2
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_5862
if 
  $PARAMEDIC_CREATED_PATIENT2 == 3
goto_if_false @AMBULAN_5938
if 
  is_char_male $PATIENT2
goto_if_false @AMBULAN_5910
$PED_SEX_FLAG = 0
goto @AMBULAN_5917

:AMBULAN_5910
$PED_SEX_FLAG = 1

:AMBULAN_5917
get_char_coordinates $PATIENT2 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_5938
if 
  $PARAMEDIC_CREATED_PATIENT2 == 1
goto_if_false @AMBULAN_6026
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT2 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_6026
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_6026
set_char_obj_enter_car_as_passenger $PATIENT2 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT2 = 2

:AMBULAN_6026
if 
  $PARAMEDIC_CREATED_PATIENT2 == 2
goto_if_false @AMBULAN_6078
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT2 radius 25.0 25.0
goto_if_false @AMBULAN_6078
$PARAMEDIC_CREATED_PATIENT2 = 1

:AMBULAN_6078
if 
  $PARAMEDIC_CREATED_PATIENT2 == 2
goto_if_false @AMBULAN_6131
if 
  is_char_in_any_car $PATIENT2
goto_if_false @AMBULAN_6131
remove_blip $INJURED_PED_2_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT2 = 3

:AMBULAN_6131
if 
  $PARAMEDIC_CREATED_PATIENT2 == 3
goto_if_false @AMBULAN_6200
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_6200
set_char_obj_leave_car $PATIENT2 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT2 = 4

:AMBULAN_6200
if 
  $PARAMEDIC_CREATED_PATIENT2 == 4
goto_if_false @AMBULAN_6264
if 
  not is_char_in_any_car $PATIENT2
goto_if_false @AMBULAN_6264
set_char_obj_goto_coord_on_foot $PATIENT2 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT2
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT2 = 0

:AMBULAN_6264
if 
  $PARAMEDIC_CREATED_PATIENT3 > 0
goto_if_false @AMBULAN_6772
if 
  is_char_dead $PATIENT3
goto_if_false @AMBULAN_6320
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_6320
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_6370
explode_char_head $PATIENT3
remove_char_elegantly $PATIENT3
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_6370
if 
  $PARAMEDIC_CREATED_PATIENT3 == 3
goto_if_false @AMBULAN_6446
if 
  is_char_male $PATIENT3
goto_if_false @AMBULAN_6418
$PED_SEX_FLAG = 0
goto @AMBULAN_6425

:AMBULAN_6418
$PED_SEX_FLAG = 1

:AMBULAN_6425
get_char_coordinates $PATIENT3 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_6446
if 
  $PARAMEDIC_CREATED_PATIENT3 == 1
goto_if_false @AMBULAN_6534
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT3 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_6534
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_6534
set_char_obj_enter_car_as_passenger $PATIENT3 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT3 = 2

:AMBULAN_6534
if 
  $PARAMEDIC_CREATED_PATIENT3 == 2
goto_if_false @AMBULAN_6586
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT3 radius 25.0 25.0
goto_if_false @AMBULAN_6586
$PARAMEDIC_CREATED_PATIENT3 = 1

:AMBULAN_6586
if 
  $PARAMEDIC_CREATED_PATIENT3 == 2
goto_if_false @AMBULAN_6639
if 
  is_char_in_any_car $PATIENT3
goto_if_false @AMBULAN_6639
remove_blip $INJURED_PED_3_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT3 = 3

:AMBULAN_6639
if 
  $PARAMEDIC_CREATED_PATIENT3 == 3
goto_if_false @AMBULAN_6708
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_6708
set_char_obj_leave_car $PATIENT3 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT3 = 4

:AMBULAN_6708
if 
  $PARAMEDIC_CREATED_PATIENT3 == 4
goto_if_false @AMBULAN_6772
if 
  not is_char_in_any_car $PATIENT3
goto_if_false @AMBULAN_6772
set_char_obj_goto_coord_on_foot $PATIENT3 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT3
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT3 = 0

:AMBULAN_6772
if 
  $PARAMEDIC_CREATED_PATIENT4 > 0
goto_if_false @AMBULAN_7280
if 
  is_char_dead $PATIENT4
goto_if_false @AMBULAN_6828
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_6828
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_6878
explode_char_head $PATIENT4
remove_char_elegantly $PATIENT4
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_6878
if 
  $PARAMEDIC_CREATED_PATIENT4 == 3
goto_if_false @AMBULAN_6954
if 
  is_char_male $PATIENT4
goto_if_false @AMBULAN_6926
$PED_SEX_FLAG = 0
goto @AMBULAN_6933

:AMBULAN_6926
$PED_SEX_FLAG = 1

:AMBULAN_6933
get_char_coordinates $PATIENT4 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_6954
if 
  $PARAMEDIC_CREATED_PATIENT4 == 1
goto_if_false @AMBULAN_7042
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT4 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_7042
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_7042
set_char_obj_enter_car_as_passenger $PATIENT4 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT4 = 2

:AMBULAN_7042
if 
  $PARAMEDIC_CREATED_PATIENT4 == 2
goto_if_false @AMBULAN_7094
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT4 radius 25.0 25.0
goto_if_false @AMBULAN_7094
$PARAMEDIC_CREATED_PATIENT4 = 1

:AMBULAN_7094
if 
  $PARAMEDIC_CREATED_PATIENT4 == 2
goto_if_false @AMBULAN_7147
if 
  is_char_in_any_car $PATIENT4
goto_if_false @AMBULAN_7147
remove_blip $INJURED_PED_4_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT4 = 3

:AMBULAN_7147
if 
  $PARAMEDIC_CREATED_PATIENT4 == 3
goto_if_false @AMBULAN_7216
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_7216
set_char_obj_leave_car $PATIENT4 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT4 = 4

:AMBULAN_7216
if 
  $PARAMEDIC_CREATED_PATIENT4 == 4
goto_if_false @AMBULAN_7280
if 
  not is_char_in_any_car $PATIENT4
goto_if_false @AMBULAN_7280
set_char_obj_goto_coord_on_foot $PATIENT4 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT4
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT4 = 0

:AMBULAN_7280
if 
  $PARAMEDIC_CREATED_PATIENT5 > 0
goto_if_false @AMBULAN_7788
if 
  is_char_dead $PATIENT5
goto_if_false @AMBULAN_7336
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_7336
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_7386
explode_char_head $PATIENT5
remove_char_elegantly $PATIENT5
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_7386
if 
  $PARAMEDIC_CREATED_PATIENT5 == 3
goto_if_false @AMBULAN_7462
if 
  is_char_male $PATIENT5
goto_if_false @AMBULAN_7434
$PED_SEX_FLAG = 0
goto @AMBULAN_7441

:AMBULAN_7434
$PED_SEX_FLAG = 1

:AMBULAN_7441
get_char_coordinates $PATIENT5 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_7462
if 
  $PARAMEDIC_CREATED_PATIENT5 == 1
goto_if_false @AMBULAN_7550
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT5 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_7550
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_7550
set_char_obj_enter_car_as_passenger $PATIENT5 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT5 = 2

:AMBULAN_7550
if 
  $PARAMEDIC_CREATED_PATIENT5 == 2
goto_if_false @AMBULAN_7602
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT5 radius 25.0 25.0
goto_if_false @AMBULAN_7602
$PARAMEDIC_CREATED_PATIENT5 = 1

:AMBULAN_7602
if 
  $PARAMEDIC_CREATED_PATIENT5 == 2
goto_if_false @AMBULAN_7655
if 
  is_char_in_any_car $PATIENT5
goto_if_false @AMBULAN_7655
remove_blip $INJURED_PED_5_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT5 = 3

:AMBULAN_7655
if 
  $PARAMEDIC_CREATED_PATIENT5 == 3
goto_if_false @AMBULAN_7724
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_7724
set_char_obj_leave_car $PATIENT5 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT5 = 4

:AMBULAN_7724
if 
  $PARAMEDIC_CREATED_PATIENT5 == 4
goto_if_false @AMBULAN_7788
if 
  not is_char_in_any_car $PATIENT5
goto_if_false @AMBULAN_7788
set_char_obj_goto_coord_on_foot $PATIENT5 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT5
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT5 = 0

:AMBULAN_7788
if 
  $PARAMEDIC_CREATED_PATIENT6 > 0
goto_if_false @AMBULAN_8296
if 
  is_char_dead $PATIENT6
goto_if_false @AMBULAN_7844
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_7844
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_7894
explode_char_head $PATIENT6
remove_char_elegantly $PATIENT6
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_7894
if 
  $PARAMEDIC_CREATED_PATIENT6 == 3
goto_if_false @AMBULAN_7970
if 
  is_char_male $PATIENT6
goto_if_false @AMBULAN_7942
$PED_SEX_FLAG = 0
goto @AMBULAN_7949

:AMBULAN_7942
$PED_SEX_FLAG = 1

:AMBULAN_7949
get_char_coordinates $PATIENT6 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_7970
if 
  $PARAMEDIC_CREATED_PATIENT6 == 1
goto_if_false @AMBULAN_8058
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT6 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_8058
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_8058
set_char_obj_enter_car_as_passenger $PATIENT6 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT6 = 2

:AMBULAN_8058
if 
  $PARAMEDIC_CREATED_PATIENT6 == 2
goto_if_false @AMBULAN_8110
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT6 radius 25.0 25.0
goto_if_false @AMBULAN_8110
$PARAMEDIC_CREATED_PATIENT6 = 1

:AMBULAN_8110
if 
  $PARAMEDIC_CREATED_PATIENT6 == 2
goto_if_false @AMBULAN_8163
if 
  is_char_in_any_car $PATIENT6
goto_if_false @AMBULAN_8163
remove_blip $INJURED_PED_6_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT6 = 3

:AMBULAN_8163
if 
  $PARAMEDIC_CREATED_PATIENT6 == 3
goto_if_false @AMBULAN_8232
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_8232
set_char_obj_leave_car $PATIENT6 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT6 = 4

:AMBULAN_8232
if 
  $PARAMEDIC_CREATED_PATIENT6 == 4
goto_if_false @AMBULAN_8296
if 
  not is_char_in_any_car $PATIENT6
goto_if_false @AMBULAN_8296
set_char_obj_goto_coord_on_foot $PATIENT6 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT6
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT6 = 0

:AMBULAN_8296
if 
  $PARAMEDIC_CREATED_PATIENT7 > 0
goto_if_false @AMBULAN_8804
if 
  is_char_dead $PATIENT7
goto_if_false @AMBULAN_8352
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_8352
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_8402
explode_char_head $PATIENT7
remove_char_elegantly $PATIENT7
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_8402
if 
  $PARAMEDIC_CREATED_PATIENT7 == 3
goto_if_false @AMBULAN_8478
if 
  is_char_male $PATIENT7
goto_if_false @AMBULAN_8450
$PED_SEX_FLAG = 0
goto @AMBULAN_8457

:AMBULAN_8450
$PED_SEX_FLAG = 1

:AMBULAN_8457
get_char_coordinates $PATIENT7 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_8478
if 
  $PARAMEDIC_CREATED_PATIENT7 == 1
goto_if_false @AMBULAN_8566
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT7 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_8566
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_8566
set_char_obj_enter_car_as_passenger $PATIENT7 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT7 = 2

:AMBULAN_8566
if 
  $PARAMEDIC_CREATED_PATIENT7 == 2
goto_if_false @AMBULAN_8618
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT7 radius 25.0 25.0
goto_if_false @AMBULAN_8618
$PARAMEDIC_CREATED_PATIENT7 = 1

:AMBULAN_8618
if 
  $PARAMEDIC_CREATED_PATIENT7 == 2
goto_if_false @AMBULAN_8671
if 
  is_char_in_any_car $PATIENT7
goto_if_false @AMBULAN_8671
remove_blip $INJURED_PED_7_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT7 = 3

:AMBULAN_8671
if 
  $PARAMEDIC_CREATED_PATIENT7 == 3
goto_if_false @AMBULAN_8740
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_8740
set_char_obj_leave_car $PATIENT7 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT7 = 4

:AMBULAN_8740
if 
  $PARAMEDIC_CREATED_PATIENT7 == 4
goto_if_false @AMBULAN_8804
if 
  not is_char_in_any_car $PATIENT7
goto_if_false @AMBULAN_8804
set_char_obj_goto_coord_on_foot $PATIENT7 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT7
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT7 = 0

:AMBULAN_8804
if 
  $PARAMEDIC_CREATED_PATIENT8 > 0
goto_if_false @AMBULAN_9312
if 
  is_char_dead $PATIENT8
goto_if_false @AMBULAN_8860
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_8860
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_8910
explode_char_head $PATIENT8
remove_char_elegantly $PATIENT8
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_8910
if 
  $PARAMEDIC_CREATED_PATIENT8 == 3
goto_if_false @AMBULAN_8986
if 
  is_char_male $PATIENT8
goto_if_false @AMBULAN_8958
$PED_SEX_FLAG = 0
goto @AMBULAN_8965

:AMBULAN_8958
$PED_SEX_FLAG = 1

:AMBULAN_8965
get_char_coordinates $PATIENT8 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_8986
if 
  $PARAMEDIC_CREATED_PATIENT8 == 1
goto_if_false @AMBULAN_9074
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT8 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_9074
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_9074
set_char_obj_enter_car_as_passenger $PATIENT8 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT8 = 2

:AMBULAN_9074
if 
  $PARAMEDIC_CREATED_PATIENT8 == 2
goto_if_false @AMBULAN_9126
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT8 radius 25.0 25.0
goto_if_false @AMBULAN_9126
$PARAMEDIC_CREATED_PATIENT8 = 1

:AMBULAN_9126
if 
  $PARAMEDIC_CREATED_PATIENT8 == 2
goto_if_false @AMBULAN_9179
if 
  is_char_in_any_car $PATIENT8
goto_if_false @AMBULAN_9179
remove_blip $INJURED_PED_8_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT8 = 3

:AMBULAN_9179
if 
  $PARAMEDIC_CREATED_PATIENT8 == 3
goto_if_false @AMBULAN_9248
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_9248
set_char_obj_leave_car $PATIENT8 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT8 = 4

:AMBULAN_9248
if 
  $PARAMEDIC_CREATED_PATIENT8 == 4
goto_if_false @AMBULAN_9312
if 
  not is_char_in_any_car $PATIENT8
goto_if_false @AMBULAN_9312
set_char_obj_goto_coord_on_foot $PATIENT8 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT8
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT8 = 0

:AMBULAN_9312
if 
  $PARAMEDIC_CREATED_PATIENT9 > 0
goto_if_false @AMBULAN_9820
if 
  is_char_dead $PATIENT9
goto_if_false @AMBULAN_9368
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_9368
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_9418
explode_char_head $PATIENT9
remove_char_elegantly $PATIENT9
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_9418
if 
  $PARAMEDIC_CREATED_PATIENT9 == 3
goto_if_false @AMBULAN_9494
if 
  is_char_male $PATIENT9
goto_if_false @AMBULAN_9466
$PED_SEX_FLAG = 0
goto @AMBULAN_9473

:AMBULAN_9466
$PED_SEX_FLAG = 1

:AMBULAN_9473
get_char_coordinates $PATIENT9 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_9494
if 
  $PARAMEDIC_CREATED_PATIENT9 == 1
goto_if_false @AMBULAN_9582
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT9 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_9582
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_9582
set_char_obj_enter_car_as_passenger $PATIENT9 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT9 = 2

:AMBULAN_9582
if 
  $PARAMEDIC_CREATED_PATIENT9 == 2
goto_if_false @AMBULAN_9634
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT9 radius 25.0 25.0
goto_if_false @AMBULAN_9634
$PARAMEDIC_CREATED_PATIENT9 = 1

:AMBULAN_9634
if 
  $PARAMEDIC_CREATED_PATIENT9 == 2
goto_if_false @AMBULAN_9687
if 
  is_char_in_any_car $PATIENT9
goto_if_false @AMBULAN_9687
remove_blip $INJURED_PED_9_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT9 = 3

:AMBULAN_9687
if 
  $PARAMEDIC_CREATED_PATIENT9 == 3
goto_if_false @AMBULAN_9756
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_9756
set_char_obj_leave_car $PATIENT9 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT9 = 4

:AMBULAN_9756
if 
  $PARAMEDIC_CREATED_PATIENT9 == 4
goto_if_false @AMBULAN_9820
if 
  not is_char_in_any_car $PATIENT9
goto_if_false @AMBULAN_9820
set_char_obj_goto_coord_on_foot $PATIENT9 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT9
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT9 = 0

:AMBULAN_9820
if 
  $PARAMEDIC_CREATED_PATIENT10 > 0
goto_if_false @AMBULAN_10328
if 
  is_char_dead $PATIENT10
goto_if_false @AMBULAN_9876
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_9876
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_9926
explode_char_head $PATIENT10
remove_char_elegantly $PATIENT10
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_9926
if 
  $PARAMEDIC_CREATED_PATIENT10 == 3
goto_if_false @AMBULAN_10002
if 
  is_char_male $PATIENT10
goto_if_false @AMBULAN_9974
$PED_SEX_FLAG = 0
goto @AMBULAN_9981

:AMBULAN_9974
$PED_SEX_FLAG = 1

:AMBULAN_9981
get_char_coordinates $PATIENT10 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_10002
if 
  $PARAMEDIC_CREATED_PATIENT10 == 1
goto_if_false @AMBULAN_10090
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT10 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_10090
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_10090
set_char_obj_enter_car_as_passenger $PATIENT10 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT10 = 2

:AMBULAN_10090
if 
  $PARAMEDIC_CREATED_PATIENT10 == 2
goto_if_false @AMBULAN_10142
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT10 radius 25.0 25.0
goto_if_false @AMBULAN_10142
$PARAMEDIC_CREATED_PATIENT10 = 1

:AMBULAN_10142
if 
  $PARAMEDIC_CREATED_PATIENT10 == 2
goto_if_false @AMBULAN_10195
if 
  is_char_in_any_car $PATIENT10
goto_if_false @AMBULAN_10195
remove_blip $INJURED_PED_10_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT10 = 3

:AMBULAN_10195
if 
  $PARAMEDIC_CREATED_PATIENT10 == 3
goto_if_false @AMBULAN_10264
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_10264
set_char_obj_leave_car $PATIENT10 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT10 = 4

:AMBULAN_10264
if 
  $PARAMEDIC_CREATED_PATIENT10 == 4
goto_if_false @AMBULAN_10328
if 
  not is_char_in_any_car $PATIENT10
goto_if_false @AMBULAN_10328
set_char_obj_goto_coord_on_foot $PATIENT10 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT10
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT10 = 0

:AMBULAN_10328
if 
  $PARAMEDIC_CREATED_PATIENT11 > 0
goto_if_false @AMBULAN_10836
if 
  is_char_dead $PATIENT11
goto_if_false @AMBULAN_10384
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_10384
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_10434
explode_char_head $PATIENT11
remove_char_elegantly $PATIENT11
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_10434
if 
  $PARAMEDIC_CREATED_PATIENT11 == 3
goto_if_false @AMBULAN_10510
if 
  is_char_male $PATIENT11
goto_if_false @AMBULAN_10482
$PED_SEX_FLAG = 0
goto @AMBULAN_10489

:AMBULAN_10482
$PED_SEX_FLAG = 1

:AMBULAN_10489
get_char_coordinates $PATIENT11 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_10510
if 
  $PARAMEDIC_CREATED_PATIENT11 == 1
goto_if_false @AMBULAN_10598
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT11 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_10598
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_10598
set_char_obj_enter_car_as_passenger $PATIENT11 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT11 = 2

:AMBULAN_10598
if 
  $PARAMEDIC_CREATED_PATIENT11 == 2
goto_if_false @AMBULAN_10650
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT11 radius 25.0 25.0
goto_if_false @AMBULAN_10650
$PARAMEDIC_CREATED_PATIENT11 = 1

:AMBULAN_10650
if 
  $PARAMEDIC_CREATED_PATIENT11 == 2
goto_if_false @AMBULAN_10703
if 
  is_char_in_any_car $PATIENT11
goto_if_false @AMBULAN_10703
remove_blip $INJURED_PED_11_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT11 = 3

:AMBULAN_10703
if 
  $PARAMEDIC_CREATED_PATIENT11 == 3
goto_if_false @AMBULAN_10772
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_10772
set_char_obj_leave_car $PATIENT11 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT11 = 4

:AMBULAN_10772
if 
  $PARAMEDIC_CREATED_PATIENT11 == 4
goto_if_false @AMBULAN_10836
if 
  not is_char_in_any_car $PATIENT11
goto_if_false @AMBULAN_10836
set_char_obj_goto_coord_on_foot $PATIENT11 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT11
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT11 = 0

:AMBULAN_10836
if 
  $PARAMEDIC_CREATED_PATIENT12 > 0
goto_if_false @AMBULAN_11344
if 
  is_char_dead $PATIENT12
goto_if_false @AMBULAN_10892
print_now 'A_FAIL3' time 3000 1
goto @AMBULAN_11770

:AMBULAN_10892
if 
  $PARAMEDIC_MISION_TIMER == 0
goto_if_false @AMBULAN_10942
explode_char_head $PATIENT12
remove_char_elegantly $PATIENT12
print_now 'A_FAIL2' time 3000 1
goto @AMBULAN_11770

:AMBULAN_10942
if 
  $PARAMEDIC_CREATED_PATIENT12 == 3
goto_if_false @AMBULAN_11018
if 
  is_char_male $PATIENT12
goto_if_false @AMBULAN_10990
$PED_SEX_FLAG = 0
goto @AMBULAN_10997

:AMBULAN_10990
$PED_SEX_FLAG = 1

:AMBULAN_10997
get_char_coordinates $PATIENT12 position_to $SOUND_X $SOUND_Y $SOUND_Z
gosub @AMBULAN_11905

:AMBULAN_11018
if 
  $PARAMEDIC_CREATED_PATIENT12 == 1
goto_if_false @AMBULAN_11106
if 
  locate_player_in_car_char_3d $PLAYER_CHAR 0 $PATIENT12 in_car radius 10.0 10.0 2.0
goto_if_false @AMBULAN_11106
gosub @AMBULAN_12134
if 
  $CAR_FULL_FLAG == 0
goto_if_false @AMBULAN_11106
set_char_obj_enter_car_as_passenger $PATIENT12 go_to_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT12 = 2

:AMBULAN_11106
if 
  $PARAMEDIC_CREATED_PATIENT12 == 2
goto_if_false @AMBULAN_11158
if 
  not locate_player_in_car_char_2d $PLAYER_CHAR 0 $PATIENT12 radius 25.0 25.0
goto_if_false @AMBULAN_11158
$PARAMEDIC_CREATED_PATIENT12 = 1

:AMBULAN_11158
if 
  $PARAMEDIC_CREATED_PATIENT12 == 2
goto_if_false @AMBULAN_11211
if 
  is_char_in_any_car $PATIENT12
goto_if_false @AMBULAN_11211
remove_blip $INJURED_PED_12_BLIP
gosub @AMBULAN_12215
$PARAMEDIC_CREATED_PATIENT12 = 3

:AMBULAN_11211
if 
  $PARAMEDIC_CREATED_PATIENT12 == 3
goto_if_false @AMBULAN_11280
if 
  locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z radius 6.0 6.0 2.0
goto_if_false @AMBULAN_11280
set_char_obj_leave_car $PATIENT12 leave_car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CREATED_PATIENT12 = 4

:AMBULAN_11280
if 
  $PARAMEDIC_CREATED_PATIENT12 == 4
goto_if_false @AMBULAN_11344
if 
  not is_char_in_any_car $PATIENT12
goto_if_false @AMBULAN_11344
set_char_obj_goto_coord_on_foot $PATIENT12 walk_to $PARAMEDIC_INSIDE_HOSPITAL_X $PARAMEDIC_INSIDE_HOSPITAL_Y
mark_char_as_no_longer_needed $PATIENT12
gosub @AMBULAN_12298
$PARAMEDIC_CREATED_PATIENT12 = 0

:AMBULAN_11344
if 
  is_int_var_equal_to_int_var $SAVED_PEDS == $PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL
goto_if_false @AMBULAN_11763
set_var_int_to_var_int $SCORE_AM = $SAVED_PEDS
mult_int_var_by_int_var $SCORE_AM *= $PARAMEDIC_MISSION_LEVEL
$SCORE_AM *= 100
print_with_number_big 'REWARD' $SCORE_AM 6000 ms 6
add_int_var_to_int_var $PARAMEDIC_MISSIONS_DONE += $SAVED_PEDS
if 
  $AMBULANCE_PAGER_FLAG == 0
goto_if_false @AMBULAN_11479
if 
  $PARAMEDIC_MISSIONS_DONE > 34
goto_if_false @AMBULAN_11479
add_pager_message 'PAGEB13' 140 100 1
gosub @AMBULAN_12435
$AMBULANCE_PAGER_FLAG = 1

:AMBULAN_11479
if 
  $AMBULANCE_PAGER_FLAG == 1
goto_if_false @AMBULAN_11546
if 
  $PARAMEDIC_MISSIONS_DONE > 69
goto_if_false @AMBULAN_11546
add_pager_message 'PAGEB14' 140 100 1
gosub @AMBULAN_12437
$AMBULANCE_PAGER_FLAG = 2

:AMBULAN_11546
add_int_var_to_int_var $SAVED_PEDS_THIS_GO += $SAVED_PEDS
$PARAMEDIC_PEOPLE_TO_SAVE_THIS_LEVEL += 1
$SAVED_PEDS = 0
$PED_COUNTER = 0
add_score $PLAYER_CHAR money += $SCORE_AM
$HOSPITAL_BLIP_FLAG = 0
remove_blip $HOSPITAL_BLIP
remove_blip $INJURED_PED_1_BLIP
remove_blip $INJURED_PED_2_BLIP
remove_blip $INJURED_PED_3_BLIP
remove_blip $INJURED_PED_4_BLIP
remove_blip $INJURED_PED_5_BLIP
remove_blip $INJURED_PED_6_BLIP
remove_blip $INJURED_PED_7_BLIP
remove_blip $INJURED_PED_8_BLIP
remove_blip $INJURED_PED_9_BLIP
remove_blip $INJURED_PED_10_BLIP
remove_blip $INJURED_PED_11_BLIP
remove_blip $INJURED_PED_12_BLIP
register_ambulance_level $PARAMEDIC_MISSION_LEVEL
$PARAMEDIC_MISSION_LEVEL += 1
if 
  $PARAMEDIC_MISSION_LEVEL == 13
goto_if_false @AMBULAN_11756
print_big 'A_COMP1' 5000 ms 5
print_big 'A_COMP2' 6000 ms 6
add_pager_message 'A_COMP3' 140 100 1
play_mission_passed_tune 1
set_player_never_gets_tired $PLAYER_CHAR infinite_run_to 1
player_made_progress 1
$PROGRESS_100 += 1
return 

:AMBULAN_11756
goto @AMBULAN_336

:AMBULAN_11763
goto @AMBULAN_4718

:AMBULAN_11770
clear_onscreen_timer $PARAMEDIC_MISION_TIMER
clear_help 
print_big 'A_FAIL1' 5000 ms 5
print_with_number_big 'A_SAVES' $SAVED_PEDS_THIS_GO 6000 ms 6
$HOSPITAL_BLIP_FLAG = 0
remove_blip $HOSPITAL_BLIP
remove_blip $INJURED_PED_1_BLIP
remove_blip $INJURED_PED_2_BLIP
remove_blip $INJURED_PED_3_BLIP
remove_blip $INJURED_PED_4_BLIP
remove_blip $INJURED_PED_5_BLIP
remove_blip $INJURED_PED_6_BLIP
remove_blip $INJURED_PED_7_BLIP
remove_blip $INJURED_PED_8_BLIP
remove_blip $INJURED_PED_9_BLIP
remove_blip $INJURED_PED_10_BLIP
remove_blip $INJURED_PED_11_BLIP
remove_blip $INJURED_PED_12_BLIP
set_wanted_multiplier 1.0
$ONMISSION = 0
$FLAG_PLAYER_ON_AMBULANCE_MISSION = 0
mission_has_finished 
return 

:AMBULAN_11905
get_car_health $AMBULANCE_HEALTH_NOW = car $PARAMEDIC_MISION_CAR
if 
  is_int_var_greater_than_int_var $AMBULANCE_HEALTH_LAST > $AMBULANCE_HEALTH_NOW
goto_if_false @AMBULAN_12132
set_var_int_to_var_int $TIME_DROP = $AMBULANCE_HEALTH_LAST
sub_int_var_from_int_var $TIME_DROP -= $AMBULANCE_HEALTH_NOW
$TIME_DROP *= 50
sub_int_var_from_int_var $PARAMEDIC_MISION_TIMER -= $TIME_DROP
generate_random_int_in_range $RANDOM_SCREAM = random_int 0 2
if 
  $PED_SEX_FLAG == 0
goto_if_false @AMBULAN_12048
if 
  $RANDOM_SCREAM == 0
goto_if_false @AMBULAN_12028
add_one_off_sound 78 at $SOUND_X $SOUND_Y $SOUND_Z
goto @AMBULAN_12041

:AMBULAN_12028
add_one_off_sound 79 at $SOUND_X $SOUND_Y $SOUND_Z

:AMBULAN_12041
goto @AMBULAN_12099

:AMBULAN_12048
if 
  $RANDOM_SCREAM == 0
goto_if_false @AMBULAN_12086
add_one_off_sound 80 at $SOUND_X $SOUND_Y $SOUND_Z
goto @AMBULAN_12099

:AMBULAN_12086
add_one_off_sound 81 at $SOUND_X $SOUND_Y $SOUND_Z

:AMBULAN_12099
if 
  0 > $PARAMEDIC_MISION_TIMER
goto_if_false @AMBULAN_12124
$PARAMEDIC_MISION_TIMER = 0

:AMBULAN_12124
set_var_int_to_var_int $AMBULANCE_HEALTH_LAST = $AMBULANCE_HEALTH_NOW

:AMBULAN_12132
return 

:AMBULAN_12134
get_number_of_passengers $PEDS_IN_CAR = car $PARAMEDIC_MISION_CAR
get_maximum_number_of_passengers $MAX_PEDS_IN_CAR = car $PARAMEDIC_MISION_CAR
if 
  is_int_var_equal_to_int_var $PEDS_IN_CAR == $MAX_PEDS_IN_CAR
goto_if_false @AMBULAN_12198
print_now 'A_FULL' time 5000 1
$CAR_FULL_FLAG = 1
goto @AMBULAN_12205

:AMBULAN_12198
$CAR_FULL_FLAG = 0

:AMBULAN_12205
get_car_health $AMBULANCE_HEALTH_LAST = car $PARAMEDIC_MISION_CAR
return 

:AMBULAN_12215
if 
  $HOSPITAL_BLIP_FLAG == 0
goto_if_false @AMBULAN_12254
add_blip_for_coord $HOSPITAL_BLIP = create_checkpoint_at $PARAMEDIC_CHECKPOINT_X $PARAMEDIC_CHECKPOINT_Y $PARAMEDIC_CHECKPOINT_Z
$HOSPITAL_BLIP_FLAG = 1

:AMBULAN_12254
set_var_int_to_var_int $PARAMEDIC_TIME_BONUS = $TIME_CHUNK
$PARAMEDIC_TIME_BONUS /= 1000
print_with_number_big 'A_TIME' $PARAMEDIC_TIME_BONUS 6000 ms 6
add_int_var_to_int_var $PARAMEDIC_MISION_TIMER += $TIME_CHUNK
return 

:AMBULAN_12298
print_big 'A_PASS' 3000 ms 5
if 
  $BONUS_TIME_FLAG == 1
goto_if_false @AMBULAN_12411
set_var_int_to_var_int $PARAMEDIC_TIME_BONUS = $TIME_CHUNK
$PARAMEDIC_TIME_BONUS /= 1000
print_with_number_big 'A_TIME' $PARAMEDIC_TIME_BONUS 6000 ms 6
store_car_player_is_in $PARAMEDIC_MISION_CAR = player $PLAYER_CHAR
get_car_health $PARAMEDIC_CAR_HEALTH = car $PARAMEDIC_MISION_CAR
$PARAMEDIC_CAR_HEALTH += 110
set_car_health $PARAMEDIC_MISION_CAR health_to $PARAMEDIC_CAR_HEALTH
add_int_var_to_int_var $PARAMEDIC_MISION_TIMER += $TIME_CHUNK
$BONUS_TIME_FLAG += 1

:AMBULAN_12411
add_one_off_sound 94 at 0.0 0.0 0.0
$SAVED_PEDS += 1
register_life_saved 
return 

:AMBULAN_12435
return 

:AMBULAN_12437
return 

//-------------Mission 42---------------
// Originally: Trial By Fire

:FIRETRU
gosub @FIRETRU_16
gosub @FIRETRU_4347
terminate_this_script 

:FIRETRU_16
$ONMISSION = 1
$FLAG_PLAYER_ON_FIRE_MISSION = 1
script_name 'FIRETRU'
wait 0
$FIRE_MISSION_TIMER = 0
$FIRE_TO_EXTINGUISH = 0
$FIRE_MISSION_MARKER = 0
$FIRE_MISSION_CAR = 0
$FIRE_MISSION_CAR_TYPE = 0
$CAR_ON_FIRE_CREATED = 0
$PLAYER_IN_RANGE_FIRE = 0
$FLAG_GOT_RANGE_MSSG = 0
$FIRE_MISSION_REWARD = 250
$DISPLAYED_TIMER = 0
$NUMBER_FIRES_EXTINGUISHED = 0
$DISPLAYED_COUNTER = 0
$TOTAL_SCORE = 0
$FIRST_FIRE_FLAG = 0
$MISSION_END_BUTTON_FT = 0
$FIRE_LOCATION = 0
$TIME_DIVIDER_DIVIDER = 2.0

:FIRETRU_165
wait 0
set_wanted_multiplier 0.5
get_player_coordinates $PLAYER_CHAR position_to $PLAYER1_X $PLAYER1_Y $PLAYER1_Z
if 
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 97
goto_if_false @FIRETRU_228
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_228
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_282
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @FIRETRU_275
$MISSION_END_BUTTON_FT = 1

:FIRETRU_275
goto @FIRETRU_306

:FIRETRU_282
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @FIRETRU_306
$MISSION_END_BUTTON_FT = 1

:FIRETRU_306
if 
  $MISSION_END_BUTTON_FT == 1
goto_if_false @FIRETRU_427
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_388
if 
  not is_button_pressed 0 key_pressed 19
goto_if_false @FIRETRU_381
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_381
goto @FIRETRU_427

:FIRETRU_388
if 
  not is_button_pressed 0 key_pressed 14
goto_if_false @FIRETRU_427
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_427
if 
  is_collision_in_memory 1
goto_if_false @FIRETRU_493
generate_random_float_in_range $RANDOM_FIRE_X = random_float 778.0 1540.0
generate_random_float_in_range $RANDOM_FIRE_Y = random_float -1110.0 190.0
$FLAG_GOT_RANGE_MSSG = 0
$PLAYER_IN_RANGE_FIRE = 1
$FIRE_LOCATION = 1
$TIME_DIVIDER = 13.0

:FIRETRU_493
if 
  is_collision_in_memory 2
goto_if_false @FIRETRU_559
generate_random_float_in_range $RANDOM_FIRE_X = random_float -192.0 545.0
generate_random_float_in_range $RANDOM_FIRE_Y = random_float -1626.0 98.0
$FLAG_GOT_RANGE_MSSG = 0
$PLAYER_IN_RANGE_FIRE = 1
$FIRE_LOCATION = 2
$TIME_DIVIDER = 14.0

:FIRETRU_559
if 
  is_collision_in_memory 3
goto_if_false @FIRETRU_625
generate_random_float_in_range $RANDOM_FIRE_X = random_float -1300.0 -414.0
generate_random_float_in_range $RANDOM_FIRE_Y = random_float -608.75 380.0
$FLAG_GOT_RANGE_MSSG = 0
$PLAYER_IN_RANGE_FIRE = 1
$FIRE_LOCATION = 3
$TIME_DIVIDER = 11.0

:FIRETRU_625
if and
  $PLAYER_IN_RANGE_FIRE == 0
  $FLAG_GOT_RANGE_MSSG == 0
goto_if_false @FIRETRU_697
if 
  $FLAG_GOT_RANGE_MSSG == 0
goto_if_false @FIRETRU_690
print_now 'F_RANGE' time 5000 1
$FLAG_GOT_RANGE_MSSG = 1

:FIRETRU_690
goto @FIRETRU_4347

:FIRETRU_697
get_closest_car_node $FIRE_COORD_X $FIRE_COORD_Y $FIRE_COORD_Z to_car_path_coords_closest_to $RANDOM_FIRE_X $RANDOM_FIRE_Y $PLAYER1_Z
if and
  $FIRE_COORD_X > 670.0
  1035.0 > $FIRE_COORD_X
  $FIRE_COORD_Y > -953.0
  -912.0 > $FIRE_COORD_Y
goto_if_false @FIRETRU_767
goto @FIRETRU_165

:FIRETRU_767
if and
  $FIRE_COORD_X > 649.0
  1066.0 > $FIRE_COORD_X
  $FIRE_COORD_Y > 25.0
  217.0 > $FIRE_COORD_Y
goto_if_false @FIRETRU_817
goto @FIRETRU_165

:FIRETRU_817
if and
  $FIRE_COORD_X > -1611.5
  -745.25 > $FIRE_COORD_X
  $FIRE_COORD_Y > -1001.875
  -371.1875 > $FIRE_COORD_Y
goto_if_false @FIRETRU_867
goto @FIRETRU_165

:FIRETRU_867
if and
  $FIRE_COORD_X > -1255.375
  -1187.875 > $FIRE_COORD_X
  $FIRE_COORD_Y > 80.5625
  123.375 > $FIRE_COORD_Y
goto_if_false @FIRETRU_917
goto @FIRETRU_165

:FIRETRU_917
if and
  $FIRE_COORD_X > 1386.375
  1475.75 > $FIRE_COORD_X
  $FIRE_COORD_Y > -292.0625
  -168.0 > $FIRE_COORD_Y
goto_if_false @FIRETRU_967
goto @FIRETRU_165

:FIRETRU_967
if 
  $FIRE_LOCATION == 1
goto_if_false @FIRETRU_1035
if or
  not $FIRE_COORD_X > 778.0
  not 1540.0 > $FIRE_COORD_X
  not $FIRE_COORD_Y > -1110.0
  not 190.0 > $FIRE_COORD_Y
goto_if_false @FIRETRU_1035
goto @FIRETRU_165

:FIRETRU_1035
if 
  $FIRE_LOCATION == 2
goto_if_false @FIRETRU_1103
if or
  not $FIRE_COORD_X > -192.0
  not 545.0 > $FIRE_COORD_X
  not $FIRE_COORD_Y > -1626.0
  not 98.0 > $FIRE_COORD_Y
goto_if_false @FIRETRU_1103
goto @FIRETRU_165

:FIRETRU_1103
if 
  $FIRE_LOCATION == 3
goto_if_false @FIRETRU_1171
if or
  not $FIRE_COORD_X > -1300.0
  not -414.0 > $FIRE_COORD_X
  not $FIRE_COORD_Y > -608.75
  not 380.0 > $FIRE_COORD_Y
goto_if_false @FIRETRU_1171
goto @FIRETRU_165

:FIRETRU_1171
if 
  -1.0 > $FIRE_COORD_Z
goto_if_false @FIRETRU_1197
goto @FIRETRU_165

:FIRETRU_1197
set_var_float_to_var_float $DIFFERENCE_X_FLOAT = $PLAYER1_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT -= $FIRE_COORD_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT = $PLAYER1_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT -= $FIRE_COORD_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT *= $DIFFERENCE_X_FLOAT
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT *= $DIFFERENCE_Y_FLOAT
set_var_float_to_var_float $SUM_DIFFERENCE_XY = $DIFFERENCE_X_FLOAT
add_float_var_to_float_var $SUM_DIFFERENCE_XY += $DIFFERENCE_Y_FLOAT
sqrt $PLAYERS_DISTANCE_FROM_FIRE = square_root $SUM_DIFFERENCE_XY
if 
  200.0 > $PLAYERS_DISTANCE_FROM_FIRE
goto_if_false @FIRETRU_1295
goto @FIRETRU_165

:FIRETRU_1295
set_var_float_to_var_float $FIRE_TIME_LIMIT_FLOAT = $PLAYERS_DISTANCE_FROM_FIRE
div_float_var_by_float_var $FIRE_TIME_LIMIT_FLOAT /= $TIME_DIVIDER
add_float_var_to_float_var $TIME_DIVIDER += $TIME_DIVIDER_DIVIDER
$TIME_DIVIDER_DIVIDER += 2.0
$FIRE_TIME_LIMIT_FLOAT *= 1000.0
cset_var_int_to_var_float $INTERMEDIATE_INT = float_to_integer $FIRE_TIME_LIMIT_FLOAT
add_int_var_to_int_var $FIRE_MISSION_TIMER += $INTERMEDIATE_INT
if 
  $NUMBER_FIRES_EXTINGUISHED == 0
goto_if_false @FIRETRU_1400
if 
  50000 > $FIRE_MISSION_TIMER
goto_if_false @FIRETRU_1400
$FIRE_MISSION_TIMER = 50000

:FIRETRU_1400
generate_random_int_in_range $FIRE_MISSION_CAR_TYPE = random_int 90 140
if and
  $FIRE_MISSION_CAR_TYPE > 113
  128 > $FIRE_MISSION_CAR_TYPE
goto_if_false @FIRETRU_1443
goto @FIRETRU_1400

:FIRETRU_1443
if or
  $FIRE_MISSION_CAR_TYPE == 92
  $FIRE_MISSION_CAR_TYPE == 97
  $FIRE_MISSION_CAR_TYPE == 101
  $FIRE_MISSION_CAR_TYPE == 105
goto_if_false @FIRETRU_1489
goto @FIRETRU_1400

:FIRETRU_1489
if or
  $FIRE_MISSION_CAR_TYPE == 106
  $FIRE_MISSION_CAR_TYPE == 107
  $FIRE_MISSION_CAR_TYPE == 131
  $FIRE_MISSION_CAR_TYPE == 140
goto_if_false @FIRETRU_1537
goto @FIRETRU_1400

:FIRETRU_1537
request_model $FIRE_MISSION_CAR_TYPE
if 
  $FIRST_FIRE_FLAG == 1
goto_if_false @FIRETRU_1574
TIMERA = 0
goto @FIRETRU_1589

:FIRETRU_1574
TIMERA = 3001
$FIRST_FIRE_FLAG = 1

:FIRETRU_1589
if or
  not has_model_loaded $FIRE_MISSION_CAR_TYPE
  not TIMERA > 3000
goto_if_false @FIRETRU_1903
wait 0
if 
  1 > $FIRE_MISSION_TIMER
goto_if_false @FIRETRU_1657
print_now 'F_FAIL2' time 5000 1
goto @FIRETRU_4347

:FIRETRU_1657
if 
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 97
goto_if_false @FIRETRU_1697
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_1697
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_1751
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @FIRETRU_1744
$MISSION_END_BUTTON_FT = 1

:FIRETRU_1744
goto @FIRETRU_1775

:FIRETRU_1751
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @FIRETRU_1775
$MISSION_END_BUTTON_FT = 1

:FIRETRU_1775
if 
  $MISSION_END_BUTTON_FT == 1
goto_if_false @FIRETRU_1896
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_1857
if 
  not is_button_pressed 0 key_pressed 19
goto_if_false @FIRETRU_1850
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_1850
goto @FIRETRU_1896

:FIRETRU_1857
if 
  not is_button_pressed 0 key_pressed 14
goto_if_false @FIRETRU_1896
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_1896
goto @FIRETRU_1589

:FIRETRU_1903
generate_random_float_in_range $RANDOM_CAR_HEADING = random_float 0.0 359.875
if 
  $CAR_ON_FIRE_CREATED == 0
goto_if_false @FIRETRU_1956
create_car $FIRE_MISSION_CAR = create_car $FIRE_MISSION_CAR_TYPE at $FIRE_COORD_X $FIRE_COORD_Y $FIRE_COORD_Z
$CAR_ON_FIRE_CREATED = 1

:FIRETRU_1956
create_char_inside_car $FIRE_MISSION_DRIVER = create_actor 4 7 in_car $FIRE_MISSION_CAR
mark_model_as_no_longer_needed $FIRE_MISSION_CAR_TYPE
set_car_heading $FIRE_MISSION_CAR z_angle_to $RANDOM_CAR_HEADING
start_car_fire $FIRE_TO_EXTINGUISH = create_car $FIRE_MISSION_CAR
add_blip_for_car $FIRE_MISSION_MARKER = create_marker_above_car $FIRE_MISSION_CAR
car_set_idle $FIRE_MISSION_CAR
char_set_idle $FIRE_MISSION_DRIVER
set_car_cruise_speed $FIRE_MISSION_CAR max_speed_to 0.0
set_car_only_damaged_by_player $FIRE_MISSION_CAR immune_to_nonplayer 1
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'PORT_W'
goto_if_false @FIRETRU_2069
print_string_in_string_now 'F_START' 'PORT_W' time 5000 1

:FIRETRU_2069
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'PORT_S'
goto_if_false @FIRETRU_2116
print_string_in_string_now 'F_START' 'PORT_S' time 5000 1

:FIRETRU_2116
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'PORT_E'
goto_if_false @FIRETRU_2163
print_string_in_string_now 'F_START' 'PORT_E' time 5000 1

:FIRETRU_2163
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'PORT_I'
goto_if_false @FIRETRU_2210
print_string_in_string_now 'F_START' 'PORT_I' time 5000 1

:FIRETRU_2210
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'S_VIEW'
goto_if_false @FIRETRU_2257
print_string_in_string_now 'F_START' 'S_VIEW' time 5000 1

:FIRETRU_2257
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'CHINA'
goto_if_false @FIRETRU_2304
print_string_in_string_now 'F_START' 'CHINA' time 5000 1

:FIRETRU_2304
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'EASTBAY'
goto_if_false @FIRETRU_2351
print_string_in_string_now 'F_START' 'EASTBAY' time 5000 1

:FIRETRU_2351
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'LITTLEI'
goto_if_false @FIRETRU_2398
print_string_in_string_now 'F_START' 'LITTLEI' time 5000 1

:FIRETRU_2398
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'REDLIGH'
goto_if_false @FIRETRU_2445
print_string_in_string_now 'F_START' 'REDLIGH' time 5000 1

:FIRETRU_2445
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'TOWERS'
goto_if_false @FIRETRU_2492
print_string_in_string_now 'F_START' 'TOWERS' time 5000 1

:FIRETRU_2492
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'HARWOOD'
goto_if_false @FIRETRU_2539
print_string_in_string_now 'F_START' 'HARWOOD' time 5000 1

:FIRETRU_2539
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'ROADBR1'
goto_if_false @FIRETRU_2586
print_string_in_string_now 'F_START' 'ROADBR1' time 5000 1

:FIRETRU_2586
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'ROADBR2'
goto_if_false @FIRETRU_2633
print_string_in_string_now 'F_START' 'ROADBR2' time 5000 1

:FIRETRU_2633
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'STADIUM'
goto_if_false @FIRETRU_2680
print_string_in_string_now 'F_START' 'STADIUM' time 5000 1

:FIRETRU_2680
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'HOSPI_2'
goto_if_false @FIRETRU_2727
print_string_in_string_now 'F_START' 'HOSPI_2' time 5000 1

:FIRETRU_2727
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'UNIVERS'
goto_if_false @FIRETRU_2774
print_string_in_string_now 'F_START' 'UNIVERS' time 5000 1

:FIRETRU_2774
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'CONSTRU'
goto_if_false @FIRETRU_2821
print_string_in_string_now 'F_START' 'CONSTRU' time 5000 1

:FIRETRU_2821
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'PARK'
goto_if_false @FIRETRU_2868
print_string_in_string_now 'F_START' 'PARK' time 5000 1

:FIRETRU_2868
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'COM_EAS'
goto_if_false @FIRETRU_2915
print_string_in_string_now 'F_START' 'COM_EAS' time 5000 1

:FIRETRU_2915
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'SHOPING'
goto_if_false @FIRETRU_2962
print_string_in_string_now 'F_START' 'SHOPING' time 5000 1

:FIRETRU_2962
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'YAKUSA'
goto_if_false @FIRETRU_3009
print_string_in_string_now 'F_START' 'YAKUSA' time 5000 1

:FIRETRU_3009
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'AIRPORT'
goto_if_false @FIRETRU_3056
print_string_in_string_now 'F_START' 'AIRPORT' time 5000 1

:FIRETRU_3056
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'PROJECT'
goto_if_false @FIRETRU_3103
print_string_in_string_now 'F_START' 'PROJECT' time 5000 1

:FIRETRU_3103
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'SUB_IND'
goto_if_false @FIRETRU_3150
print_string_in_string_now 'F_START' 'SUB_IND' time 5000 1

:FIRETRU_3150
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'SWANKS'
goto_if_false @FIRETRU_3197
print_string_in_string_now 'F_START' 'SWANKS' time 5000 1

:FIRETRU_3197
if 
  is_char_in_zone $FIRE_MISSION_DRIVER in_zone 'BIG_DAM'
goto_if_false @FIRETRU_3244
print_string_in_string_now 'F_START' 'BIG_DAM' time 5000 1

:FIRETRU_3244
delete_char $FIRE_MISSION_DRIVER
if 
  $DISPLAYED_TIMER == 0
goto_if_false @FIRETRU_3279
display_onscreen_timer $FIRE_MISSION_TIMER
$DISPLAYED_TIMER = 1

:FIRETRU_3279
clear_help 
if 
  $DISPLAYED_AMBULANCE_HELP == 1
goto_if_false @FIRETRU_3423
get_controller_mode $CURRENT_CONTROLS
if 
  $CURRENT_CONTROLS == 0
goto_if_false @FIRETRU_3332
print_help 'SIREN_1'

:FIRETRU_3332
if 
  $CURRENT_CONTROLS == 1
goto_if_false @FIRETRU_3360
print_help 'SIREN_2'

:FIRETRU_3360
if 
  $CURRENT_CONTROLS == 2
goto_if_false @FIRETRU_3388
print_help 'SIREN_3'

:FIRETRU_3388
if 
  $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_3416
print_help 'SIREN_4'

:FIRETRU_3416
$DISPLAYED_AMBULANCE_HELP = 2

:FIRETRU_3423
if 
  $DISPLAYED_AMBULANCE_HELP == 0
goto_if_false @FIRETRU_3565
get_controller_mode $CURRENT_CONTROLS
if 
  $CURRENT_CONTROLS == 0
goto_if_false @FIRETRU_3474
print_help 'SPRAY_1'

:FIRETRU_3474
if 
  $CURRENT_CONTROLS == 1
goto_if_false @FIRETRU_3502
print_help 'SPRAY_1'

:FIRETRU_3502
if 
  $CURRENT_CONTROLS == 2
goto_if_false @FIRETRU_3530
print_help 'SPRAY_1'

:FIRETRU_3530
if 
  $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_3558
print_help 'SPRAY_4'

:FIRETRU_3558
$DISPLAYED_AMBULANCE_HELP = 1

:FIRETRU_3565
if 
  not is_script_fire_extinguished $FIRE_TO_EXTINGUISH
goto_if_false @FIRETRU_3941
wait 0
if 
  is_car_dead $FIRE_MISSION_CAR
goto_if_false @FIRETRU_3623
print_now 'F_FAIL2' time 5000 1
goto @FIRETRU_4347

:FIRETRU_3623
if 
  1 > $FIRE_MISSION_TIMER
goto_if_false @FIRETRU_3663
print_now 'F_FAIL2' time 5000 1
goto @FIRETRU_4347

:FIRETRU_3663
if 
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 97
goto_if_false @FIRETRU_3703
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_3703
get_car_health $CAR_ON_FIRE_HEALTH = car $FIRE_MISSION_CAR
if 
  900 > $CAR_ON_FIRE_HEALTH
goto_if_false @FIRETRU_3735
explode_car $FIRE_MISSION_CAR

:FIRETRU_3735
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_3789
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @FIRETRU_3782
$MISSION_END_BUTTON_FT = 1

:FIRETRU_3782
goto @FIRETRU_3813

:FIRETRU_3789
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @FIRETRU_3813
$MISSION_END_BUTTON_FT = 1

:FIRETRU_3813
if 
  $MISSION_END_BUTTON_FT == 1
goto_if_false @FIRETRU_3934
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @FIRETRU_3895
if 
  not is_button_pressed 0 key_pressed 19
goto_if_false @FIRETRU_3888
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_3888
goto @FIRETRU_3934

:FIRETRU_3895
if 
  not is_button_pressed 0 key_pressed 14
goto_if_false @FIRETRU_3934
print_now 'F_CANC' time 3000 1
goto @FIRETRU_4347

:FIRETRU_3934
goto @FIRETRU_3565

:FIRETRU_3941
goto @FIRETRU_3948

:FIRETRU_3948
$NUMBER_FIRES_EXTINGUISHED += 1
print_big 'F_PASS1' 5000 ms 5
print_with_number_big 'REWARD' $FIRE_MISSION_REWARD 6000 ms 6
register_fire_extinguished 
if 
  $FIRE_LOCATION == 1
goto_if_false @FIRETRU_4015
$PORTLAND_FIRE_MISSIONS += 1

:FIRETRU_4015
if 
  $FIRE_LOCATION == 2
goto_if_false @FIRETRU_4040
$STAUNTON_FIRE_MISSIONS += 1

:FIRETRU_4040
if 
  $FIRE_LOCATION == 3
goto_if_false @FIRETRU_4065
$SHORESIDE_FIRE_MISSIONS += 1

:FIRETRU_4065
if 
  $ALL_FIRE_MISSIONS_DONE == 0
goto_if_false @FIRETRU_4150
if or
  $PORTLAND_FIRE_MISSIONS > 19
  $STAUNTON_FIRE_MISSIONS > 19
  $SHORESIDE_FIRE_MISSIONS > 19
goto_if_false @FIRETRU_4150
add_pager_message 'PAGEB11' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$ALL_FIRE_MISSIONS_DONE = 1

:FIRETRU_4150
add_score $PLAYER_CHAR money += $FIRE_MISSION_REWARD
add_int_var_to_int_var $TOTAL_SCORE += $FIRE_MISSION_REWARD
$FIRE_MISSION_REWARD += 250
remove_all_script_fires 
remove_blip $FIRE_MISSION_MARKER
add_one_off_sound 94 at 0.0 0.0 0.0
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @FIRETRU_4242
store_car_player_is_in $PLAYERS_FIRETRUCK = player $PLAYER_CHAR
get_car_health $PLAYERS_FIRETRUCK_HEALTH = car $PLAYERS_FIRETRUCK
$PLAYERS_FIRETRUCK_HEALTH += 150
set_car_health $PLAYERS_FIRETRUCK health_to $PLAYERS_FIRETRUCK_HEALTH

:FIRETRU_4242
if 
  $DISPLAYED_COUNTER == 0
goto_if_false @FIRETRU_4282
display_onscreen_counter_with_string $NUMBER_FIRES_EXTINGUISHED 0 'F_EXTIN'
$DISPLAYED_COUNTER = 1

:FIRETRU_4282
if 
  $CAR_ON_FIRE_CREATED == 1
goto_if_false @FIRETRU_4335
mark_car_as_no_longer_needed $FIRE_MISSION_CAR
if 
  not is_car_dead $FIRE_MISSION_CAR
goto_if_false @FIRETRU_4328
set_car_only_damaged_by_player $FIRE_MISSION_CAR immune_to_nonplayer 0

:FIRETRU_4328
$CAR_ON_FIRE_CREATED = 0

:FIRETRU_4335
mark_model_as_no_longer_needed $FIRE_MISSION_CAR_TYPE
goto @FIRETRU_165

:FIRETRU_4347
clear_onscreen_timer $FIRE_MISSION_TIMER
clear_onscreen_counter $NUMBER_FIRES_EXTINGUISHED
print_big 'F_FAIL1' 5000 ms 5
print_with_number_big 'TSCORE' $TOTAL_SCORE 6000 ms 6
remove_all_script_fires 
remove_blip $FIRE_MISSION_MARKER
clear_help 
set_wanted_multiplier 1.0
if 
  $CAR_ON_FIRE_CREATED == 1
goto_if_false @FIRETRU_4462
if 
  not is_car_dead $FIRE_MISSION_CAR
goto_if_false @FIRETRU_4450
set_car_only_damaged_by_player $FIRE_MISSION_CAR immune_to_nonplayer 0
explode_car $FIRE_MISSION_CAR

:FIRETRU_4450
mark_car_as_no_longer_needed $FIRE_MISSION_CAR
$CAR_ON_FIRE_CREATED = 0

:FIRETRU_4462
mark_model_as_no_longer_needed $FIRE_MISSION_CAR_TYPE
$ONMISSION = 0
$FLAG_PLAYER_ON_FIRE_MISSION = 0
mission_has_finished 
return 

//-------------Mission 43---------------
// Originally: Big'N'Veiny

:COPCAR
gosub @COPCAR_16
gosub @COPCAR_6247
terminate_this_script 

:COPCAR_16
$ONMISSION = 1
$FLAG_PLAYER_ON_COP_MISSION = 1
$VIGILANTE_KILLS_NEEDED_FOR_BONUS = 5
script_name 'COPCAR'
$VIGILANTE_KILLS = 0
$GOT_COP_BREIF = 0
wait 0

:COPCAR_65
$VIGILANTE_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$VIGILANTE_CLOSE_ENOUGH_TO_POLICE_STATION = 0
$CAR_MODEL = 0
$VIGILANTE_CRIMINALS_CAR = 0
$CRIMINAL_CREATED_FLAG = 0
$CRIMINAL_FOR_VIGILANTE = 0
$VIGILANTE_CRIMINAL_MARKER = 0
$RANDOM_GUN = 0
$COP_TIME_LIMIT = 0
$GOT_CAR_CRIM_IS_IN = 0
$TIMER_RESET_FLAG = 0
$GAME_TIME_FLAG = 0
$MISSION_END_BUTTON = 0
$VIGILANTE_ISLAND_CRIMINAL_IS_ON = 0
$VIGILANTE_MISSION_ENDED = 0
$PLAYER_C_X = 0.0
$PLAYER_C_Y = 0.0
$PLAYER_C_Z = 0.0
$VIGILANTE_CRIMINAL_START_OUT_X = 0.0
$VIGILANTE_CRIMINAL_START_OUT_Y = 0.0
$CRIMINAL_COORD_X = 0.0
$CRIMINAL_COORD_Y = 0.0
$CRIMINAL_COORD_Z = 0.0
$DIFF_X_FLOAT = 0.0
$DIFF_Y_FLOAT = 0.0
$SUM_OF_DIFF_XY = 0.0
$PLAYERS_DISTANCE_FROM_CRIMINAL = 0.0
$COP_TIME_LIMIT_FLOAT = 0.0
$CRIMINAL_HEADING = 0.0
get_player_coordinates $PLAYER_CHAR position_to $PLAYER_C_X $PLAYER_C_Y $PLAYER_C_Z
request_model 95

:COPCAR_300
wait 0
if 
  $GOT_COP_BREIF == 0
goto_if_false @COPCAR_358
print_now 'LEGAL' time 3000 1
TIMERB = 0
$GOT_COP_BREIF = 1
goto @COPCAR_366

:COPCAR_358
TIMERB = 3000

:COPCAR_366
if 
  is_collision_in_memory 1
goto_if_false @COPCAR_424
generate_random_float_in_range $VIGILANTE_CRIMINAL_START_OUT_X = random_float 778.0 1540.0
generate_random_float_in_range $VIGILANTE_CRIMINAL_START_OUT_Y = random_float -1110.0 190.0
$VIGILANTE_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$VIGILANTE_CLOSE_ENOUGH_TO_POLICE_STATION = 1
$VIGILANTE_ISLAND_CRIMINAL_IS_ON = 1

:COPCAR_424
if 
  is_collision_in_memory 2
goto_if_false @COPCAR_482
generate_random_float_in_range $VIGILANTE_CRIMINAL_START_OUT_X = random_float -192.0 545.0
generate_random_float_in_range $VIGILANTE_CRIMINAL_START_OUT_Y = random_float -1626.0 98.0
$VIGILANTE_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$VIGILANTE_CLOSE_ENOUGH_TO_POLICE_STATION = 1
$VIGILANTE_ISLAND_CRIMINAL_IS_ON = 2

:COPCAR_482
if 
  is_collision_in_memory 3
goto_if_false @COPCAR_540
generate_random_float_in_range $VIGILANTE_CRIMINAL_START_OUT_X = random_float -1300.0 -414.0
generate_random_float_in_range $VIGILANTE_CRIMINAL_START_OUT_Y = random_float -608.75 380.0
$VIGILANTE_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 0
$VIGILANTE_CLOSE_ENOUGH_TO_POLICE_STATION = 1
$VIGILANTE_ISLAND_CRIMINAL_IS_ON = 3

:COPCAR_540
if 
  $VIGILANTE_CLOSE_ENOUGH_TO_POLICE_STATION == 0
goto_if_false @COPCAR_605
if 
  $VIGILANTE_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE == 0
goto_if_false @COPCAR_598
print_now 'C_RANGE' time 5000 1
$VIGILANTE_DISPLAYED_RADIO_OUT_OF_RANGE_MESSAGE = 1

:COPCAR_598
goto @COPCAR_6247

:COPCAR_605
gosub @COPCAR_6354
if 
  $VIGILANTE_MISSION_ENDED == 1
goto_if_false @COPCAR_637
goto @COPCAR_6247

:COPCAR_637
get_closest_car_node $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z to_car_path_coords_closest_to $VIGILANTE_CRIMINAL_START_OUT_X $VIGILANTE_CRIMINAL_START_OUT_Y $PLAYER_C_Z
if and
  $CRIMINAL_COORD_X > 1398.0
  1615.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -965.0
  -902.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_707
goto @COPCAR_300

:COPCAR_707
if and
  $CRIMINAL_COORD_X > 879.0
  892.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -427.0
  -407.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_757
goto @COPCAR_300

:COPCAR_757
if and
  $CRIMINAL_COORD_X > 944.75
  1017.063 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -1148.75
  -1076.563 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_807
goto @COPCAR_300

:COPCAR_807
if and
  $CRIMINAL_COORD_X > 920.75
  1004.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -754.1875
  -670.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_857
goto @COPCAR_300

:COPCAR_857
if and
  $CRIMINAL_COORD_X > 670.0
  1035.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -953.0
  -912.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_907
goto @COPCAR_300

:COPCAR_907
if and
  $CRIMINAL_COORD_X > 1364.0
  1641.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -1165.0
  -617.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_957
goto @COPCAR_300

:COPCAR_957
if and
  $CRIMINAL_COORD_X > 649.0
  1066.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > 25.0
  217.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1007
goto @COPCAR_300

:COPCAR_1007
if and
  $CRIMINAL_COORD_X > -1611.5
  -745.25 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -1001.875
  -371.1875 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1057
goto @COPCAR_300

:COPCAR_1057
if and
  $CRIMINAL_COORD_X > 939.75
  1035.563 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -901.25
  -828.1875 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1107
goto @COPCAR_300

:COPCAR_1107
if and
  $CRIMINAL_COORD_X > 1215.25
  1223.688 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -839.375
  -763.5625 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1157
goto @COPCAR_300

:COPCAR_1157
if and
  $CRIMINAL_COORD_X > 845.25
  899.5625 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -312.5625
  -295.6875 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1207
goto @COPCAR_300

:COPCAR_1207
if and
  $CRIMINAL_COORD_X > 113.25
  99.6875 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -1284.75
  -1273.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1257
goto @COPCAR_300

:COPCAR_1257
if and
  $CRIMINAL_COORD_X > 18.3125
  92.0 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -388.6875
  -312.375 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1307
goto @COPCAR_300

:COPCAR_1307
if and
  $CRIMINAL_COORD_X > -1255.375
  -1187.875 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > 80.5625
  123.375 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1357
goto @COPCAR_300

:COPCAR_1357
if and
  $CRIMINAL_COORD_X > 1386.375
  1475.75 > $CRIMINAL_COORD_X
  $CRIMINAL_COORD_Y > -292.0625
  -168.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1407
goto @COPCAR_300

:COPCAR_1407
if 
  $VIGILANTE_ISLAND_CRIMINAL_IS_ON == 1
goto_if_false @COPCAR_1475
if or
  not $CRIMINAL_COORD_X > 778.0
  not 1540.0 > $CRIMINAL_COORD_X
  not $CRIMINAL_COORD_Y > -1110.0
  not 190.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1475
goto @COPCAR_300

:COPCAR_1475
if 
  $VIGILANTE_ISLAND_CRIMINAL_IS_ON == 2
goto_if_false @COPCAR_1543
if or
  not $CRIMINAL_COORD_X > -192.0
  not 545.0 > $CRIMINAL_COORD_X
  not $CRIMINAL_COORD_Y > -1626.0
  not 98.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1543
goto @COPCAR_300

:COPCAR_1543
if 
  $VIGILANTE_ISLAND_CRIMINAL_IS_ON == 3
goto_if_false @COPCAR_1611
if or
  not $CRIMINAL_COORD_X > -1300.0
  not -414.0 > $CRIMINAL_COORD_X
  not $CRIMINAL_COORD_Y > -608.75
  not 380.0 > $CRIMINAL_COORD_Y
goto_if_false @COPCAR_1611
goto @COPCAR_300

:COPCAR_1611
if 
  -1.0 > $CRIMINAL_COORD_Z
goto_if_false @COPCAR_1637
goto @COPCAR_300

:COPCAR_1637
set_var_float_to_var_float $DIFF_X_FLOAT = $PLAYER_C_X
sub_float_var_from_float_var $DIFF_X_FLOAT -= $CRIMINAL_COORD_X
set_var_float_to_var_float $DIFF_Y_FLOAT = $PLAYER_C_Y
sub_float_var_from_float_var $DIFF_Y_FLOAT -= $CRIMINAL_COORD_Y
mult_float_var_by_float_var $DIFF_X_FLOAT *= $DIFF_X_FLOAT
mult_float_var_by_float_var $DIFF_Y_FLOAT *= $DIFF_Y_FLOAT
set_var_float_to_var_float $SUM_OF_DIFF_XY = $DIFF_X_FLOAT
add_float_var_to_float_var $SUM_OF_DIFF_XY += $DIFF_Y_FLOAT
sqrt $PLAYERS_DISTANCE_FROM_CRIMINAL = square_root $SUM_OF_DIFF_XY
if 
  150.0 > $PLAYERS_DISTANCE_FROM_CRIMINAL
goto_if_false @COPCAR_1735
goto @COPCAR_300

:COPCAR_1735
set_var_float_to_var_float $COP_TIME_LIMIT_FLOAT = $PLAYERS_DISTANCE_FROM_CRIMINAL
$COP_TIME_LIMIT_FLOAT /= 4.0
$COP_TIME_LIMIT_FLOAT *= 1000.0
cset_var_int_to_var_float $COP_TIME_LIMIT = float_to_integer $COP_TIME_LIMIT_FLOAT
if 
  120000 > $COP_TIME_LIMIT
goto_if_false @COPCAR_1798
$COP_TIME_LIMIT = 120000

:COPCAR_1798
generate_random_int_in_range $CAR_MODEL = random_int 90 140
if and
  $CAR_MODEL > 113
  128 > $CAR_MODEL
goto_if_false @COPCAR_1841
goto @COPCAR_1798

:COPCAR_1841
if 
  $CAR_MODEL == 97
goto_if_false @COPCAR_1866
goto @COPCAR_1798

:COPCAR_1866
if or
  $CAR_MODEL == 106
  $CAR_MODEL == 107
  $CAR_MODEL == 131
  $CAR_MODEL == 140
goto_if_false @COPCAR_1914
goto @COPCAR_1798

:COPCAR_1914
request_model $CAR_MODEL

:COPCAR_1919
if 
  not has_model_loaded $CAR_MODEL
goto_if_false @COPCAR_1978
wait 0
gosub @COPCAR_6354
if 
  $VIGILANTE_MISSION_ENDED == 1
goto_if_false @COPCAR_1971
goto @COPCAR_6247

:COPCAR_1971
goto @COPCAR_1919

:COPCAR_1978
generate_random_float_in_range $CRIMINAL_HEADING = random_float 0.0 359.875

:COPCAR_1989
if 
  not TIMERB > 3000
goto_if_false @COPCAR_2051
wait 0
gosub @COPCAR_6354
if 
  $VIGILANTE_MISSION_ENDED == 1
goto_if_false @COPCAR_2044
goto @COPCAR_6247

:COPCAR_2044
goto @COPCAR_1989

:COPCAR_2051
create_car $VIGILANTE_CRIMINALS_CAR = create_car $CAR_MODEL at $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
set_car_avoid_level_transitions $VIGILANTE_CRIMINALS_CAR avoid_level_transitions 1
set_car_health $VIGILANTE_CRIMINALS_CAR health_to 800
mark_model_as_no_longer_needed $CAR_MODEL
set_car_heading $VIGILANTE_CRIMINALS_CAR z_angle_to $CRIMINAL_HEADING
get_closest_char_node $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z to_ped_path_coords_closest_to $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
create_random_char $CRIMINAL_FOR_VIGILANTE = create_random_actor $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
set_char_is_chris_criminal $CRIMINAL_FOR_VIGILANTE is_criminal 1
warp_char_into_car $CRIMINAL_FOR_VIGILANTE in_car $VIGILANTE_CRIMINALS_CAR
set_char_running $CRIMINAL_FOR_VIGILANTE wander_state_to 1
set_char_only_damaged_by_player $CRIMINAL_FOR_VIGILANTE immune_to_nonplayer 1
clear_char_threat_search $CRIMINAL_FOR_VIGILANTE
set_char_personality $CRIMINAL_FOR_VIGILANTE ped_stats_to 16
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 1
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 2
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 4
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 8
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 16
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 32
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 64
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 128
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 512
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 256
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 2048
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 4096
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 8192
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 1024
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 65536
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 131072
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 262144
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 1048576
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 2097152
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 4194304
set_char_threat_search $CRIMINAL_FOR_VIGILANTE search_threat 16777216
set_char_heed_threats $CRIMINAL_FOR_VIGILANTE heed_threats 1
mark_car_as_no_longer_needed $VIGILANTE_CRIMINALS_CAR
if 
  $FLAG_STAUNTON_OPEN == 0
goto_if_false @COPCAR_2385
generate_random_int_in_range $RANDOM_GUN = random_int 0 5

:COPCAR_2385
if 
  $FLAG_STAUNTON_OPEN == 1
goto_if_false @COPCAR_2412
generate_random_int_in_range $RANDOM_GUN = random_int 2 6

:COPCAR_2412
if 
  $FLAG_SHORESIDE_OPEN == 1
goto_if_false @COPCAR_2439
generate_random_int_in_range $RANDOM_GUN = random_int 3 10

:COPCAR_2439
give_weapon_to_char $CRIMINAL_FOR_VIGILANTE weapon $RANDOM_GUN ammo 1000
add_blip_for_char $VIGILANTE_CRIMINAL_MARKER = create_marker_above_actor $CRIMINAL_FOR_VIGILANTE
clear_help 
if 
  $DISPLAYED_AMBULANCE_HELP == 0
goto_if_false @COPCAR_2602
get_controller_mode $CURRENT_CONTROLS
if 
  $CURRENT_CONTROLS == 0
goto_if_false @COPCAR_2511
print_help 'SIREN_1'

:COPCAR_2511
if 
  $CURRENT_CONTROLS == 1
goto_if_false @COPCAR_2539
print_help 'SIREN_2'

:COPCAR_2539
if 
  $CURRENT_CONTROLS == 2
goto_if_false @COPCAR_2567
print_help 'SIREN_3'

:COPCAR_2567
if 
  $CURRENT_CONTROLS == 3
goto_if_false @COPCAR_2595
print_help 'SIREN_4'

:COPCAR_2595
$DISPLAYED_AMBULANCE_HELP = 1

:COPCAR_2602
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'PORT_W'
goto_if_false @COPCAR_2649
print_string_in_string_now 'C_BREIF' 'PORT_W' time 5000 1

:COPCAR_2649
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'PORT_S'
goto_if_false @COPCAR_2696
print_string_in_string_now 'C_BREIF' 'PORT_S' time 5000 1

:COPCAR_2696
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'PORT_E'
goto_if_false @COPCAR_2743
print_string_in_string_now 'C_BREIF' 'PORT_E' time 5000 1

:COPCAR_2743
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'PORT_I'
goto_if_false @COPCAR_2790
print_string_in_string_now 'C_BREIF' 'PORT_I' time 5000 1

:COPCAR_2790
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'S_VIEW'
goto_if_false @COPCAR_2837
print_string_in_string_now 'C_BREIF' 'S_VIEW' time 5000 1

:COPCAR_2837
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'CHINA'
goto_if_false @COPCAR_2884
print_string_in_string_now 'C_BREIF' 'CHINA' time 5000 1

:COPCAR_2884
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'EASTBAY'
goto_if_false @COPCAR_2931
print_string_in_string_now 'C_BREIF' 'EASTBAY' time 5000 1

:COPCAR_2931
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'LITTLEI'
goto_if_false @COPCAR_2978
print_string_in_string_now 'C_BREIF' 'LITTLEI' time 5000 1

:COPCAR_2978
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'REDLIGH'
goto_if_false @COPCAR_3025
print_string_in_string_now 'C_BREIF' 'REDLIGH' time 5000 1

:COPCAR_3025
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'TOWERS'
goto_if_false @COPCAR_3072
print_string_in_string_now 'C_BREIF' 'TOWERS' time 5000 1

:COPCAR_3072
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'HARWOOD'
goto_if_false @COPCAR_3119
print_string_in_string_now 'C_BREIF' 'HARWOOD' time 5000 1

:COPCAR_3119
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'ROADBR1'
goto_if_false @COPCAR_3166
print_string_in_string_now 'C_BREIF' 'ROADBR1' time 5000 1

:COPCAR_3166
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'ROADBR2'
goto_if_false @COPCAR_3213
print_string_in_string_now 'C_BREIF' 'ROADBR2' time 5000 1

:COPCAR_3213
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'STADIUM'
goto_if_false @COPCAR_3260
print_string_in_string_now 'C_BREIF' 'STADIUM' time 5000 1

:COPCAR_3260
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'HOSPI_2'
goto_if_false @COPCAR_3307
print_string_in_string_now 'C_BREIF' 'HOSPI_2' time 5000 1

:COPCAR_3307
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'UNIVERS'
goto_if_false @COPCAR_3354
print_string_in_string_now 'C_BREIF' 'UNIVERS' time 5000 1

:COPCAR_3354
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'CONSTRU'
goto_if_false @COPCAR_3401
print_string_in_string_now 'C_BREIF' 'CONSTRU' time 5000 1

:COPCAR_3401
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'PARK'
goto_if_false @COPCAR_3448
print_string_in_string_now 'C_BREIF' 'PARK' time 5000 1

:COPCAR_3448
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'COM_EAS'
goto_if_false @COPCAR_3495
print_string_in_string_now 'C_BREIF' 'COM_EAS' time 5000 1

:COPCAR_3495
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'SHOPING'
goto_if_false @COPCAR_3542
print_string_in_string_now 'C_BREIF' 'SHOPING' time 5000 1

:COPCAR_3542
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'YAKUSA'
goto_if_false @COPCAR_3589
print_string_in_string_now 'C_BREIF' 'YAKUSA' time 5000 1

:COPCAR_3589
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'AIRPORT'
goto_if_false @COPCAR_3636
print_string_in_string_now 'C_BREIF' 'AIRPORT' time 5000 1

:COPCAR_3636
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'PROJECT'
goto_if_false @COPCAR_3683
print_string_in_string_now 'C_BREIF' 'PROJECT' time 5000 1

:COPCAR_3683
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'SUB_IND'
goto_if_false @COPCAR_3730
print_string_in_string_now 'C_BREIF' 'SUB_IND' time 5000 1

:COPCAR_3730
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'SWANKS'
goto_if_false @COPCAR_3777
print_string_in_string_now 'C_BREIF' 'SWANKS' time 5000 1

:COPCAR_3777
if 
  is_char_in_zone $CRIMINAL_FOR_VIGILANTE in_zone 'BIG_DAM'
goto_if_false @COPCAR_3824
print_string_in_string_now 'C_BREIF' 'BIG_DAM' time 5000 1

:COPCAR_3824
get_char_coordinates $CRIMINAL_FOR_VIGILANTE position_to $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
police_radio_message $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
TIMERB = 0
display_onscreen_timer $COP_TIME_LIMIT

:COPCAR_3861
if 
  not is_char_dead $CRIMINAL_FOR_VIGILANTE
goto_if_false @COPCAR_5166
if 
  1 > $COP_TIME_LIMIT
goto_if_false @COPCAR_3983
if 
  not locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 100.0 100.0
goto_if_false @COPCAR_3961
remove_blip $VIGILANTE_CRIMINAL_MARKER
delete_char $CRIMINAL_FOR_VIGILANTE
$CRIMINAL_CREATED_FLAG = 0
print_now 'C_ESCP' time 3000 1
goto @COPCAR_3976

:COPCAR_3961
print_now 'C_TIME' time 3000 1

:COPCAR_3976
goto @COPCAR_6247

:COPCAR_3983
gosub @COPCAR_6354
if 
  $VIGILANTE_MISSION_ENDED == 1
goto_if_false @COPCAR_4015
goto @COPCAR_6247

:COPCAR_4015
if 
  $GOT_CAR_CRIM_IS_IN == 0
goto_if_false @COPCAR_4056
if 
  not is_char_health_greater $CRIMINAL_FOR_VIGILANTE health > 70
goto_if_false @COPCAR_4056
set_char_obj_steal_any_car $CRIMINAL_FOR_VIGILANTE

:COPCAR_4056
if and
  is_char_in_any_car $CRIMINAL_FOR_VIGILANTE
  $GOT_CAR_CRIM_IS_IN == 0
goto_if_false @COPCAR_4133
mark_car_as_no_longer_needed $VIGILANTE_CRIMINALS_CAR
store_car_char_is_in $VIGILANTE_CRIMINALS_CAR = actor $CRIMINAL_FOR_VIGILANTE
set_upsidedown_car_not_damaged $VIGILANTE_CRIMINALS_CAR not_damaged_when_upside_down 1
set_car_driving_style $VIGILANTE_CRIMINALS_CAR traffic_behavior_to 2
set_car_cruise_speed $VIGILANTE_CRIMINALS_CAR max_speed_to 42.0
car_wander_randomly $VIGILANTE_CRIMINALS_CAR
set_car_avoid_level_transitions $VIGILANTE_CRIMINALS_CAR avoid_level_transitions 1
$GOT_CAR_CRIM_IS_IN = 1

:COPCAR_4133
if 
  $GOT_CAR_CRIM_IS_IN == 1
goto_if_false @COPCAR_4492
if 
  not is_char_in_any_car $CRIMINAL_FOR_VIGILANTE
goto_if_false @COPCAR_4492
generate_random_int_in_range $RANGE_INT = random_int 0 5
if 
  $RANGE_INT == 0
goto_if_false @COPCAR_4202
set_char_obj_flee_player_on_foot_till_safe $CRIMINAL_FOR_VIGILANTE avoid_player $PLAYER_CHAR

:COPCAR_4202
if 
  $RANGE_INT == 1
goto_if_false @COPCAR_4360
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 150.0 150.0
goto_if_false @COPCAR_4259
set_char_obj_steal_any_car $CRIMINAL_FOR_VIGILANTE
goto @COPCAR_4360

:COPCAR_4259
if 
  has_model_loaded 95
goto_if_false @COPCAR_4355
get_char_coordinates $CRIMINAL_FOR_VIGILANTE position_to $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
get_closest_car_node_with_heading $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z get_nearby_vector $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z $WARP_HEADING_COP
mark_car_as_no_longer_needed $VIGILANTE_CRIMINALS_CAR
create_car $VIGILANTE_CRIMINALS_CAR = create_car 95 at $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
set_car_heading $VIGILANTE_CRIMINALS_CAR z_angle_to $WARP_HEADING_COP
set_char_obj_enter_car_as_driver $CRIMINAL_FOR_VIGILANTE go_to_and_drive_car $VIGILANTE_CRIMINALS_CAR
goto @COPCAR_4360

:COPCAR_4355
set_char_obj_steal_any_car $CRIMINAL_FOR_VIGILANTE

:COPCAR_4360
if 
  $RANGE_INT == 2
goto_if_false @COPCAR_4386
set_char_obj_kill_player_any_means $CRIMINAL_FOR_VIGILANTE kill_player $PLAYER_CHAR

:COPCAR_4386
if 
  $RANGE_INT == 3
goto_if_false @COPCAR_4451
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @COPCAR_4443
store_car_player_is_in $PLAYERS_COP_CAR = player $PLAYER_CHAR
set_char_obj_destroy_car $CRIMINAL_FOR_VIGILANTE destroy_car $PLAYERS_COP_CAR
goto @COPCAR_4451

:COPCAR_4443
set_char_obj_kill_player_any_means $CRIMINAL_FOR_VIGILANTE kill_player $PLAYER_CHAR

:COPCAR_4451
if 
  $RANGE_INT == 4
goto_if_false @COPCAR_4485
generate_random_int_in_range $RANGE_INT = random_int 0 8
char_wander_dir $CRIMINAL_FOR_VIGILANTE wander_direction -1

:COPCAR_4485
$GOT_CAR_CRIM_IS_IN = 0

:COPCAR_4492
if 
  $GOT_CAR_CRIM_IS_IN == 1
goto_if_false @COPCAR_5155
if 
  not is_car_dead $VIGILANTE_CRIMINALS_CAR
goto_if_false @COPCAR_5155
if 
  TIMERB > 1000
goto_if_false @COPCAR_4728
TIMERB = 0
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 20.0 20.0
goto_if_false @COPCAR_4594
set_car_cruise_speed $VIGILANTE_CRIMINALS_CAR max_speed_to 46.0
goto @COPCAR_4728

:COPCAR_4594
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 50.0 50.0
goto_if_false @COPCAR_4636
set_car_cruise_speed $VIGILANTE_CRIMINALS_CAR max_speed_to 39.0
goto @COPCAR_4728

:COPCAR_4636
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 90.0 90.0
goto_if_false @COPCAR_4678
set_car_cruise_speed $VIGILANTE_CRIMINALS_CAR max_speed_to 32.0
goto @COPCAR_4728

:COPCAR_4678
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 130.0 130.0
goto_if_false @COPCAR_4720
set_car_cruise_speed $VIGILANTE_CRIMINALS_CAR max_speed_to 26.0
goto @COPCAR_4728

:COPCAR_4720
set_car_cruise_speed $VIGILANTE_CRIMINALS_CAR max_speed_to 18.0

:COPCAR_4728
if 
  is_car_stopped $VIGILANTE_CRIMINALS_CAR
goto_if_false @COPCAR_4958
if 
  $TIMER_RESET_FLAG == 0
goto_if_false @COPCAR_4776
TIMERA = 0
$TIMER_RESET_FLAG = 1

:COPCAR_4776
if and
  TIMERA > 8000
  $TIMER_RESET_FLAG == 1
goto_if_false @COPCAR_4958
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 90.0 90.0
goto_if_false @COPCAR_4851
set_char_obj_leave_car $CRIMINAL_FOR_VIGILANTE leave_car $VIGILANTE_CRIMINALS_CAR
$TIMER_RESET_FLAG = 0
goto @COPCAR_4958

:COPCAR_4851
if 
  not is_car_on_screen $VIGILANTE_CRIMINALS_CAR
goto_if_false @COPCAR_4958
get_car_coordinates $VIGILANTE_CRIMINALS_CAR position_to $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
get_closest_car_node_with_heading $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z get_nearby_vector $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z $WARP_HEADING_COP
if 
  not is_point_on_screen $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z 4.0
goto_if_false @COPCAR_4958
set_car_coordinates $VIGILANTE_CRIMINALS_CAR at $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
set_car_heading $VIGILANTE_CRIMINALS_CAR z_angle_to $WARP_HEADING_COP
$TIMER_RESET_FLAG = 0

:COPCAR_4958
if and
  is_car_upsidedown $VIGILANTE_CRIMINALS_CAR
  is_car_stopped $VIGILANTE_CRIMINALS_CAR
goto_if_false @COPCAR_5128
if 
  locate_player_any_means_char_2d $PLAYER_CHAR 0 $CRIMINAL_FOR_VIGILANTE radius 90.0 90.0
goto_if_false @COPCAR_5028
set_char_obj_leave_car $CRIMINAL_FOR_VIGILANTE leave_car $VIGILANTE_CRIMINALS_CAR
set_upsidedown_car_not_damaged $VIGILANTE_CRIMINALS_CAR not_damaged_when_upside_down 0
goto @COPCAR_5128

:COPCAR_5028
if 
  not is_car_on_screen $VIGILANTE_CRIMINALS_CAR
goto_if_false @COPCAR_5128
get_car_coordinates $VIGILANTE_CRIMINALS_CAR position_to $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
get_closest_car_node_with_heading $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z get_nearby_vector $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z $WARP_HEADING_COP
if 
  not is_point_on_screen $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z 4.0
goto_if_false @COPCAR_5128
set_car_coordinates $VIGILANTE_CRIMINALS_CAR at $CRIMINAL_COORD_X $CRIMINAL_COORD_Y $CRIMINAL_COORD_Z
set_car_heading $VIGILANTE_CRIMINALS_CAR z_angle_to $WARP_HEADING_COP

:COPCAR_5128
if 
  not is_car_health_greater $VIGILANTE_CRIMINALS_CAR health > 250
goto_if_false @COPCAR_5155
set_char_obj_leave_car $CRIMINAL_FOR_VIGILANTE leave_car $VIGILANTE_CRIMINALS_CAR

:COPCAR_5155
wait 0
goto @COPCAR_3861

:COPCAR_5166
mark_char_as_no_longer_needed $CRIMINAL_FOR_VIGILANTE
mark_car_as_no_longer_needed $VIGILANTE_CRIMINALS_CAR
$VIGILANTE_KILLS += 1
register_criminal_caught 
add_one_off_sound 94 at 0.0 0.0 0.0
if 
  $VIGILANTE_KILLS == 1
goto_if_false @COPCAR_5231
display_onscreen_counter_with_string $VIGILANTE_KILLS 0 'KILLS'

:COPCAR_5231
remove_blip $VIGILANTE_CRIMINAL_MARKER
set_var_int_to_var_int $VIGILANTE_REWARD = $VIGILANTE_KILLS
$VIGILANTE_REWARD *= 500
print_big 'C_PASS' 5000 ms 5
print_with_number_big 'REWARD' $VIGILANTE_REWARD 5000 ms 6
add_score $PLAYER_CHAR money += $VIGILANTE_REWARD
if 
  is_int_var_equal_to_int_var $VIGILANTE_KILLS == $VIGILANTE_KILLS_NEEDED_FOR_BONUS
goto_if_false @COPCAR_5408
set_var_int_to_var_int $VIGILANTE_BONUS = $VIGILANTE_KILLS
$VIGILANTE_BONUS *= 2
$VIGILANTE_BONUS *= 500
print_big_q 'C_VIGIL' 5000 ms 5
print_with_number_big_q 'REWARD' $VIGILANTE_BONUS 6000 ms 6
add_score $PLAYER_CHAR money += $VIGILANTE_BONUS
if 
  $VIGILANTE_KILLS_NEEDED_FOR_BONUS == 10
goto_if_false @COPCAR_5401
set_get_out_of_jail_free $PLAYER_CHAR get_out_of_jail_free 1

:COPCAR_5401
$VIGILANTE_KILLS_NEEDED_FOR_BONUS += 5

:COPCAR_5408
if 
  $VIGILANTE_ISLAND_CRIMINAL_IS_ON == 1
goto_if_false @COPCAR_5433
$PORTLAND_VIGILANTES_DONE += 1

:COPCAR_5433
if 
  $VIGILANTE_ISLAND_CRIMINAL_IS_ON == 2
goto_if_false @COPCAR_5458
$STAUNTON_VIGILANTES_DONE += 1

:COPCAR_5458
if 
  $VIGILANTE_ISLAND_CRIMINAL_IS_ON == 3
goto_if_false @COPCAR_5483
$SHORESIDE_VIGILANTES_DONE += 1

:COPCAR_5483
if 
  $NUM_PORTLAND_POLICE_BRIBES_AT_HIDEOUT == 0
goto_if_false @COPCAR_5554
if 
  $PORTLAND_VIGILANTES_DONE == 10
goto_if_false @COPCAR_5554
add_pager_message 'PAGEB12' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$NUM_PORTLAND_POLICE_BRIBES_AT_HIDEOUT = 1

:COPCAR_5554
if 
  $NUM_PORTLAND_POLICE_BRIBES_AT_HIDEOUT == 1
goto_if_false @COPCAR_5625
if 
  $PORTLAND_VIGILANTES_DONE == 20
goto_if_false @COPCAR_5625
add_pager_message 'PAGEB12' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$NUM_PORTLAND_POLICE_BRIBES_AT_HIDEOUT = 2

:COPCAR_5625
if 
  $NUM_STAUNTON_POLICE_BRIBES_AT_HIDEOUT == 0
goto_if_false @COPCAR_5696
if 
  $STAUNTON_VIGILANTES_DONE == 10
goto_if_false @COPCAR_5696
add_pager_message 'PAGEB12' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$NUM_STAUNTON_POLICE_BRIBES_AT_HIDEOUT = 1

:COPCAR_5696
if 
  $NUM_STAUNTON_POLICE_BRIBES_AT_HIDEOUT == 1
goto_if_false @COPCAR_5767
if 
  $STAUNTON_VIGILANTES_DONE == 20
goto_if_false @COPCAR_5767
add_pager_message 'PAGEB12' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$NUM_STAUNTON_POLICE_BRIBES_AT_HIDEOUT = 2

:COPCAR_5767
if 
  $NUM_SHORESIDE_POLICE_BRIBES_AT_HIDEOUT == 0
goto_if_false @COPCAR_5838
if 
  $SHORESIDE_VIGILANTES_DONE == 10
goto_if_false @COPCAR_5838
add_pager_message 'PAGEB12' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$NUM_SHORESIDE_POLICE_BRIBES_AT_HIDEOUT = 1

:COPCAR_5838
if 
  $NUM_SHORESIDE_POLICE_BRIBES_AT_HIDEOUT == 1
goto_if_false @COPCAR_5909
if 
  $SHORESIDE_VIGILANTES_DONE == 20
goto_if_false @COPCAR_5909
add_pager_message 'PAGEB12' 140 100 1
player_made_progress 1
$PROGRESS_100 += 1
$NUM_SHORESIDE_POLICE_BRIBES_AT_HIDEOUT = 2

:COPCAR_5909
if and
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 117
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 122
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 107
goto_if_false @COPCAR_6146
if 
  $GAME_TIME_FLAG == 0
goto_if_false @COPCAR_6024
get_game_timer $GAME_TIMER_START
if 
  $COP_TIME_LIMIT > 60000
goto_if_false @COPCAR_6009
$COPCAR_TIMER = 60000
goto @COPCAR_6017

:COPCAR_6009
set_var_int_to_var_int $COPCAR_TIMER = $COP_TIME_LIMIT

:COPCAR_6017
$GAME_TIME_FLAG = 1

:COPCAR_6024
get_game_timer $GAME_TIME_PRESENT
set_var_int_to_var_int $GAME_TIME_DIFFERENCE = $GAME_TIME_PRESENT
sub_int_var_from_int_var $GAME_TIME_DIFFERENCE -= $GAME_TIMER_START
sub_int_var_from_int_var $COPCAR_TIMER -= $GAME_TIME_DIFFERENCE
set_var_int_to_var_int $GAME_TIMER_START = $GAME_TIME_PRESENT
set_var_int_to_var_int $TIMER_IN_SECS = $COPCAR_TIMER
$TIMER_IN_SECS /= 1000
print_with_number_now 'COPCART' $TIMER_IN_SECS time 200 1
if 
  1 > $TIMER_IN_SECS
goto_if_false @COPCAR_6135
print_now 'C_TIME' time 3000 1
goto @COPCAR_6247

:COPCAR_6135
wait 0
goto @COPCAR_5909

:COPCAR_6146
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @COPCAR_6193
store_car_player_is_in $PLAYERS_COP_CAR = player $PLAYER_CHAR
get_car_health $PLAYERS_COP_CAR_HEALTH = car $PLAYERS_COP_CAR
$PLAYERS_COP_CAR_HEALTH += 100
set_car_health $PLAYERS_COP_CAR health_to $PLAYERS_COP_CAR_HEALTH

:COPCAR_6193
goto @COPCAR_6200

:COPCAR_6200
clear_onscreen_timer $COP_TIME_LIMIT
remove_blip $VIGILANTE_CRIMINAL_MARKER
if 
  $CRIMINAL_CREATED_FLAG == 1
goto_if_false @COPCAR_6240
mark_char_as_no_longer_needed $CRIMINAL_FOR_VIGILANTE
$CRIMINAL_CREATED_FLAG = 0

:COPCAR_6240
goto @COPCAR_65

:COPCAR_6247
print_big 'C_FAIL' 5000 ms 5
print_with_number_big 'C_KILLS' $VIGILANTE_KILLS 6000 ms 6
clear_onscreen_timer $COP_TIME_LIMIT
clear_onscreen_counter $VIGILANTE_KILLS
remove_blip $VIGILANTE_CRIMINAL_MARKER
clear_help 
mark_model_as_no_longer_needed 95
mark_model_as_no_longer_needed $CAR_MODEL
if 
  $CRIMINAL_CREATED_FLAG == 1
goto_if_false @COPCAR_6336
mark_char_as_no_longer_needed $CRIMINAL_FOR_VIGILANTE
$CRIMINAL_CREATED_FLAG = 0

:COPCAR_6336
$ONMISSION = 0
$FLAG_PLAYER_ON_COP_MISSION = 0
mission_has_finished 
return 

:COPCAR_6354
if and
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 117
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 122
  not is_player_in_model $PLAYER_CHAR driving_vehicle_type 107
goto_if_false @COPCAR_6582
if 
  $GAME_TIME_FLAG == 0
goto_if_false @COPCAR_6469
get_game_timer $GAME_TIMER_START
if 
  $COP_TIME_LIMIT > 60000
goto_if_false @COPCAR_6454
$COPCAR_TIMER = 60000
goto @COPCAR_6462

:COPCAR_6454
set_var_int_to_var_int $COPCAR_TIMER = $COP_TIME_LIMIT

:COPCAR_6462
$GAME_TIME_FLAG = 1

:COPCAR_6469
get_game_timer $GAME_TIME_PRESENT
set_var_int_to_var_int $GAME_TIME_DIFFERENCE = $GAME_TIME_PRESENT
sub_int_var_from_int_var $GAME_TIME_DIFFERENCE -= $GAME_TIMER_START
sub_int_var_from_int_var $COPCAR_TIMER -= $GAME_TIME_DIFFERENCE
set_var_int_to_var_int $GAME_TIMER_START = $GAME_TIME_PRESENT
set_var_int_to_var_int $TIMER_IN_SECS = $COPCAR_TIMER
$TIMER_IN_SECS /= 1000
print_with_number_now 'COPCART' $TIMER_IN_SECS time 200 1
if 
  1 > $TIMER_IN_SECS
goto_if_false @COPCAR_6582
print_now 'C_TIME' time 3000 1
$VIGILANTE_MISSION_ENDED = 1
return 

:COPCAR_6582
get_controller_mode $CURRENT_CONTROLS
if or
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 116
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 117
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 122
  is_player_in_model $PLAYER_CHAR driving_vehicle_type 107
goto_if_false @COPCAR_6706
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @COPCAR_6675
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @COPCAR_6668
$MISSION_END_BUTTON = 1

:COPCAR_6668
goto @COPCAR_6699

:COPCAR_6675
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @COPCAR_6699
$MISSION_END_BUTTON = 1

:COPCAR_6699
$GAME_TIME_FLAG = 0

:COPCAR_6706
if 
  $MISSION_END_BUTTON == 1
goto_if_false @COPCAR_6831
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @COPCAR_6790
if 
  not is_button_pressed 0 key_pressed 19
goto_if_false @COPCAR_6783
print_now 'C_CANC' time 3000 1
$VIGILANTE_MISSION_ENDED = 1
return 

:COPCAR_6783
goto @COPCAR_6831

:COPCAR_6790
if 
  not is_button_pressed 0 key_pressed 14
goto_if_false @COPCAR_6831
print_now 'C_CANC' time 3000 1
$VIGILANTE_MISSION_ENDED = 1
return 

:COPCAR_6831
return 

//-------------Mission 44---------------
// Originally: Sayonara Salvatore

:TAXI
gosub @TAXI_16
gosub @TAXI_6939
terminate_this_script 

:TAXI_16
script_name 'TAXI'
set_deatharrest_state 0
$ONMISSION = 1
$TAXI_COUNTDOWN_ALREADY_STARTED = 0
$TAXI_MISSION_TIMER = 0
$FARES_INROW_COMPLETED = 0
$TOTAL_TAXI_EARNINGS = 0
$PED_FOR_TAXIMISSION = -1
$SPRAY_BLIP_ONSCREEN = 0
$TAXI_FUCKED_FLAG = 0
$FARES_FOR_NEXT_INROW_BONUS = 5
$FARES_INROW_BONUS = 2000
wait 0
display_onscreen_counter_with_string $FARES_INROW_COMPLETED 0 'FARES'
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_143
goto @TAXI_6523

:TAXI_143
if 
  is_player_in_any_car $PLAYER_CHAR
goto_if_false @TAXI_174
store_car_player_is_in $TAXI_MISSION_CAR = player $PLAYER_CHAR
goto @TAXI_181

:TAXI_174
goto @TAXI_6523

:TAXI_181
set_taxi_lights $TAXI_MISSION_CAR taxi_available_light_to 1
print_now 'TAXI1' time 1500 1
wait 0

:TAXI_207
if 
  $DISPLAYED_TAXI_HELP_MESSAGE == 0
goto_if_false @TAXI_242
print_help 'TAXIH1'
$DISPLAYED_TAXI_HELP_MESSAGE = 1

:TAXI_242
$TAXI_EARNING = 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_272
goto @TAXI_6523

:TAXI_272
if 
  is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_295
goto @TAXI_6523

:TAXI_295
if 
  not is_player_in_car $PLAYER_CHAR in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_321
goto @TAXI_6523

:TAXI_321
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @TAXI_377
if and
  is_button_pressed 0 key_pressed 19
  $ONMISSION == 1
goto_if_false @TAXI_370
goto @TAXI_6318

:TAXI_370
goto @TAXI_408

:TAXI_377
if and
  is_button_pressed 0 key_pressed 14
  $ONMISSION == 1
goto_if_false @TAXI_408
goto @TAXI_6318

:TAXI_408
if and
  $TAXI_COUNTDOWN_ALREADY_STARTED == 1
  $TAXI_MISSION_TIMER == 0
goto_if_false @TAXI_440
goto @TAXI_6523

:TAXI_440
if 
  is_collision_in_memory 1
goto_if_false @TAXI_468
get_random_char_in_zone $PED_FOR_TAXIMISSION in_zone 'IND_ZON'

:TAXI_468
if 
  is_collision_in_memory 2
goto_if_false @TAXI_496
get_random_char_in_zone $PED_FOR_TAXIMISSION in_zone 'COM_ZON'

:TAXI_496
if 
  is_collision_in_memory 3
goto_if_false @TAXI_524
get_random_char_in_zone $PED_FOR_TAXIMISSION in_zone 'SUB_ZON'

:TAXI_524
if 
  $PED_FOR_TAXIMISSION == -1
goto_if_false @TAXI_553
wait 0
goto @TAXI_207

:TAXI_553
char_set_idle $PED_FOR_TAXIMISSION
clear_char_threat_search $PED_FOR_TAXIMISSION
set_char_heed_threats $PED_FOR_TAXIMISSION heed_threats 0
add_blip_for_char $BLIP1_CT1 = create_marker_above_actor $PED_FOR_TAXIMISSION
set_char_obj_hail_taxi $PED_FOR_TAXIMISSION

:TAXI_583
if or
  not locate_player_in_car_char_3d $PLAYER_CHAR 0 $PED_FOR_TAXIMISSION in_car radius 7.0 7.0 2.0
  not is_car_stopped $TAXI_MISSION_CAR
goto_if_false @TAXI_949
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_645
goto @TAXI_6523

:TAXI_645
if 
  is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_668
goto @TAXI_6523

:TAXI_668
if 
  is_char_dead $PED_FOR_TAXIMISSION
goto_if_false @TAXI_691
goto @TAXI_6457

:TAXI_691
if 
  not is_player_in_car $PLAYER_CHAR in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_717
goto @TAXI_6523

:TAXI_717
if 
  not locate_player_in_car_char_3d $PLAYER_CHAR 0 $PED_FOR_TAXIMISSION in_car radius 90.0 90.0 20.0
goto_if_false @TAXI_754
goto @TAXI_6457

:TAXI_754
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @TAXI_810
if and
  is_button_pressed 0 key_pressed 19
  $ONMISSION == 1
goto_if_false @TAXI_803
goto @TAXI_6318

:TAXI_803
goto @TAXI_841

:TAXI_810
if and
  is_button_pressed 0 key_pressed 14
  $ONMISSION == 1
goto_if_false @TAXI_841
goto @TAXI_6318

:TAXI_841
if and
  $TAXI_COUNTDOWN_ALREADY_STARTED == 1
  $TAXI_MISSION_TIMER == 0
goto_if_false @TAXI_873
goto @TAXI_6523

:TAXI_873
if and
  is_car_health_greater $TAXI_MISSION_CAR health > 500
  $SPRAY_BLIP_ONSCREEN == 1
goto_if_false @TAXI_918
remove_blip $P_AND_S_MARKER
$SPRAY_BLIP_ONSCREEN = 0
$TAXI_FUCKED_FLAG = 0

:TAXI_918
if 
  not is_char_dead $PED_FOR_TAXIMISSION
goto_if_false @TAXI_942
turn_char_to_face_player $PED_FOR_TAXIMISSION look_at_player $PLAYER_CHAR

:TAXI_942
goto @TAXI_583

:TAXI_949
if 
  not is_car_health_greater $TAXI_MISSION_CAR health > 500
goto_if_false @TAXI_1120
print_now 'TAXI7' time 4000 1
if 
  $SPRAY_BLIP_ONSCREEN == 0
goto_if_false @TAXI_1113
remove_blip $P_AND_S_MARKER
if 
  is_collision_in_memory 1
goto_if_false @TAXI_1037
add_sprite_blip_for_coord $P_AND_S_MARKER = create_marker 18 at 925.0 -359.5 -100.0

:TAXI_1037
if 
  is_collision_in_memory 2
goto_if_false @TAXI_1068
add_sprite_blip_for_coord $P_AND_S_MARKER = create_marker 18 at 379.0 -493.75 -100.0

:TAXI_1068
if 
  is_collision_in_memory 3
goto_if_false @TAXI_1099
add_sprite_blip_for_coord $P_AND_S_MARKER = create_marker 18 at -1128.0 32.5 -100.0

:TAXI_1099
$SPRAY_BLIP_ONSCREEN = 1
$TAXI_FUCKED_FLAG = 1

:TAXI_1113
goto @TAXI_6457

:TAXI_1120
set_char_running $PED_FOR_TAXIMISSION wander_state_to 1
set_char_obj_enter_car_as_passenger $PED_FOR_TAXIMISSION go_to_car $TAXI_MISSION_CAR

:TAXI_1135
if 
  not is_char_in_car $PED_FOR_TAXIMISSION in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_1491
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_1181
goto @TAXI_6523

:TAXI_1181
if 
  is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_1204
goto @TAXI_6523

:TAXI_1204
if 
  is_char_dead $PED_FOR_TAXIMISSION
goto_if_false @TAXI_1227
goto @TAXI_6457

:TAXI_1227
if 
  not is_player_in_car $PLAYER_CHAR in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_1253
goto @TAXI_6523

:TAXI_1253
if 
  not locate_player_in_car_char_3d $PLAYER_CHAR 0 $PED_FOR_TAXIMISSION in_car radius 90.0 90.0 20.0
goto_if_false @TAXI_1290
goto @TAXI_6457

:TAXI_1290
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @TAXI_1346
if and
  is_button_pressed 0 key_pressed 19
  $ONMISSION == 1
goto_if_false @TAXI_1339
goto @TAXI_6318

:TAXI_1339
goto @TAXI_1377

:TAXI_1346
if and
  is_button_pressed 0 key_pressed 14
  $ONMISSION == 1
goto_if_false @TAXI_1377
goto @TAXI_6318

:TAXI_1377
if and
  $TAXI_COUNTDOWN_ALREADY_STARTED == 1
  $TAXI_MISSION_TIMER == 0
goto_if_false @TAXI_1409
goto @TAXI_6523

:TAXI_1409
if and
  is_car_health_greater $TAXI_MISSION_CAR health > 500
  $SPRAY_BLIP_ONSCREEN == 1
goto_if_false @TAXI_1447
remove_blip $P_AND_S_MARKER
$SPRAY_BLIP_ONSCREEN = 0

:TAXI_1447
if 
  not locate_player_in_car_char_3d $PLAYER_CHAR 0 $PED_FOR_TAXIMISSION in_car radius 7.0 7.0 2.0
goto_if_false @TAXI_1484
goto @TAXI_583

:TAXI_1484
goto @TAXI_1135

:TAXI_1491
get_char_coordinates $PED_FOR_TAXIMISSION position_to $TAXI_PED_X $TAXI_PED_Y $TAXI_PED_Z
remove_blip $BLIP1_CT1
set_taxi_lights $TAXI_MISSION_CAR taxi_available_light_to 0

:TAXI_1517
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_1544
goto @TAXI_6523

:TAXI_1544
if 
  is_collision_in_memory 1
goto_if_false @TAXI_2711
generate_random_int_in_range $CURRENT_TAXI_MISSION = random_int 1 11
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_1591
goto @TAXI_6523

:TAXI_1591
if 
  $CURRENT_TAXI_MISSION == 1
goto_if_false @TAXI_1703
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'REDLIGH'
goto_if_false @TAXI_1640
goto @TAXI_1517

:TAXI_1640
print_now 'FARE1' time 5000 1
$TAXI_DESTX1 = 936.25
$TAXI_DESTY1 = -462.5625
$TAXI_DESTZ1 = 14.375
$TAXI_DESTX2 = 913.6875
$TAXI_DESTY2 = -456.0
$TAXI_DESTZ2 = 16.375

:TAXI_1703
if 
  $CURRENT_TAXI_MISSION == 2
goto_if_false @TAXI_1815
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'S_VIEW'
goto_if_false @TAXI_1752
goto @TAXI_1517

:TAXI_1752
print_now 'FARE2' time 5000 1
$TAXI_DESTX1 = 1268.5
$TAXI_DESTY1 = -616.375
$TAXI_DESTZ1 = 11.6875
$TAXI_DESTX2 = 1288.25
$TAXI_DESTY2 = -627.5625
$TAXI_DESTZ2 = 13.6875

:TAXI_1815
if 
  $CURRENT_TAXI_MISSION == 3
goto_if_false @TAXI_1927
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'CHINA'
goto_if_false @TAXI_1864
goto @TAXI_1517

:TAXI_1864
print_now 'FARE3' time 5000 1
$TAXI_DESTX1 = 1008.875
$TAXI_DESTY1 = -871.875
$TAXI_DESTZ1 = 14.375
$TAXI_DESTX2 = 995.25
$TAXI_DESTY2 = -881.875
$TAXI_DESTZ2 = 16.375

:TAXI_1927
if 
  $CURRENT_TAXI_MISSION == 4
goto_if_false @TAXI_2039
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PORT_W'
goto_if_false @TAXI_1976
goto @TAXI_1517

:TAXI_1976
print_now 'FARE4' time 5000 1
$TAXI_DESTX1 = 849.25
$TAXI_DESTY1 = -990.0625
$TAXI_DESTZ1 = 4.5
$TAXI_DESTX2 = 869.375
$TAXI_DESTY2 = -1002.563
$TAXI_DESTZ2 = 6.5

:TAXI_2039
if 
  $CURRENT_TAXI_MISSION == 5
goto_if_false @TAXI_2151
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'REDLIGH'
goto_if_false @TAXI_2088
goto @TAXI_1517

:TAXI_2088
print_now 'FARE5' time 5000 1
$TAXI_DESTX1 = 1065.375
$TAXI_DESTY1 = -394.0625
$TAXI_DESTZ1 = 14.25
$TAXI_DESTX2 = 1057.875
$TAXI_DESTY2 = -408.875
$TAXI_DESTZ2 = 16.25

:TAXI_2151
if 
  $CURRENT_TAXI_MISSION == 6
goto_if_false @TAXI_2263
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'LITTLEI'
goto_if_false @TAXI_2200
goto @TAXI_1517

:TAXI_2200
print_now 'FARE6' time 5000 1
$TAXI_DESTX1 = 1207.0
$TAXI_DESTY1 = -122.0
$TAXI_DESTZ1 = 14.0
$TAXI_DESTX2 = 1224.0
$TAXI_DESTY2 = -108.0
$TAXI_DESTZ2 = 16.0

:TAXI_2263
if 
  $CURRENT_TAXI_MISSION == 7
goto_if_false @TAXI_2375
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'REDLIGH'
goto_if_false @TAXI_2312
goto @TAXI_1517

:TAXI_2312
print_now 'FARE7' time 5000 1
$TAXI_DESTX1 = 912.875
$TAXI_DESTY1 = -419.0
$TAXI_DESTZ1 = 14.0
$TAXI_DESTX2 = 919.5
$TAXI_DESTY2 = -401.25
$TAXI_DESTZ2 = 16.0

:TAXI_2375
if 
  $CURRENT_TAXI_MISSION == 8
goto_if_false @TAXI_2487
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'LITTLEI'
goto_if_false @TAXI_2424
goto @TAXI_1517

:TAXI_2424
print_now 'FARE8' time 5000 1
$TAXI_DESTX1 = 1345.75
$TAXI_DESTY1 = -461.75
$TAXI_DESTZ1 = 49.375
$TAXI_DESTX2 = 1334.688
$TAXI_DESTY2 = -447.0
$TAXI_DESTZ2 = 51.375

:TAXI_2487
if 
  $CURRENT_TAXI_MISSION == 9
goto_if_false @TAXI_2599
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PORT_E'
goto_if_false @TAXI_2536
goto @TAXI_1517

:TAXI_2536
print_now 'FARE9' time 5000 1
$TAXI_DESTX1 = 1475.0
$TAXI_DESTY1 = -686.0
$TAXI_DESTZ1 = 11.25
$TAXI_DESTX2 = 1485.25
$TAXI_DESTY2 = -667.5
$TAXI_DESTZ2 = 13.25

:TAXI_2599
if 
  $CURRENT_TAXI_MISSION == 10
goto_if_false @TAXI_2711
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'CHINA'
goto_if_false @TAXI_2648
goto @TAXI_1517

:TAXI_2648
print_now 'FARE10' time 5000 1
$TAXI_DESTX1 = 1039.063
$TAXI_DESTY1 = -660.0625
$TAXI_DESTZ1 = 14.375
$TAXI_DESTX2 = 1043.875
$TAXI_DESTY2 = -647.875
$TAXI_DESTZ2 = 16.375

:TAXI_2711
if 
  is_collision_in_memory 2
goto_if_false @TAXI_3878
generate_random_int_in_range $CURRENT_TAXI_MISSION = random_int 11 21
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_2758
goto @TAXI_6523

:TAXI_2758
if 
  $CURRENT_TAXI_MISSION == 11
goto_if_false @TAXI_2870
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'CONSTRU'
goto_if_false @TAXI_2807
goto @TAXI_1517

:TAXI_2807
print_now 'FARE11' time 5000 1
$TAXI_DESTX1 = 441.8125
$TAXI_DESTY1 = -193.0
$TAXI_DESTZ1 = 20.3125
$TAXI_DESTX2 = 447.375
$TAXI_DESTY2 = -201.875
$TAXI_DESTZ2 = 22.1875

:TAXI_2870
if 
  $CURRENT_TAXI_MISSION == 12
goto_if_false @TAXI_2982
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'STADIUM'
goto_if_false @TAXI_2919
goto @TAXI_1517

:TAXI_2919
print_now 'FARE12' time 5000 1
$TAXI_DESTX1 = -27.0
$TAXI_DESTY1 = -269.5625
$TAXI_DESTZ1 = 14.9375
$TAXI_DESTX2 = -11.6875
$TAXI_DESTY2 = -278.875
$TAXI_DESTZ2 = 16.875

:TAXI_2982
if 
  $CURRENT_TAXI_MISSION == 13
goto_if_false @TAXI_3094
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SHOPING'
goto_if_false @TAXI_3031
goto @TAXI_1517

:TAXI_3031
print_now 'FARE13' time 5000 1
$TAXI_DESTX1 = 22.0625
$TAXI_DESTY1 = -1136.938
$TAXI_DESTZ1 = 25.125
$TAXI_DESTX2 = 28.9375
$TAXI_DESTY2 = -1125.625
$TAXI_DESTZ2 = 27.0625

:TAXI_3094
if 
  $CURRENT_TAXI_MISSION == 14
goto_if_false @TAXI_3206
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'YAKUSA'
goto_if_false @TAXI_3143
goto @TAXI_1517

:TAXI_3143
print_now 'FARE14' time 5000 1
$TAXI_DESTX1 = 421.375
$TAXI_DESTY1 = -1390.813
$TAXI_DESTZ1 = 24.9375
$TAXI_DESTX2 = 415.4375
$TAXI_DESTY2 = -1401.188
$TAXI_DESTZ2 = 26.875

:TAXI_3206
if 
  $CURRENT_TAXI_MISSION == 15
goto_if_false @TAXI_3318
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'UNIVERS'
goto_if_false @TAXI_3255
goto @TAXI_1517

:TAXI_3255
print_now 'FARE15' time 5000 1
$TAXI_DESTX1 = 183.125
$TAXI_DESTY1 = -215.5
$TAXI_DESTZ1 = 17.0
$TAXI_DESTX2 = 167.1875
$TAXI_DESTY2 = -221.1875
$TAXI_DESTZ2 = 19.25

:TAXI_3318
if 
  $CURRENT_TAXI_MISSION == 16
goto_if_false @TAXI_3430
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PARK'
goto_if_false @TAXI_3367
goto @TAXI_1517

:TAXI_3367
print_now 'FARE16' time 5000 1
$TAXI_DESTX1 = 193.75
$TAXI_DESTY1 = -626.1875
$TAXI_DESTZ1 = 25.0625
$TAXI_DESTX2 = 180.8125
$TAXI_DESTY2 = -616.5
$TAXI_DESTZ2 = 27.0625

:TAXI_3430
if 
  $CURRENT_TAXI_MISSION == 17
goto_if_false @TAXI_3542
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'COM_EAS'
goto_if_false @TAXI_3479
goto @TAXI_1517

:TAXI_3479
print_now 'FARE17' time 5000 1
$TAXI_DESTX1 = 326.0625
$TAXI_DESTY1 = -1001.688
$TAXI_DESTZ1 = 29.0
$TAXI_DESTX2 = 316.25
$TAXI_DESTY2 = -1012.375
$TAXI_DESTZ2 = 24.4375

:TAXI_3542
if 
  $CURRENT_TAXI_MISSION == 18
goto_if_false @TAXI_3654
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'YAKUSA'
goto_if_false @TAXI_3591
goto @TAXI_1517

:TAXI_3591
print_now 'FARE18' time 5000 1
$TAXI_DESTX1 = 246.1875
$TAXI_DESTY1 = -1192.75
$TAXI_DESTZ1 = 24.6875
$TAXI_DESTX2 = 256.625
$TAXI_DESTY2 = -1184.125
$TAXI_DESTZ2 = 26.6875

:TAXI_3654
if 
  $CURRENT_TAXI_MISSION == 19
goto_if_false @TAXI_3766
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SHOPING'
goto_if_false @TAXI_3703
goto @TAXI_1517

:TAXI_3703
print_now 'FARE19' time 5000 1
$TAXI_DESTX1 = 28.6875
$TAXI_DESTY1 = -1066.625
$TAXI_DESTZ1 = 26.6875
$TAXI_DESTX2 = 34.0625
$TAXI_DESTY2 = -1078.938
$TAXI_DESTZ2 = 24.9375

:TAXI_3766
if 
  $CURRENT_TAXI_MISSION == 20
goto_if_false @TAXI_3878
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'PARK'
goto_if_false @TAXI_3815
goto @TAXI_1517

:TAXI_3815
print_now 'FARE20' time 5000 1
$TAXI_DESTX1 = 27.5
$TAXI_DESTY1 = -776.375
$TAXI_DESTZ1 = 26.25
$TAXI_DESTX2 = 38.75
$TAXI_DESTY2 = -765.0
$TAXI_DESTZ2 = 28.5625

:TAXI_3878
if 
  is_collision_in_memory 3
goto_if_false @TAXI_4623
generate_random_int_in_range $CURRENT_TAXI_MISSION = random_int 21 27
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_3925
goto @TAXI_6523

:TAXI_3925
if 
  $CURRENT_TAXI_MISSION == 21
goto_if_false @TAXI_4037
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'AIRPORT'
goto_if_false @TAXI_3974
goto @TAXI_1517

:TAXI_3974
print_now 'FARE21' time 5000 1
$TAXI_DESTX1 = -744.5
$TAXI_DESTY1 = -598.5625
$TAXI_DESTZ1 = 8.0
$TAXI_DESTX2 = -752.0
$TAXI_DESTY2 = -617.1875
$TAXI_DESTZ2 = 15.0

:TAXI_4037
if 
  $CURRENT_TAXI_MISSION == 22
goto_if_false @TAXI_4149
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'BIG_DAM'
goto_if_false @TAXI_4086
goto @TAXI_1517

:TAXI_4086
print_now 'FARE22' time 5000 1
$TAXI_DESTX1 = -1111.25
$TAXI_DESTY1 = 522.875
$TAXI_DESTZ1 = 65.0
$TAXI_DESTX2 = -1101.0
$TAXI_DESTY2 = 516.6875
$TAXI_DESTZ2 = 70.0

:TAXI_4149
if 
  $CURRENT_TAXI_MISSION == 23
goto_if_false @TAXI_4261
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SUB_IND'
goto_if_false @TAXI_4198
goto @TAXI_1517

:TAXI_4198
print_now 'FARE23' time 5000 1
$TAXI_DESTX1 = -1107.875
$TAXI_DESTY1 = 163.5
$TAXI_DESTZ1 = 50.0
$TAXI_DESTX2 = -1115.375
$TAXI_DESTY2 = 155.5625
$TAXI_DESTZ2 = 68.0

:TAXI_4261
if 
  $CURRENT_TAXI_MISSION == 24
goto_if_false @TAXI_4373
if 
  is_player_in_zone $PLAYER_CHAR in_zone 'SUB_IND'
goto_if_false @TAXI_4310
goto @TAXI_1517

:TAXI_4310
print_now 'FARE24' time 5000 1
$TAXI_DESTX1 = -1253.0
$TAXI_DESTY1 = -136.5625
$TAXI_DESTZ1 = 55.0
$TAXI_DESTX2 = -1260.25
$TAXI_DESTY2 = -148.375
$TAXI_DESTZ2 = 62.0

:TAXI_4373
if 
  $CURRENT_TAXI_MISSION == 25
goto_if_false @TAXI_4498
if or
  is_player_in_zone $PLAYER_CHAR in_zone 'SUB_ZO2'
  is_player_in_zone $PLAYER_CHAR in_zone 'SUB_ZO3'
goto_if_false @TAXI_4435
goto @TAXI_1517

:TAXI_4435
print_now 'FARE25' time 5000 1
$TAXI_DESTX1 = -230.0625
$TAXI_DESTY1 = 311.5
$TAXI_DESTZ1 = 0.0
$TAXI_DESTX2 = -220.1875
$TAXI_DESTY2 = 322.5
$TAXI_DESTZ2 = 10.0

:TAXI_4498
if 
  $CURRENT_TAXI_MISSION == 26
goto_if_false @TAXI_4623
if or
  is_player_in_zone $PLAYER_CHAR in_zone 'PROJECT'
  is_player_in_zone $PLAYER_CHAR in_zone 'SWANKS'
goto_if_false @TAXI_4560
goto @TAXI_1517

:TAXI_4560
print_now 'FARE26' time 5000 1
$TAXI_DESTX1 = -682.5
$TAXI_DESTY1 = 95.25
$TAXI_DESTZ1 = 10.0
$TAXI_DESTX2 = -673.0
$TAXI_DESTY2 = 88.375
$TAXI_DESTZ2 = 25.0

:TAXI_4623
set_var_float_to_var_float $TAXI_BLIPX = $TAXI_DESTX1
add_float_var_to_float_var $TAXI_BLIPX += $TAXI_DESTX2
$TAXI_BLIPX /= 2.0
set_var_float_to_var_float $TAXI_BLIPY = $TAXI_DESTY1
add_float_var_to_float_var $TAXI_BLIPY += $TAXI_DESTY2
$TAXI_BLIPY /= 2.0
add_blip_for_coord $TAXI_MISSION_DROPOFF_MARKER = create_checkpoint_at $TAXI_BLIPX $TAXI_BLIPY -100.0
change_blip_display $TAXI_MISSION_DROPOFF_MARKER display 2
if 
  is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_4715
goto @TAXI_6523

:TAXI_4715
set_var_float_to_var_float $X_DIFF = $TAXI_PED_X
sub_float_var_from_float_var $X_DIFF -= $TAXI_BLIPX
set_var_float_to_var_float $Y_DIFF = $TAXI_PED_Y
sub_float_var_from_float_var $Y_DIFF -= $TAXI_BLIPY
set_var_float_to_var_float $X_DIFF_SQ = $X_DIFF
mult_float_var_by_float_var $X_DIFF_SQ *= $X_DIFF
set_var_float_to_var_float $Y_DIFF_SQ = $Y_DIFF
mult_float_var_by_float_var $Y_DIFF_SQ *= $Y_DIFF
set_var_float_to_var_float $TAXI_DISTANCE_SQ = $X_DIFF_SQ
add_float_var_to_float_var $TAXI_DISTANCE_SQ += $Y_DIFF_SQ
sqrt $TAXI_DISTANCE = square_root $TAXI_DISTANCE_SQ
cset_var_int_to_var_float $TAXI_DISTANCE_INT = float_to_integer $TAXI_DISTANCE
set_var_int_to_var_int $TAXI_DISTANCE_INT_OLD = $TAXI_DISTANCE_INT
if 
  is_collision_in_memory 1
goto_if_false @TAXI_4859
if 
  $FARES_INROW_COMPLETED == 0
goto_if_false @TAXI_4859
$TAXI_DISTANCE_INT *= 100

:TAXI_4859
if 
  is_collision_in_memory 2
goto_if_false @TAXI_4899
if 
  $FARES_INROW_COMPLETED == 0
goto_if_false @TAXI_4899
$TAXI_DISTANCE_INT *= 95

:TAXI_4899
if 
  is_collision_in_memory 3
goto_if_false @TAXI_4939
if 
  $FARES_INROW_COMPLETED == 0
goto_if_false @TAXI_4939
$TAXI_DISTANCE_INT *= 115

:TAXI_4939
if 
  $FARES_INROW_COMPLETED == 1
goto_if_false @TAXI_4964
$TAXI_DISTANCE_INT *= 90

:TAXI_4964
if 
  $FARES_INROW_COMPLETED == 2
goto_if_false @TAXI_4989
$TAXI_DISTANCE_INT *= 85

:TAXI_4989
if 
  $FARES_INROW_COMPLETED == 3
goto_if_false @TAXI_5014
$TAXI_DISTANCE_INT *= 84

:TAXI_5014
if 
  $FARES_INROW_COMPLETED == 4
goto_if_false @TAXI_5039
$TAXI_DISTANCE_INT *= 83

:TAXI_5039
if 
  $FARES_INROW_COMPLETED == 5
goto_if_false @TAXI_5064
$TAXI_DISTANCE_INT *= 82

:TAXI_5064
if and
  $FARES_INROW_COMPLETED > 5
  10 >= $FARES_INROW_COMPLETED
goto_if_false @TAXI_5096
$TAXI_DISTANCE_INT *= 80

:TAXI_5096
if and
  $FARES_INROW_COMPLETED > 11
  20 >= $FARES_INROW_COMPLETED
goto_if_false @TAXI_5128
$TAXI_DISTANCE_INT *= 75

:TAXI_5128
if and
  $FARES_INROW_COMPLETED > 20
  50 >= $FARES_INROW_COMPLETED
goto_if_false @TAXI_5160
$TAXI_DISTANCE_INT *= 70

:TAXI_5160
if 
  $FARES_INROW_COMPLETED > 50
goto_if_false @TAXI_5185
$TAXI_DISTANCE_INT *= 60

:TAXI_5185
add_int_var_to_int_var $TAXI_MISSION_TIMER += $TAXI_DISTANCE_INT
set_var_int_to_var_int $SPEEDBONUS = $TAXI_DISTANCE_INT
$SPEEDBONUS /= 100
$SPEEDBONUS *= 65
TIMERB = 0
if 
  $TAXI_COUNTDOWN_ALREADY_STARTED == 0
goto_if_false @TAXI_5252
display_onscreen_timer $TAXI_MISSION_TIMER
$TAXI_COUNTDOWN_ALREADY_STARTED = 1

:TAXI_5252
if 
  is_collision_in_memory 3
goto_if_false @TAXI_5300
if 
  $FARES_INROW_COMPLETED == 0
goto_if_false @TAXI_5293
$TAXI_MISSION_TIMER += 15000

:TAXI_5293
goto @TAXI_5326

:TAXI_5300
if 
  $FARES_INROW_COMPLETED == 0
goto_if_false @TAXI_5326
$TAXI_MISSION_TIMER += 10000

:TAXI_5326
if 
  not is_car_stopped_in_area_3d $TAXI_MISSION_CAR stopped 1 $TAXI_DESTX1 $TAXI_DESTY1 $TAXI_DESTZ1 $TAXI_DESTX2 $TAXI_DESTY2 $TAXI_DESTZ2
goto_if_false @TAXI_5807
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_5389
goto @TAXI_6523

:TAXI_5389
if 
  is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_5412
goto @TAXI_6523

:TAXI_5412
if 
  not is_player_in_car $PLAYER_CHAR in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_5438
goto @TAXI_6523

:TAXI_5438
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @TAXI_5499
if and
  is_button_pressed 0 key_pressed 19
  $ONMISSION == 1
goto_if_false @TAXI_5492
goto @TAXI_6318

:TAXI_5492
goto @TAXI_5530

:TAXI_5499
if and
  is_button_pressed 0 key_pressed 14
  $ONMISSION == 1
goto_if_false @TAXI_5530
goto @TAXI_6318

:TAXI_5530
if 
  $TAXI_MISSION_TIMER == 0
goto_if_false @TAXI_5555
goto @TAXI_6242

:TAXI_5555
if 
  not is_car_health_greater $TAXI_MISSION_CAR health > 500
goto_if_false @TAXI_5711
if 
  $SPRAY_BLIP_ONSCREEN == 0
goto_if_false @TAXI_5711
remove_blip $P_AND_S_MARKER
if 
  is_collision_in_memory 1
goto_if_false @TAXI_5628
add_sprite_blip_for_coord $P_AND_S_MARKER = create_marker 18 at 925.0 -359.5 -100.0

:TAXI_5628
if 
  is_collision_in_memory 2
goto_if_false @TAXI_5659
add_sprite_blip_for_coord $P_AND_S_MARKER = create_marker 18 at 379.0 -493.75 -100.0

:TAXI_5659
if 
  is_collision_in_memory 3
goto_if_false @TAXI_5690
add_sprite_blip_for_coord $P_AND_S_MARKER = create_marker 18 at -1128.0 32.5 -100.0

:TAXI_5690
$SPRAY_BLIP_ONSCREEN = 1
gosub @TAXI_6264
goto @TAXI_6457

:TAXI_5711
if 
  not is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_5772
if and
  is_car_health_greater $TAXI_MISSION_CAR health > 500
  $SPRAY_BLIP_ONSCREEN == 1
goto_if_false @TAXI_5772
remove_blip $P_AND_S_MARKER
$SPRAY_BLIP_ONSCREEN = 0
$TAXI_FUCKED_FLAG = 0

:TAXI_5772
if and
  is_car_upsidedown $TAXI_MISSION_CAR
  is_car_stopped $TAXI_MISSION_CAR
goto_if_false @TAXI_5800
goto @TAXI_6264

:TAXI_5800
goto @TAXI_5326

:TAXI_5807
if 
  is_collision_in_memory 3
goto_if_false @TAXI_5908
if 
  is_int_lvar_greater_than_int_var TIMERB > $SPEEDBONUS
goto_if_false @TAXI_5871
set_var_int_to_var_int $TAXI_EARNING = $TAXI_DISTANCE_INT_OLD
print_big 'TAXI4' 5000 ms 5
goto @TAXI_5901

:TAXI_5871
set_var_int_to_var_int $TAXI_EARNING = $TAXI_DISTANCE_INT_OLD
$TAXI_EARNING *= 2
print_big 'TAXI5' 5000 ms 5

:TAXI_5901
goto @TAXI_5987

:TAXI_5908
if 
  is_int_lvar_greater_than_int_var TIMERB > $SPEEDBONUS
goto_if_false @TAXI_5964
set_var_int_to_var_int $TAXI_EARNING = $TAXI_DISTANCE_INT_OLD
$TAXI_EARNING /= 2
print_big 'TAXI4' 5000 ms 5
goto @TAXI_5987

:TAXI_5964
set_var_int_to_var_int $TAXI_EARNING = $TAXI_DISTANCE_INT_OLD
print_big 'TAXI5' 5000 ms 5

:TAXI_5987
add_score $PLAYER_CHAR money += $TAXI_EARNING
print_with_number_big 'TSCORE2' $TAXI_EARNING 6000 ms 6
add_one_off_sound 94 at 0.0 0.0 0.0
add_int_var_to_int_var $TOTAL_TAXI_EARNINGS += $TAXI_EARNING
$TAXIMISSIONS_COMPLETED += 1
register_passenger_dropped_off_taxi 
$FARES_INROW_COMPLETED += 1
if and
  $BORGNINE_HAD == 0
  $TAXIMISSIONS_COMPLETED > 49
goto_if_false @TAXI_6089
switch_car_generator $BORGNINE_CAB cars_to_generate_to 101
$BORGNINE_HAD = 1

:TAXI_6089
if and
  $100TAXIMISSIONS_COMPLETED == 0
  $TAXIMISSIONS_COMPLETED == 100
goto_if_false @TAXI_6149
add_pager_message 'NEW_TAX' 140 2 0
player_made_progress 1
$PROGRESS_100 += 1
$100TAXIMISSIONS_COMPLETED = 1

:TAXI_6149
$TAXI_MISSION_TIMER += 10000
gosub @TAXI_6523
if 
  is_int_var_equal_to_int_var $FARES_INROW_COMPLETED == $FARES_FOR_NEXT_INROW_BONUS
goto_if_false @TAXI_6235
print_with_2_numbers_big 'IN_ROW' $FARES_INROW_COMPLETED $FARES_INROW_BONUS 5000 ms 6
add_score $PLAYER_CHAR money += $FARES_INROW_BONUS
add_int_var_to_int_var $TOTAL_TAXI_EARNINGS += $FARES_INROW_BONUS
$FARES_FOR_NEXT_INROW_BONUS += 5
$FARES_INROW_BONUS += 2000

:TAXI_6235
goto @TAXI_6457

:TAXI_6242
print_now 'TAXI2' time 5000 1
goto @TAXI_6523

:TAXI_6264
wait 0
print_now 'TAXI3' time 5000 1
if 
  not is_char_dead $PED_FOR_TAXIMISSION
goto_if_false @TAXI_6304
set_char_obj_flee_on_foot_till_safe $PED_FOR_TAXIMISSION

:TAXI_6304
$TAXI_FUCKED_FLAG = 1
goto @TAXI_6523

:TAXI_6318
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @TAXI_6399

:TAXI_6341
if 
  is_button_pressed 0 key_pressed 19
goto_if_false @TAXI_6392
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_6385
goto @TAXI_6523

:TAXI_6385
goto @TAXI_6341

:TAXI_6392
goto @TAXI_6450

:TAXI_6399
if 
  is_button_pressed 0 key_pressed 14
goto_if_false @TAXI_6450
wait 0
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_6443
goto @TAXI_6523

:TAXI_6443
goto @TAXI_6399

:TAXI_6450
goto @TAXI_6523

:TAXI_6457
remove_blip $BLIP1_CT1
remove_blip $TAXI_MISSION_DROPOFF_MARKER
mark_char_as_no_longer_needed $PED_FOR_TAXIMISSION
if 
  not is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_6495
set_taxi_lights $TAXI_MISSION_CAR taxi_available_light_to 1

:TAXI_6495
wait 0
print_soon 'TAXI1' time 1500 1
goto @TAXI_207
return 

:TAXI_6523
if 
  not is_char_dead $PED_FOR_TAXIMISSION
goto_if_false @TAXI_6804
if 
  not is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_6804
if 
  is_char_in_car $PED_FOR_TAXIMISSION in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_6804
set_char_obj_leave_car $PED_FOR_TAXIMISSION leave_car $TAXI_MISSION_CAR
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_6605
set_player_control $PLAYER_CHAR can_move 0

:TAXI_6605
if 
  is_char_in_car $PED_FOR_TAXIMISSION in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_6804
wait 0
if or
  is_char_dead $PED_FOR_TAXIMISSION
  is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_6656
goto @TAXI_6847

:TAXI_6656
if 
  not is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_6679
goto @TAXI_6847

:TAXI_6679
if 
  not is_player_in_car $PLAYER_CHAR in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_6705
goto @TAXI_6847

:TAXI_6705
get_controller_mode $CURRENT_CONTROLS
if 
  not $CURRENT_CONTROLS == 3
goto_if_false @TAXI_6766
if and
  is_button_pressed 0 key_pressed 19
  $ONMISSION == 1
goto_if_false @TAXI_6759
goto @TAXI_6847

:TAXI_6759
goto @TAXI_6797

:TAXI_6766
if and
  is_button_pressed 0 key_pressed 14
  $ONMISSION == 1
goto_if_false @TAXI_6797
goto @TAXI_6847

:TAXI_6797
goto @TAXI_6605

:TAXI_6804
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_6827
set_player_control $PLAYER_CHAR can_move 1

:TAXI_6827
if 
  $TAXI_FUCKED_FLAG == 1
goto_if_false @TAXI_6847
return 

:TAXI_6847
wait 0
if 
  not is_char_dead $PED_FOR_TAXIMISSION
goto_if_false @TAXI_6914
if 
  not is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_6914
if 
  not is_char_in_car $PED_FOR_TAXIMISSION in_car $TAXI_MISSION_CAR
goto_if_false @TAXI_6914
char_wander_dir $PED_FOR_TAXIMISSION wander_direction 0
mark_char_as_no_longer_needed $PED_FOR_TAXIMISSION

:TAXI_6914
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_6937
set_player_control $PLAYER_CHAR can_move 1

:TAXI_6937
return 

:TAXI_6939
clear_onscreen_timer $TAXI_MISSION_TIMER
clear_onscreen_counter $FARES_INROW_COMPLETED
if 
  not is_car_dead $TAXI_MISSION_CAR
goto_if_false @TAXI_6972
set_taxi_lights $TAXI_MISSION_CAR taxi_available_light_to 0

:TAXI_6972
remove_blip $BLIP1_CT1
remove_blip $TAXI_MISSION_DROPOFF_MARKER
remove_blip $P_AND_S_MARKER
mark_char_as_no_longer_needed $PED_FOR_TAXIMISSION
print_big 'TAXI6' 5000 ms 5
print_with_number_big 'TSCORE' $TOTAL_TAXI_EARNINGS 6000 ms 6
register_money_made_taxi $TOTAL_TAXI_EARNINGS
set_deatharrest_state 1
$ONMISSION = 0
$FLAG_TAXI1_MISSION_LAUNCHED = 0
if 
  is_player_playing $PLAYER_CHAR
goto_if_false @TAXI_7071
set_player_control $PLAYER_CHAR can_move 1

:TAXI_7071
clear_help 
mission_has_finished 
return 

//-------------Mission 45---------------
// Originally: Under Surveillance

:MHRACE
gosub @MHRACE_36
if 
  has_deatharrest_been_executed 
goto_if_false @MHRACE_27
gosub @MHRACE_10807

:MHRACE_27
gosub @MHRACE_11226
terminate_this_script 

:MHRACE_36
$ONMISSION = 1
$ON_MISSION_FOR_DIABLOS = 1
register_mission_given 
wait 0
script_name 'MHRACE'
$GAME_TIMER_START_D1 = 0
$DIABLO1_RACE_TIME = 0
$PLAYER_CPCOUNTER = 0
$CAR1_CPCOUNTER = 0
$CAR2_CPCOUNTER = 0
$CAR3_CPCOUNTER = 0
$BEHIND_CAR1 = 0
$BEHIND_CAR2 = 0
$BEHIND_CAR3 = 0
$DIABLO1_POSITION = 0
$TIMERA_RESET_FLAG_D1 = 0
$TIMERB_RESET_FLAG_D1 = 0
$TIMERC_RESET_FLAG_D1 = 0
$TIMERC_STARTED = 0
$TIMERC_CURRENT = 0
$TIMERC = 0
$TIMERD = 0
$TIMERD_STARTED = 0
$TIMERD_CURRENT = 0
$TIMERD_RESET_FLAG = 0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 7.0
$TIMERE_RESET_FLAG = 0
$TIMERF_RESET_FLAG = 0
$CAR1_STUCK_X = 0.0
$CAR1_STUCK_Y = 0.0
$CAR1_STUCK_Z = 0.0
$CAR2_STUCK_X = 0.0
$CAR2_STUCK_Y = 0.0
$CAR2_STUCK_Z = 0.0
$CAR3_STUCK_X = 0.0
$CAR3_STUCK_Y = 0.0
$CAR3_STUCK_Z = 0.0
$DIABLO1_CHECKPOINT1_X = -300.3125
$DIABLO1_CHECKPOINT1_Y = 372.25
$DIABLO1_CHECKPOINT1_Z = 78.875
$DIABLO1_CHECKPOINT2_X = -932.0625
$DIABLO1_CHECKPOINT2_Y = 524.0625
$DIABLO1_CHECKPOINT2_Z = 66.75
$DIABLO1_CHECKPOINT3_X = -1275.0
$DIABLO1_CHECKPOINT3_Y = -214.6875
$DIABLO1_CHECKPOINT3_Z = 53.6875
$DIABLO1_CHECKPOINT4_X = -977.5
$DIABLO1_CHECKPOINT4_Y = -199.4375
$DIABLO1_CHECKPOINT4_Z = 33.6875
$DIABLO1_CHECKPOINT5_X = -1027.875
$DIABLO1_CHECKPOINT5_Y = 96.0
$DIABLO1_CHECKPOINT5_Z = 48.6875
$DIABLO1_CHECKPOINT6_X = -676.3125
$DIABLO1_CHECKPOINT6_Y = 187.625
$DIABLO1_CHECKPOINT6_Z = 53.6875
$DIABLO1_CHECKPOINT7_X = -567.5
$DIABLO1_CHECKPOINT7_Y = 166.125
$DIABLO1_CHECKPOINT7_Z = 43.6875
$DIABLO1_CHECKPOINT8_X = -784.75
$DIABLO1_CHECKPOINT8_Y = 135.75
$DIABLO1_CHECKPOINT8_Z = 28.6875
$DIABLO1_CHECKPOINT9_X = -591.9375
$DIABLO1_CHECKPOINT9_Y = -55.9375
$DIABLO1_CHECKPOINT9_Z = 18.375
$DIABLO1_CHECKPOINT10_X = -435.0625
$DIABLO1_CHECKPOINT10_Y = 6.3125
$DIABLO1_CHECKPOINT10_Z = 3.6875
$DIABLO1_CHECKPOINT11_X = -473.1875
$DIABLO1_CHECKPOINT11_Y = -217.4375
$DIABLO1_CHECKPOINT11_Z = 3.6875
$DIABLO1_CHECKPOINT12_X = -742.875
$DIABLO1_CHECKPOINT12_Y = 95.0
$DIABLO1_CHECKPOINT12_Z = 6.0
$DIABLO1_CHECKPOINT13_X = -742.875
$DIABLO1_CHECKPOINT13_Y = 95.0
$DIABLO1_CHECKPOINT13_Z = 6.0
$DIABLO1_CHECKPOINT14_X = -869.3125
$DIABLO1_CHECKPOINT14_Y = 371.4375
$DIABLO1_CHECKPOINT14_Z = 39.6875
$DIABLO1_CHECKPOINT15_X = -285.0
$DIABLO1_CHECKPOINT15_Y = 355.1875
$DIABLO1_CHECKPOINT15_Z = 78.6875
$DIABLO1_CHECKPOINT16_X = -726.4375
$DIABLO1_CHECKPOINT16_Y = 232.5625
$DIABLO1_CHECKPOINT16_Z = 51.5625
$DIABLO1_CHECKPOINT17_X = -881.8125
$DIABLO1_CHECKPOINT17_Y = -113.75
$DIABLO1_CHECKPOINT17_Z = 33.9375
$DIABLO1_CHECKPOINT18_X = -1189.188
$DIABLO1_CHECKPOINT18_Y = 274.0
$DIABLO1_CHECKPOINT18_Z = 3.6875
set_ped_density_multiplier 0.0
TIMERA = 0
load_special_character 1 'TONY'
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
if 
  $MHRACE_CAR_PASS1 == 0
goto_if_false @MHRACE_1115
do_fade 0 1000
wait 1000
print_big 'MHR_2' 3000 ms 2
clear_area 1 at -495.0625 230.0 68.6875 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -831.875 323.0625 50.6875 rotation 0.0 0.0 0.0
point_camera_at_point -829.125 297.875 39.1875 switchstyle 2
create_char $JOEY_CHAR = create_actor 21 26 at -829.125 297.875 39.1875
set_player_coordinates $PLAYER_CHAR at -829.0625 301.0 39.125
turn_char_to_face_char $JOEY_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $JOEY_CHAR
char_look_at_player_always $JOEY_CHAR to_look_at_player $PLAYER_CHAR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MHRACE_1115
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MHRACE_1115
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MHR_3' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MHRACE_1115
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MHR_4' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MHRACE_1115
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MHR_5' time 3000 1
wait 3000

:MHRACE_1115
clear_prints 
do_fade 0 1000
wait 1000
restore_camera_jumpcut 
delete_char $JOEY_CHAR
switch_widescreen 0
request_model 50
request_model 101

:MHRACE_1148
if or
  not has_model_loaded 50
  not has_model_loaded 101
goto_if_false @MHRACE_1178
wait 0
goto @MHRACE_1148

:MHRACE_1178
if 
  $MHRACE_CAR_PASS1 == 0
goto_if_false @MHRACE_1226
$MHRACE_MODEL = 153
print_now 'MHR_21' time 5000 1
goto @MHRACE_1367

:MHRACE_1226
if 
  $MHRACE_CAR_PASS2 == 0
goto_if_false @MHRACE_1273
$MHRACE_MODEL = 95
print_now 'MHR_22' time 5000 1
goto @MHRACE_1367

:MHRACE_1273
if 
  $MHRACE_CAR_PASS3 == 0
goto_if_false @MHRACE_1320
$MHRACE_MODEL = 100
print_now 'MHR_23' time 5000 1
goto @MHRACE_1367

:MHRACE_1320
if 
  $MHRACE_CAR_PASS4 == 0
goto_if_false @MHRACE_1367
$MHRACE_MODEL = 109
print_now 'MHR_24' time 5000 1
goto @MHRACE_1367

:MHRACE_1367
if 
  $MHRACE_PASS == 0
goto_if_false @MHRACE_1435
request_model $MHRACE_MODEL

:MHRACE_1390
wait 0
if 
  has_model_loaded $MHRACE_MODEL
goto_if_false @MHRACE_1390
create_car $MHRACECAR = create_car $MHRACE_MODEL at -495.0625 220.0 67.6875
set_car_heading $MHRACECAR z_angle_to 270.0

:MHRACE_1435
set_player_coordinates $PLAYER_CHAR at -826.6875 302.8125 39.0625
set_player_heading $PLAYER_CHAR z_angle_to 335.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_roads_off -311.125 250.875 60.5 -709.125 213.875 53.4375
create_car $DIABLO1_CHEETAH1 = create_car 101 at -495.0625 225.0 67.6875
lock_car_doors $DIABLO1_CHEETAH1 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH1 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH1 watertight 1
set_car_strong $DIABLO1_CHEETAH1 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH1 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH2 = create_car 101 at -495.0625 230.0 67.6875
lock_car_doors $DIABLO1_CHEETAH2 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH2 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH2 watertight 1
set_car_strong $DIABLO1_CHEETAH2 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH2 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH3 = create_car 101 at -495.3125 235.0625 67.6875
lock_car_doors $DIABLO1_CHEETAH3 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH3 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH3 watertight 1
set_car_strong $DIABLO1_CHEETAH3 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH3 not_damaged_when_upside_down 1
create_char_inside_car $DIABLO1_CHEETAH1_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH1
create_char_inside_car $DIABLO1_CHEETAH2_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH2
create_char_inside_car $DIABLO1_CHEETAH3_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH3
set_char_cant_be_dragged_out $DIABLO1_CHEETAH1_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH2_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH3_DRIVER locked_while_in_vehicle 1
set_car_heading $DIABLO1_CHEETAH1 z_angle_to 270.0
set_car_heading $DIABLO1_CHEETAH2 z_angle_to 270.0
set_car_heading $DIABLO1_CHEETAH3 z_angle_to 270.0
car_set_idle $DIABLO1_CHEETAH1
car_set_idle $DIABLO1_CHEETAH2
car_set_idle $DIABLO1_CHEETAH3
set_car_driving_style $DIABLO1_CHEETAH1 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 35.0
set_car_driving_style $DIABLO1_CHEETAH2 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 35.0
set_car_driving_style $DIABLO1_CHEETAH3 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 35.0
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 1
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at -495.0625 219.9375 68.6875
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
if 
  $MHRACE_CAR_PASS1 == 0
goto_if_false @MHRACE_1902
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 40.0
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 40.0
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 40.0

:MHRACE_1902
if 
  $MHRACE_PASS == 1
goto_if_false @MHRACE_1935
print_now 'DIAB1_4' time 5000 1

:MHRACE_1935
wait 0
if or
  $MHRACE_PASS == 1
  is_player_in_model $PLAYER_CHAR driving_vehicle_type $MHRACE_MODEL
goto_if_false @MHRACE_2056
if 
  not locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 -495.0625 219.9375 68.6875 radius 2.0 2.0 2.0
goto_if_false @MHRACE_2255
wait 0
if 
  locate_stopped_player_on_foot_3d $PLAYER_CHAR stopped 1 -495.0625 219.9375 68.6875 radius 2.0 2.0 2.0
goto_if_false @MHRACE_2056
print_now 'YD1_G' time 5000 1

:MHRACE_2056
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MHRACE_2079
goto @MHRACE_10807

:MHRACE_2079
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MHRACE_2102
goto @MHRACE_10807

:MHRACE_2102
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MHRACE_2125
goto @MHRACE_10807

:MHRACE_2125
get_car_health $TIMERC = car $DIABLO1_CHEETAH1
if 
  1000 > $TIMERC
goto_if_false @MHRACE_2166
$TIMERC = 9
goto @MHRACE_2255

:MHRACE_2166
get_car_health $TIMERC = car $DIABLO1_CHEETAH2
if 
  1000 > $TIMERC
goto_if_false @MHRACE_2207
$TIMERC = 9
goto @MHRACE_2255

:MHRACE_2207
get_car_health $TIMERC = car $DIABLO1_CHEETAH3
if 
  1000 > $TIMERC
goto_if_false @MHRACE_2248
$TIMERC = 9
goto @MHRACE_2255

:MHRACE_2248
goto @MHRACE_1935

:MHRACE_2255
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 0
if 
  $TIMERC == 9
goto_if_false @MHRACE_2335
if 
  is_player_in_model $PLAYER_CHAR driving_vehicle_type $MHRACE_MODEL
goto_if_false @MHRACE_10807
print_big 'DIAB1_1' 1200 ms 4
goto @MHRACE_2529

:MHRACE_2335
set_player_control $PLAYER_CHAR can_move 0
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1
generate_random_int_in_range $MHRACE_RAIN = random_int 1 10
if 
  $MHRACE_RAIN > 8
goto_if_false @MHRACE_2529
force_weather 2

:MHRACE_2529
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MHRACE_2552
goto @MHRACE_10807

:MHRACE_2552
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MHRACE_2575
goto @MHRACE_10807

:MHRACE_2575
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MHRACE_2598
goto @MHRACE_10807

:MHRACE_2598
$TIMERC = 0
remove_blip $BLIP_CHASE_D1
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
add_blip_for_car_old $DIABLO1_CHEETAH1_MARKER = create_marker_above_car $DIABLO1_CHEETAH1 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH2_MARKER = create_marker_above_car $DIABLO1_CHEETAH2 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH3_MARKER = create_marker_above_car $DIABLO1_CHEETAH3 color 0 display 1
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
change_blip_scale $SECOND_BLIP size 2
dim_blip $SECOND_BLIP brightness_to 1
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
get_game_timer $GAME_TIMER_START_D1
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
display_onscreen_counter_with_string $DIABLO1_RACE_TIME 0 'DIAB1_5'

:MHRACE_2903
wait 0
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
$DIABLO1_POSITION = 0
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR1
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR2
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR3
if 
  $DIABLO1_POSITION == 0
goto_if_false @MHRACE_2991
print_now 'FIRST' time 100 1

:MHRACE_2991
if 
  $DIABLO1_POSITION == 1
goto_if_false @MHRACE_3023
print_now 'SECOND' time 100 1

:MHRACE_3023
if 
  $DIABLO1_POSITION == 2
goto_if_false @MHRACE_3055
print_now 'THIRD' time 100 1

:MHRACE_3055
if 
  $DIABLO1_POSITION == 3
goto_if_false @MHRACE_3087
print_now 'FOURTH' time 100 1

:MHRACE_3087
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MHRACE_3136
draw_corona 5.5 6 0 with_color 100 0 0 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
goto @MHRACE_3160

:MHRACE_3136
draw_corona 5.5 6 0 with_color 0 0 100 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MHRACE_3160
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @MHRACE_10807
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z radius 6.0 6.0 6.0
goto_if_false @MHRACE_4462
$PLAYER_CPCOUNTER += 1
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
add_one_off_sound 98 at 0.0 0.0 0.0
if 
  $PLAYER_CPCOUNTER == 1
goto_if_false @MHRACE_3311
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z

:MHRACE_3311
if 
  $PLAYER_CPCOUNTER == 2
goto_if_false @MHRACE_3377
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z

:MHRACE_3377
if 
  $PLAYER_CPCOUNTER == 3
goto_if_false @MHRACE_3443
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z

:MHRACE_3443
if 
  $PLAYER_CPCOUNTER == 4
goto_if_false @MHRACE_3509
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z

:MHRACE_3509
if 
  $PLAYER_CPCOUNTER == 5
goto_if_false @MHRACE_3575
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z

:MHRACE_3575
if 
  $PLAYER_CPCOUNTER == 6
goto_if_false @MHRACE_3665
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 42.0
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 42.0
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 42.0

:MHRACE_3665
if 
  $PLAYER_CPCOUNTER == 7
goto_if_false @MHRACE_3731
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z

:MHRACE_3731
if 
  $PLAYER_CPCOUNTER == 8
goto_if_false @MHRACE_3797
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z

:MHRACE_3797
if 
  $PLAYER_CPCOUNTER == 9
goto_if_false @MHRACE_3863
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z

:MHRACE_3863
if 
  $PLAYER_CPCOUNTER == 10
goto_if_false @MHRACE_3929
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z

:MHRACE_3929
if 
  $PLAYER_CPCOUNTER == 11
goto_if_false @MHRACE_3995
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z

:MHRACE_3995
if 
  $PLAYER_CPCOUNTER == 12
goto_if_false @MHRACE_4061
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z

:MHRACE_4061
if 
  $PLAYER_CPCOUNTER == 13
goto_if_false @MHRACE_4127
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z

:MHRACE_4127
if 
  $PLAYER_CPCOUNTER == 14
goto_if_false @MHRACE_4193
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z

:MHRACE_4193
if 
  $PLAYER_CPCOUNTER == 15
goto_if_false @MHRACE_4259
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z

:MHRACE_4259
if 
  $PLAYER_CPCOUNTER == 16
goto_if_false @MHRACE_4325
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z

:MHRACE_4325
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MHRACE_4391
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z

:MHRACE_4391
if 
  $PLAYER_CPCOUNTER == 18
goto_if_false @MHRACE_4416
goto @MHRACE_10824

:MHRACE_4416
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
dim_blip $SECOND_BLIP brightness_to 1
change_blip_scale $SECOND_BLIP size 2
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MHRACE_4462
if 
  not is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MHRACE_6401
get_car_health $CAR1_HEALTH = car $DIABLO1_CHEETAH1
if 
  500 > $CAR1_HEALTH
goto_if_false @MHRACE_4513
set_car_health $DIABLO1_CHEETAH1 health_to 1000

:MHRACE_4513
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR1_CPCOUNTER
goto_if_false @MHRACE_4579
if 
  is_int_var_greater_than_int_var $CAR1_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MHRACE_4565
$BEHIND_CAR1 = 1
goto @MHRACE_4572

:MHRACE_4565
$BEHIND_CAR1 = 0

:MHRACE_4572
goto @MHRACE_4791

:MHRACE_4579
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH1_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH1_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR1_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR1_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MHRACE_4784
$BEHIND_CAR1 = 0
goto @MHRACE_4791

:MHRACE_4784
$BEHIND_CAR1 = 1

:MHRACE_4791
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MHRACE_5053
if 
  $TIMERD_RESET_FLAG == 0
goto_if_false @MHRACE_4857
get_game_timer $TIMERD_STARTED
$TIMERD_RESET_FLAG = 1

:MHRACE_4857
if 
  $TIMERD_RESET_FLAG == 1
goto_if_false @MHRACE_5053
get_game_timer $TIMERD_CURRENT
set_var_int_to_var_int $TIMERD = $TIMERD_CURRENT
sub_int_var_from_int_var $TIMERD -= $TIMERD_STARTED
if 
  $TIMERD > 8000
goto_if_false @MHRACE_5053
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MHRACE_5053
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MHRACE_5053
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MHRACE_5053
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERD_RESET_FLAG = 0

:MHRACE_5053
if 
  not locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MHRACE_5110
get_car_coordinates $DIABLO1_CHEETAH1 position_to $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z
$TIMERD_RESET_FLAG = 0

:MHRACE_5110
if and
  is_car_upsidedown $DIABLO1_CHEETAH1
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MHRACE_5262
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MHRACE_5262
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MHRACE_5262
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MHRACE_5262
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MHRACE_5262
if 
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MHRACE_5303
if 
  not is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MHRACE_5303
$TIMERA_RESET_FLAG_D1 = 0

:MHRACE_5303
if 
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MHRACE_5515
if 
  $TIMERA_RESET_FLAG_D1 == 0
goto_if_false @MHRACE_5351
TIMERA = 0
$TIMERA_RESET_FLAG_D1 = 1

:MHRACE_5351
if and
  TIMERA > 5000
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MHRACE_5515
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MHRACE_5515
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MHRACE_5515
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MHRACE_5515
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERA_RESET_FLAG_D1 = 0

:MHRACE_5515
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1
goto_if_false @MHRACE_6394
$CAR1_CPCOUNTER += 1
if 
  $CAR1_CPCOUNTER == 1
goto_if_false @MHRACE_5600
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Z

:MHRACE_5600
if 
  $CAR1_CPCOUNTER == 2
goto_if_false @MHRACE_5662
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Z
switch_roads_on -311.125 250.875 60.5 -709.125 213.875 53.4375

:MHRACE_5662
if 
  $CAR1_CPCOUNTER == 3
goto_if_false @MHRACE_5704
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Z

:MHRACE_5704
if 
  $CAR1_CPCOUNTER == 4
goto_if_false @MHRACE_5746
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Z

:MHRACE_5746
if 
  $CAR1_CPCOUNTER == 5
goto_if_false @MHRACE_5788
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Z

:MHRACE_5788
if 
  $CAR1_CPCOUNTER == 6
goto_if_false @MHRACE_5830
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Z

:MHRACE_5830
if 
  $CAR1_CPCOUNTER == 7
goto_if_false @MHRACE_5872
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Z

:MHRACE_5872
if 
  $CAR1_CPCOUNTER == 8
goto_if_false @MHRACE_5914
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Z

:MHRACE_5914
if 
  $CAR1_CPCOUNTER == 9
goto_if_false @MHRACE_5956
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Z

:MHRACE_5956
if 
  $CAR1_CPCOUNTER == 10
goto_if_false @MHRACE_5998
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Z

:MHRACE_5998
if 
  $CAR1_CPCOUNTER == 11
goto_if_false @MHRACE_6040
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Z

:MHRACE_6040
if 
  $CAR1_CPCOUNTER == 12
goto_if_false @MHRACE_6082
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Z

:MHRACE_6082
if 
  $CAR1_CPCOUNTER == 13
goto_if_false @MHRACE_6124
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Z

:MHRACE_6124
if 
  $CAR1_CPCOUNTER == 14
goto_if_false @MHRACE_6166
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Z

:MHRACE_6166
if 
  $CAR1_CPCOUNTER == 15
goto_if_false @MHRACE_6208
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Z

:MHRACE_6208
if 
  $CAR1_CPCOUNTER == 16
goto_if_false @MHRACE_6250
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Z

:MHRACE_6250
if 
  $CAR1_CPCOUNTER == 17
goto_if_false @MHRACE_6300
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 6.0

:MHRACE_6300
if 
  $CAR1_CPCOUNTER == 18
goto_if_false @MHRACE_6340
print_now 'DIAB1_3' time 5000 1
goto @MHRACE_10807

:MHRACE_6340
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 == 7.0
goto_if_false @MHRACE_6380
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
goto @MHRACE_6394

:MHRACE_6380
car_goto_coordinates_accurate $DIABLO1_CHEETAH1 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1

:MHRACE_6394
goto @MHRACE_6578

:MHRACE_6401
if 
  not is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MHRACE_6431
$BEHIND_CAR1 = 0
$CAR1_CPCOUNTER = 0

:MHRACE_6431
if 
  is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MHRACE_6578
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MHRACE_6578
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MHRACE_6578
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MHRACE_6578
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MHRACE_6578
if 
  not is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MHRACE_8497
get_car_health $CAR2_HEALTH = car $DIABLO1_CHEETAH2
if 
  500 > $CAR2_HEALTH
goto_if_false @MHRACE_6629
set_car_health $DIABLO1_CHEETAH2 health_to 1000

:MHRACE_6629
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR2_CPCOUNTER
goto_if_false @MHRACE_6695
if 
  is_int_var_greater_than_int_var $CAR2_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MHRACE_6681
$BEHIND_CAR2 = 1
goto @MHRACE_6688

:MHRACE_6681
$BEHIND_CAR2 = 0

:MHRACE_6688
goto @MHRACE_6907

:MHRACE_6695
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH2_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH2_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR2_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR2_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MHRACE_6900
$BEHIND_CAR2 = 0
goto @MHRACE_6907

:MHRACE_6900
$BEHIND_CAR2 = 1

:MHRACE_6907
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MHRACE_7169
if 
  $TIMERE_RESET_FLAG == 0
goto_if_false @MHRACE_6973
get_game_timer $TIMERE_STARTED
$TIMERE_RESET_FLAG = 1

:MHRACE_6973
if 
  $TIMERE_RESET_FLAG == 1
goto_if_false @MHRACE_7169
get_game_timer $TIMERE_CURRENT
set_var_int_to_var_int $TIMERE = $TIMERE_CURRENT
sub_int_var_from_int_var $TIMERE -= $TIMERE_STARTED
if 
  $TIMERE > 8000
goto_if_false @MHRACE_7169
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MHRACE_7169
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MHRACE_7169
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MHRACE_7169
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERE_RESET_FLAG = 0

:MHRACE_7169
if 
  not locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MHRACE_7226
get_car_coordinates $DIABLO1_CHEETAH2 position_to $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z
$TIMERE_RESET_FLAG = 0

:MHRACE_7226
if and
  is_car_upsidedown $DIABLO1_CHEETAH2
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MHRACE_7378
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MHRACE_7378
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MHRACE_7378
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MHRACE_7378
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MHRACE_7378
if 
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MHRACE_7419
if 
  not is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MHRACE_7419
$TIMERB_RESET_FLAG_D1 = 0

:MHRACE_7419
if 
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MHRACE_7631
if 
  $TIMERB_RESET_FLAG_D1 == 0
goto_if_false @MHRACE_7467
TIMERB = 0
$TIMERB_RESET_FLAG_D1 = 1

:MHRACE_7467
if and
  TIMERB > 5000
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MHRACE_7631
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MHRACE_7631
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MHRACE_7631
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MHRACE_7631
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERB_RESET_FLAG_D1 = 0

:MHRACE_7631
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2
goto_if_false @MHRACE_8490
$CAR2_CPCOUNTER += 1
if 
  $CAR2_CPCOUNTER == 1
goto_if_false @MHRACE_7716
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Z

:MHRACE_7716
if 
  $CAR2_CPCOUNTER == 2
goto_if_false @MHRACE_7758
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Z

:MHRACE_7758
if 
  $CAR2_CPCOUNTER == 3
goto_if_false @MHRACE_7800
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Z

:MHRACE_7800
if 
  $CAR2_CPCOUNTER == 4
goto_if_false @MHRACE_7842
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Z

:MHRACE_7842
if 
  $CAR2_CPCOUNTER == 5
goto_if_false @MHRACE_7884
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Z

:MHRACE_7884
if 
  $CAR2_CPCOUNTER == 6
goto_if_false @MHRACE_7926
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Z

:MHRACE_7926
if 
  $CAR2_CPCOUNTER == 7
goto_if_false @MHRACE_7968
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Z

:MHRACE_7968
if 
  $CAR2_CPCOUNTER == 8
goto_if_false @MHRACE_8010
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Z

:MHRACE_8010
if 
  $CAR2_CPCOUNTER == 9
goto_if_false @MHRACE_8052
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Z

:MHRACE_8052
if 
  $CAR2_CPCOUNTER == 10
goto_if_false @MHRACE_8094
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Z

:MHRACE_8094
if 
  $CAR2_CPCOUNTER == 11
goto_if_false @MHRACE_8136
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Z

:MHRACE_8136
if 
  $CAR2_CPCOUNTER == 12
goto_if_false @MHRACE_8178
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Z

:MHRACE_8178
if 
  $CAR2_CPCOUNTER == 13
goto_if_false @MHRACE_8220
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Z

:MHRACE_8220
if 
  $CAR2_CPCOUNTER == 14
goto_if_false @MHRACE_8262
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Z

:MHRACE_8262
if 
  $CAR2_CPCOUNTER == 15
goto_if_false @MHRACE_8304
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Z

:MHRACE_8304
if 
  $CAR2_CPCOUNTER == 16
goto_if_false @MHRACE_8346
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Z

:MHRACE_8346
if 
  $CAR2_CPCOUNTER == 17
goto_if_false @MHRACE_8396
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 6.0

:MHRACE_8396
if 
  $CAR2_CPCOUNTER == 18
goto_if_false @MHRACE_8436
print_now 'DIAB1_3' time 5000 1
goto @MHRACE_10807

:MHRACE_8436
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 == 7.0
goto_if_false @MHRACE_8476
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
goto @MHRACE_8490

:MHRACE_8476
car_goto_coordinates_accurate $DIABLO1_CHEETAH2 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2

:MHRACE_8490
goto @MHRACE_8674

:MHRACE_8497
if 
  not is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MHRACE_8527
$BEHIND_CAR2 = 0
$CAR2_CPCOUNTER = 0

:MHRACE_8527
if 
  is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MHRACE_8674
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MHRACE_8674
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MHRACE_8674
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MHRACE_8674
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MHRACE_8674
if 
  not is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MHRACE_10623
get_car_health $CAR3_HEALTH = car $DIABLO1_CHEETAH3
if 
  500 > $CAR3_HEALTH
goto_if_false @MHRACE_8725
set_car_health $DIABLO1_CHEETAH3 health_to 1000

:MHRACE_8725
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR3_CPCOUNTER
goto_if_false @MHRACE_8791
if 
  is_int_var_greater_than_int_var $CAR3_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MHRACE_8777
$BEHIND_CAR3 = 1
goto @MHRACE_8784

:MHRACE_8777
$BEHIND_CAR3 = 0

:MHRACE_8784
goto @MHRACE_9003

:MHRACE_8791
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH3_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH3_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR3_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR3_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MHRACE_8996
$BEHIND_CAR3 = 0
goto @MHRACE_9003

:MHRACE_8996
$BEHIND_CAR3 = 1

:MHRACE_9003
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MHRACE_9265
if 
  $TIMERF_RESET_FLAG == 0
goto_if_false @MHRACE_9069
get_game_timer $TIMERF_STARTED
$TIMERF_RESET_FLAG = 1

:MHRACE_9069
if 
  $TIMERF_RESET_FLAG == 1
goto_if_false @MHRACE_9265
get_game_timer $TIMERF_CURRENT
set_var_int_to_var_int $TIMERF = $TIMERF_CURRENT
sub_int_var_from_int_var $TIMERF -= $TIMERF_STARTED
if 
  $TIMERF > 8000
goto_if_false @MHRACE_9265
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MHRACE_9265
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MHRACE_9265
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MHRACE_9265
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERF_RESET_FLAG = 0

:MHRACE_9265
if 
  not locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MHRACE_9322
get_car_coordinates $DIABLO1_CHEETAH3 position_to $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z
$TIMERF_RESET_FLAG = 0

:MHRACE_9322
if and
  is_car_upsidedown $DIABLO1_CHEETAH3
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MHRACE_9474
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MHRACE_9474
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MHRACE_9474
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MHRACE_9474
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MHRACE_9474
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MHRACE_9515
if 
  not is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MHRACE_9515
$TIMERC_RESET_FLAG_D1 = 0

:MHRACE_9515
if 
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MHRACE_9757
if 
  $TIMERC_RESET_FLAG_D1 == 0
goto_if_false @MHRACE_9561
get_game_timer $TIMERC_STARTED
$TIMERC_RESET_FLAG_D1 = 1

:MHRACE_9561
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MHRACE_9757
get_game_timer $TIMERC_CURRENT
set_var_int_to_var_int $TIMERC = $TIMERC_CURRENT
sub_int_var_from_int_var $TIMERC -= $TIMERC_STARTED
if 
  $TIMERC > 5000
goto_if_false @MHRACE_9757
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MHRACE_9757
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MHRACE_9757
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MHRACE_9757
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERC_RESET_FLAG_D1 = 0

:MHRACE_9757
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3
goto_if_false @MHRACE_10616
$CAR3_CPCOUNTER += 1
if 
  $CAR3_CPCOUNTER == 1
goto_if_false @MHRACE_9842
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Z

:MHRACE_9842
if 
  $CAR3_CPCOUNTER == 2
goto_if_false @MHRACE_9884
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Z

:MHRACE_9884
if 
  $CAR3_CPCOUNTER == 3
goto_if_false @MHRACE_9926
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Z

:MHRACE_9926
if 
  $CAR3_CPCOUNTER == 4
goto_if_false @MHRACE_9968
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Z

:MHRACE_9968
if 
  $CAR3_CPCOUNTER == 5
goto_if_false @MHRACE_10010
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Z

:MHRACE_10010
if 
  $CAR3_CPCOUNTER == 6
goto_if_false @MHRACE_10052
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Z

:MHRACE_10052
if 
  $CAR3_CPCOUNTER == 7
goto_if_false @MHRACE_10094
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Z

:MHRACE_10094
if 
  $CAR3_CPCOUNTER == 8
goto_if_false @MHRACE_10136
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Z

:MHRACE_10136
if 
  $CAR3_CPCOUNTER == 9
goto_if_false @MHRACE_10178
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Z

:MHRACE_10178
if 
  $CAR3_CPCOUNTER == 10
goto_if_false @MHRACE_10220
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Z

:MHRACE_10220
if 
  $CAR3_CPCOUNTER == 11
goto_if_false @MHRACE_10262
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Z

:MHRACE_10262
if 
  $CAR3_CPCOUNTER == 12
goto_if_false @MHRACE_10304
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Z

:MHRACE_10304
if 
  $CAR3_CPCOUNTER == 13
goto_if_false @MHRACE_10346
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Z

:MHRACE_10346
if 
  $CAR3_CPCOUNTER == 14
goto_if_false @MHRACE_10388
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Z

:MHRACE_10388
if 
  $CAR3_CPCOUNTER == 15
goto_if_false @MHRACE_10430
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Z

:MHRACE_10430
if 
  $CAR3_CPCOUNTER == 16
goto_if_false @MHRACE_10472
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Z

:MHRACE_10472
if 
  $CAR3_CPCOUNTER == 17
goto_if_false @MHRACE_10522
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 6.0

:MHRACE_10522
if 
  $CAR3_CPCOUNTER == 18
goto_if_false @MHRACE_10562
print_now 'DIAB1_3' time 5000 1
goto @MHRACE_10807

:MHRACE_10562
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 == 7.0
goto_if_false @MHRACE_10602
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
goto @MHRACE_10616

:MHRACE_10602
car_goto_coordinates_accurate $DIABLO1_CHEETAH3 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3

:MHRACE_10616
goto @MHRACE_10800

:MHRACE_10623
if 
  not is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MHRACE_10653
$BEHIND_CAR3 = 0
$CAR3_CPCOUNTER = 0

:MHRACE_10653
if 
  is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MHRACE_10800
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MHRACE_10800
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MHRACE_10800
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MHRACE_10800
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MHRACE_10800
goto @MHRACE_2903

:MHRACE_10807
print_big 'M_FAIL' 2000 ms 1
return 

:MHRACE_10824
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
if 
  $MHRACE_PASS == 0
goto_if_false @MHRACE_11134
if 
  $MHRACE_CAR_PASS1 == 0
goto_if_false @MHRACE_10923
add_score $PLAYER_CHAR money += 12000
print_with_number_big 'M_PASS' 12000 5000 ms 1
register_unique_jump_found 
$MHRACE_CAR_PASS1 = 1
goto @MHRACE_11160

:MHRACE_10923
if 
  $MHRACE_CAR_PASS2 == 0
goto_if_false @MHRACE_10983
add_score $PLAYER_CHAR money += 13000
print_with_number_big 'M_PASS' 13000 5000 ms 1
register_unique_jump_found 
$MHRACE_CAR_PASS2 = 1
goto @MHRACE_11160

:MHRACE_10983
if 
  $MHRACE_CAR_PASS3 == 0
goto_if_false @MHRACE_11043
add_score $PLAYER_CHAR money += 14000
print_with_number_big 'M_PASS' 14000 5000 ms 1
register_unique_jump_found 
$MHRACE_CAR_PASS3 = 1
goto @MHRACE_11160

:MHRACE_11043
if 
  $MHRACE_CAR_PASS4 == 0
goto_if_false @MHRACE_11127
$MHRACE_CAR_PASS4 = 1
player_made_progress 1
$PROGRESS_100 += 1
remove_blip $RACE3
start_new_script @LRMARK 
add_score $PLAYER_CHAR money += 15000
print_with_number_big 'M_PASS' 15000 5000 ms 1
register_unique_jump_found 
$MHRACE_PASS = 1

:MHRACE_11127
goto @MHRACE_11160

:MHRACE_11134
add_score $PLAYER_CHAR money += 3000
print_with_number_big 'M_PASS' 3000 5000 ms 1

:MHRACE_11160
print_with_number_now 'DIAB1_2' $DIABLO1_RACE_TIME time 5000 1
register_el_burro_time $DIABLO1_RACE_TIME
clear_wanted_level $PLAYER_CHAR
play_mission_passed_tune 1
if 
  $FLAG_DIABLO1_PASSED_BEFORE == 0
goto_if_false @MHRACE_11224
$FLAG_DIABLO_MISSION1_PASSED = 1
$FLAG_DIABLO1_PASSED_BEFORE = 1

:MHRACE_11224
return 

:MHRACE_11226
switch_roads_on -311.125 250.875 60.5 -709.125 213.875 53.4375
remove_blip $DIABLO1_CHEETAH1_MARKER
remove_blip $DIABLO1_CHEETAH2_MARKER
remove_blip $DIABLO1_CHEETAH3_MARKER
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
mark_model_as_no_longer_needed $MHRACE_MODEL
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 101
clear_onscreen_counter $DIABLO1_RACE_TIME
$ONMISSION = 0
$ON_MISSION_FOR_DIABLOS = 0
mission_has_finished 
return 

//-------------Mission 46---------------
// Originally: Paparazzi Purge

:MSRACE
gosub @MSRACE_36
if 
  has_deatharrest_been_executed 
goto_if_false @MSRACE_27
gosub @MSRACE_10825

:MSRACE_27
gosub @MSRACE_11236
terminate_this_script 

:MSRACE_36
$ONMISSION = 1
$ON_MISSION_FOR_DIABLOS = 1
register_mission_given 
wait 0
script_name 'MSRACE'
$GAME_TIMER_START_D1 = 0
$DIABLO1_RACE_TIME = 0
$PLAYER_CPCOUNTER = 0
$CAR1_CPCOUNTER = 0
$CAR2_CPCOUNTER = 0
$CAR3_CPCOUNTER = 0
$BEHIND_CAR1 = 0
$BEHIND_CAR2 = 0
$BEHIND_CAR3 = 0
$DIABLO1_POSITION = 0
$TIMERA_RESET_FLAG_D1 = 0
$TIMERB_RESET_FLAG_D1 = 0
$TIMERC_RESET_FLAG_D1 = 0
$TIMERC_STARTED = 0
$TIMERC_CURRENT = 0
$TIMERC = 0
$TIMERD = 0
$TIMERD_STARTED = 0
$TIMERD_CURRENT = 0
$TIMERD_RESET_FLAG = 0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 7.0
$TIMERE_RESET_FLAG = 0
$TIMERF_RESET_FLAG = 0
$CAR1_STUCK_X = 0.0
$CAR1_STUCK_Y = 0.0
$CAR1_STUCK_Z = 0.0
$CAR2_STUCK_X = 0.0
$CAR2_STUCK_Y = 0.0
$CAR2_STUCK_Z = 0.0
$CAR3_STUCK_X = 0.0
$CAR3_STUCK_Y = 0.0
$CAR3_STUCK_Z = 0.0
$DIABLO1_CHECKPOINT1_X = 115.25
$DIABLO1_CHECKPOINT1_Y = -1310.125
$DIABLO1_CHECKPOINT1_Z = 26.0
$DIABLO1_CHECKPOINT2_X = 169.125
$DIABLO1_CHECKPOINT2_Y = -1616.438
$DIABLO1_CHECKPOINT2_Z = 26.0
$DIABLO1_CHECKPOINT3_X = 347.5625
$DIABLO1_CHECKPOINT3_Y = -1555.25
$DIABLO1_CHECKPOINT3_Z = 25.9375
$DIABLO1_CHECKPOINT4_X = 326.375
$DIABLO1_CHECKPOINT4_Y = -1401.5
$DIABLO1_CHECKPOINT4_Z = 26.0
$DIABLO1_CHECKPOINT5_X = 423.1875
$DIABLO1_CHECKPOINT5_Y = -1533.25
$DIABLO1_CHECKPOINT5_Z = 16.0
$DIABLO1_CHECKPOINT6_X = 426.5625
$DIABLO1_CHECKPOINT6_Y = -1074.5
$DIABLO1_CHECKPOINT6_Z = 26.0
$DIABLO1_CHECKPOINT7_X = 406.875
$DIABLO1_CHECKPOINT7_Y = -1035.875
$DIABLO1_CHECKPOINT7_Z = 26.0
$DIABLO1_CHECKPOINT8_X = 167.1875
$DIABLO1_CHECKPOINT8_Y = -1121.375
$DIABLO1_CHECKPOINT8_Z = 26.0
$DIABLO1_CHECKPOINT9_X = -63.1875
$DIABLO1_CHECKPOINT9_Y = -992.0
$DIABLO1_CHECKPOINT9_Z = 26.0
$DIABLO1_CHECKPOINT10_X = -8.0625
$DIABLO1_CHECKPOINT10_Y = -896.5
$DIABLO1_CHECKPOINT10_Z = 26.0
$DIABLO1_CHECKPOINT11_X = 20.375
$DIABLO1_CHECKPOINT11_Y = -286.5
$DIABLO1_CHECKPOINT11_Z = 16.0
$DIABLO1_CHECKPOINT12_X = 135.1875
$DIABLO1_CHECKPOINT12_Y = -56.5
$DIABLO1_CHECKPOINT12_Z = 17.4375
$DIABLO1_CHECKPOINT13_X = 278.3125
$DIABLO1_CHECKPOINT13_Y = -204.5
$DIABLO1_CHECKPOINT13_Z = 21.1875
$DIABLO1_CHECKPOINT14_X = 449.25
$DIABLO1_CHECKPOINT14_Y = -136.25
$DIABLO1_CHECKPOINT14_Z = 21.0625
$DIABLO1_CHECKPOINT15_X = 389.1875
$DIABLO1_CHECKPOINT15_Y = -401.1875
$DIABLO1_CHECKPOINT15_Z = 21.125
$DIABLO1_CHECKPOINT16_X = 202.0
$DIABLO1_CHECKPOINT16_Y = -441.625
$DIABLO1_CHECKPOINT16_Z = 26.0
$DIABLO1_CHECKPOINT17_X = 121.8125
$DIABLO1_CHECKPOINT17_Y = -911.3125
$DIABLO1_CHECKPOINT17_Z = 26.0
set_ped_density_multiplier 0.0
clear_area_of_chars 56.1875 -1083.813 30.0 29.125 -975.375 10.0
TIMERA = 0
load_special_character 1 'JOEY2'
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
if 
  $MSRACE_CAR_PASS1 == 0
goto_if_false @MSRACE_1103
do_fade 0 1000
wait 1000
print_big 'MSR_2' 3000 ms 2
clear_area 1 at 177.875 -1261.125 26.125 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 191.4375 -1277.438 36.125 rotation 0.0 0.0 0.0
point_camera_at_point 177.875 -1261.125 26.125 switchstyle 2
create_char $JOEY_CHAR = create_actor 21 26 at 177.875 -1261.125 25.125
set_player_coordinates $PLAYER_CHAR at 180.8125 -1260.0 25.125
turn_char_to_face_char $JOEY_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $JOEY_CHAR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MSRACE_1103
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MSRACE_1103
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MSR_3' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MSRACE_1103
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MSR_4' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MSRACE_1103
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MSR_5' time 3000 1
wait 3000

:MSRACE_1103
clear_prints 
do_fade 0 1000
wait 1000
restore_camera_jumpcut 
delete_char $JOEY_CHAR
switch_widescreen 0
request_model 25
request_model 92
request_model 105
request_model 119

:MSRACE_1144
if or
  not has_model_loaded 92
  not has_model_loaded 105
  not has_model_loaded 119
  not has_model_loaded 25
goto_if_false @MSRACE_1182
wait 0
goto @MSRACE_1144

:MSRACE_1182
if 
  $MSRACE_CAR_PASS1 == 0
goto_if_false @MSRACE_1232
$MSRACE_MODEL = 152
print_now 'MSR_21' time 500000 1
goto @MSRACE_1380

:MSRACE_1232
if 
  $MSRACE_CAR_PASS2 == 0
goto_if_false @MSRACE_1281
$MSRACE_MODEL = 111
print_now 'MSR_22' time 500000 1
goto @MSRACE_1380

:MSRACE_1281
if 
  $MSRACE_CAR_PASS3 == 0
goto_if_false @MSRACE_1330
$MSRACE_MODEL = 90
print_now 'MSR_23' time 500000 1
goto @MSRACE_1380

:MSRACE_1330
if 
  $MSRACE_CAR_PASS4 == 0
goto_if_false @MSRACE_1380
$MSRACE_MODEL = 129
print_now 'MSR_24' time 50000 1
goto @MSRACE_1380

:MSRACE_1380
if 
  $MSRACE_PASS == 0
goto_if_false @MSRACE_1448
request_model $MSRACE_MODEL

:MSRACE_1403
wait 0
if 
  has_model_loaded $MSRACE_MODEL
goto_if_false @MSRACE_1403
create_car $MSRACECAR = create_car $MSRACE_MODEL at 34.25 -1032.188 26.0
set_car_heading $MSRACECAR z_angle_to 180.0

:MSRACE_1448
set_player_coordinates $PLAYER_CHAR at 180.8125 -1260.0 25.125
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_behind_player 
restore_camera_jumpcut 
switch_roads_off 25.625 -945.125 30.0 56.9375 -1601.063 0.125
create_car $DIABLO1_CHEETAH1 = create_car 92 at 39.25 -1032.188 26.0
lock_car_doors $DIABLO1_CHEETAH1 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH1 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH1 watertight 1
set_car_strong $DIABLO1_CHEETAH1 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH1 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH2 = create_car 105 at 44.4375 -1032.188 26.0
lock_car_doors $DIABLO1_CHEETAH2 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH2 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH2 watertight 1
set_car_strong $DIABLO1_CHEETAH2 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH2 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH3 = create_car 119 at 49.25 -1032.188 26.0
lock_car_doors $DIABLO1_CHEETAH3 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH3 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH3 watertight 1
set_car_strong $DIABLO1_CHEETAH3 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH3 not_damaged_when_upside_down 1
create_char_inside_car $DIABLO1_CHEETAH1_DRIVER = create_actor 4 25 in_car $DIABLO1_CHEETAH1
create_char_inside_car $DIABLO1_CHEETAH2_DRIVER = create_actor 4 25 in_car $DIABLO1_CHEETAH2
create_char_inside_car $DIABLO1_CHEETAH3_DRIVER = create_actor 4 25 in_car $DIABLO1_CHEETAH3
set_char_cant_be_dragged_out $DIABLO1_CHEETAH1_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH2_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH3_DRIVER locked_while_in_vehicle 1
set_car_heading $DIABLO1_CHEETAH1 z_angle_to 180.0
set_car_heading $DIABLO1_CHEETAH2 z_angle_to 180.0
set_car_heading $DIABLO1_CHEETAH3 z_angle_to 180.0
car_set_idle $DIABLO1_CHEETAH1
car_set_idle $DIABLO1_CHEETAH2
car_set_idle $DIABLO1_CHEETAH3
set_car_driving_style $DIABLO1_CHEETAH1 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 35.0
set_car_driving_style $DIABLO1_CHEETAH2 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 35.0
set_car_driving_style $DIABLO1_CHEETAH3 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 35.0
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 1
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at 34.3125 -1032.188 26.0
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
if 
  $MSRACE_CAR_PASS1 == 0
goto_if_false @MSRACE_1915
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 40.0
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 40.0
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 40.0

:MSRACE_1915
if 
  $MSRACE_PASS == 1
goto_if_false @MSRACE_1948
print_now 'DIAB1_4' time 5000 1

:MSRACE_1948
wait 0
if or
  $MSRACE_PASS == 1
  is_player_in_model $PLAYER_CHAR driving_vehicle_type $MSRACE_MODEL
goto_if_false @MSRACE_2069
if 
  not locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 34.3125 -1032.188 26.0 radius 2.0 2.0 2.0
goto_if_false @MSRACE_2268
wait 0
if 
  locate_stopped_player_on_foot_3d $PLAYER_CHAR stopped 1 34.3125 -1032.188 26.0 radius 2.0 2.0 2.0
goto_if_false @MSRACE_2069
print_now 'YD1_G' time 5000 1

:MSRACE_2069
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MSRACE_2092
goto @MSRACE_10825

:MSRACE_2092
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MSRACE_2115
goto @MSRACE_10825

:MSRACE_2115
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MSRACE_2138
goto @MSRACE_10825

:MSRACE_2138
get_car_health $TIMERC = car $DIABLO1_CHEETAH1
if 
  1000 > $TIMERC
goto_if_false @MSRACE_2179
$TIMERC = 9
goto @MSRACE_2268

:MSRACE_2179
get_car_health $TIMERC = car $DIABLO1_CHEETAH2
if 
  1000 > $TIMERC
goto_if_false @MSRACE_2220
$TIMERC = 9
goto @MSRACE_2268

:MSRACE_2220
get_car_health $TIMERC = car $DIABLO1_CHEETAH3
if 
  1000 > $TIMERC
goto_if_false @MSRACE_2261
$TIMERC = 9
goto @MSRACE_2268

:MSRACE_2261
goto @MSRACE_1948

:MSRACE_2268
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 0
if 
  $TIMERC == 9
goto_if_false @MSRACE_2348
if 
  is_player_in_model $PLAYER_CHAR driving_vehicle_type $MSRACE_MODEL
goto_if_false @MSRACE_10825
print_big 'DIAB1_1' 1200 ms 4
goto @MSRACE_2513

:MSRACE_2348
set_player_control $PLAYER_CHAR can_move 0
restore_camera_jumpcut 
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1

:MSRACE_2513
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MSRACE_2536
goto @MSRACE_10825

:MSRACE_2536
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MSRACE_2559
goto @MSRACE_10825

:MSRACE_2559
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MSRACE_2582
goto @MSRACE_10825

:MSRACE_2582
$TIMERC = 0
remove_blip $BLIP_CHASE_D1
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
add_blip_for_car_old $DIABLO1_CHEETAH1_MARKER = create_marker_above_car $DIABLO1_CHEETAH1 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH2_MARKER = create_marker_above_car $DIABLO1_CHEETAH2 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH3_MARKER = create_marker_above_car $DIABLO1_CHEETAH3 color 0 display 1
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
change_blip_scale $SECOND_BLIP size 2
dim_blip $SECOND_BLIP brightness_to 1
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
get_game_timer $GAME_TIMER_START_D1
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
display_onscreen_counter_with_string $DIABLO1_RACE_TIME 0 'DIAB1_5'

:MSRACE_2887
wait 0
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
$DIABLO1_POSITION = 0
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR1
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR2
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR3
if 
  $DIABLO1_POSITION == 0
goto_if_false @MSRACE_2975
print_now 'FIRST' time 100 1

:MSRACE_2975
if 
  $DIABLO1_POSITION == 1
goto_if_false @MSRACE_3007
print_now 'SECOND' time 100 1

:MSRACE_3007
if 
  $DIABLO1_POSITION == 2
goto_if_false @MSRACE_3039
print_now 'THIRD' time 100 1

:MSRACE_3039
if 
  $DIABLO1_POSITION == 3
goto_if_false @MSRACE_3071
print_now 'FOURTH' time 100 1

:MSRACE_3071
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MSRACE_3120
draw_corona 5.5 6 0 with_color 100 0 0 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
goto @MSRACE_3144

:MSRACE_3120
draw_corona 5.5 6 0 with_color 0 0 100 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MSRACE_3144
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @MSRACE_10825
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z radius 6.0 6.0 6.0
goto_if_false @MSRACE_4446
$PLAYER_CPCOUNTER += 1
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
add_one_off_sound 98 at 0.0 0.0 0.0
if 
  $PLAYER_CPCOUNTER == 1
goto_if_false @MSRACE_3295
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z

:MSRACE_3295
if 
  $PLAYER_CPCOUNTER == 2
goto_if_false @MSRACE_3361
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z

:MSRACE_3361
if 
  $PLAYER_CPCOUNTER == 3
goto_if_false @MSRACE_3427
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z

:MSRACE_3427
if 
  $PLAYER_CPCOUNTER == 4
goto_if_false @MSRACE_3493
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z

:MSRACE_3493
if 
  $PLAYER_CPCOUNTER == 5
goto_if_false @MSRACE_3559
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z

:MSRACE_3559
if 
  $PLAYER_CPCOUNTER == 6
goto_if_false @MSRACE_3649
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 42.0
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 42.0
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 42.0

:MSRACE_3649
if 
  $PLAYER_CPCOUNTER == 7
goto_if_false @MSRACE_3715
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z

:MSRACE_3715
if 
  $PLAYER_CPCOUNTER == 8
goto_if_false @MSRACE_3781
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z

:MSRACE_3781
if 
  $PLAYER_CPCOUNTER == 9
goto_if_false @MSRACE_3847
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z

:MSRACE_3847
if 
  $PLAYER_CPCOUNTER == 10
goto_if_false @MSRACE_3913
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z

:MSRACE_3913
if 
  $PLAYER_CPCOUNTER == 11
goto_if_false @MSRACE_3979
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z

:MSRACE_3979
if 
  $PLAYER_CPCOUNTER == 12
goto_if_false @MSRACE_4045
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z

:MSRACE_4045
if 
  $PLAYER_CPCOUNTER == 13
goto_if_false @MSRACE_4111
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z

:MSRACE_4111
if 
  $PLAYER_CPCOUNTER == 14
goto_if_false @MSRACE_4177
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z

:MSRACE_4177
if 
  $PLAYER_CPCOUNTER == 15
goto_if_false @MSRACE_4243
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z

:MSRACE_4243
if 
  $PLAYER_CPCOUNTER == 16
goto_if_false @MSRACE_4309
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z

:MSRACE_4309
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MSRACE_4375
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z

:MSRACE_4375
if 
  $PLAYER_CPCOUNTER == 18
goto_if_false @MSRACE_4400
goto @MSRACE_10842

:MSRACE_4400
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
dim_blip $SECOND_BLIP brightness_to 1
change_blip_scale $SECOND_BLIP size 2
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MSRACE_4446
if 
  not is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MSRACE_6419
get_car_health $CAR1_HEALTH = car $DIABLO1_CHEETAH1
if 
  500 > $CAR1_HEALTH
goto_if_false @MSRACE_4497
set_car_health $DIABLO1_CHEETAH1 health_to 1000

:MSRACE_4497
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR1_CPCOUNTER
goto_if_false @MSRACE_4563
if 
  is_int_var_greater_than_int_var $CAR1_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MSRACE_4549
$BEHIND_CAR1 = 1
goto @MSRACE_4556

:MSRACE_4549
$BEHIND_CAR1 = 0

:MSRACE_4556
goto @MSRACE_4775

:MSRACE_4563
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH1_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH1_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR1_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR1_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MSRACE_4768
$BEHIND_CAR1 = 0
goto @MSRACE_4775

:MSRACE_4768
$BEHIND_CAR1 = 1

:MSRACE_4775
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MSRACE_5037
if 
  $TIMERD_RESET_FLAG == 0
goto_if_false @MSRACE_4841
get_game_timer $TIMERD_STARTED
$TIMERD_RESET_FLAG = 1

:MSRACE_4841
if 
  $TIMERD_RESET_FLAG == 1
goto_if_false @MSRACE_5037
get_game_timer $TIMERD_CURRENT
set_var_int_to_var_int $TIMERD = $TIMERD_CURRENT
sub_int_var_from_int_var $TIMERD -= $TIMERD_STARTED
if 
  $TIMERD > 8000
goto_if_false @MSRACE_5037
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MSRACE_5037
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MSRACE_5037
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MSRACE_5037
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERD_RESET_FLAG = 0

:MSRACE_5037
if 
  not locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MSRACE_5094
get_car_coordinates $DIABLO1_CHEETAH1 position_to $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z
$TIMERD_RESET_FLAG = 0

:MSRACE_5094
if and
  is_car_upsidedown $DIABLO1_CHEETAH1
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MSRACE_5246
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MSRACE_5246
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MSRACE_5246
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MSRACE_5246
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MSRACE_5246
if 
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MSRACE_5287
if 
  not is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MSRACE_5287
$TIMERA_RESET_FLAG_D1 = 0

:MSRACE_5287
if 
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MSRACE_5499
if 
  $TIMERA_RESET_FLAG_D1 == 0
goto_if_false @MSRACE_5335
TIMERA = 0
$TIMERA_RESET_FLAG_D1 = 1

:MSRACE_5335
if and
  TIMERA > 5000
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MSRACE_5499
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MSRACE_5499
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MSRACE_5499
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MSRACE_5499
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERA_RESET_FLAG_D1 = 0

:MSRACE_5499
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1
goto_if_false @MSRACE_6412
$CAR1_CPCOUNTER += 1
if 
  $CAR1_CPCOUNTER == 1
goto_if_false @MSRACE_5584
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Z

:MSRACE_5584
if 
  $CAR1_CPCOUNTER == 2
goto_if_false @MSRACE_5680
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Z
switch_roads_on 25.625 -945.125 30.0 56.9375 -1601.063 0.125
generate_random_int_in_range $MSRACE_POLICE = random_int 1 10
if 
  $MSRACE_POLICE > 8
goto_if_false @MSRACE_5680
alter_wanted_level $PLAYER_CHAR wanted_level_to 2

:MSRACE_5680
if 
  $CAR1_CPCOUNTER == 3
goto_if_false @MSRACE_5722
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Z

:MSRACE_5722
if 
  $CAR1_CPCOUNTER == 4
goto_if_false @MSRACE_5764
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Z

:MSRACE_5764
if 
  $CAR1_CPCOUNTER == 5
goto_if_false @MSRACE_5806
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Z

:MSRACE_5806
if 
  $CAR1_CPCOUNTER == 6
goto_if_false @MSRACE_5848
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Z

:MSRACE_5848
if 
  $CAR1_CPCOUNTER == 7
goto_if_false @MSRACE_5890
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Z

:MSRACE_5890
if 
  $CAR1_CPCOUNTER == 8
goto_if_false @MSRACE_5932
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Z

:MSRACE_5932
if 
  $CAR1_CPCOUNTER == 9
goto_if_false @MSRACE_5974
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Z

:MSRACE_5974
if 
  $CAR1_CPCOUNTER == 10
goto_if_false @MSRACE_6016
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Z

:MSRACE_6016
if 
  $CAR1_CPCOUNTER == 11
goto_if_false @MSRACE_6058
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Z

:MSRACE_6058
if 
  $CAR1_CPCOUNTER == 12
goto_if_false @MSRACE_6100
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Z

:MSRACE_6100
if 
  $CAR1_CPCOUNTER == 13
goto_if_false @MSRACE_6142
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Z

:MSRACE_6142
if 
  $CAR1_CPCOUNTER == 14
goto_if_false @MSRACE_6184
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Z

:MSRACE_6184
if 
  $CAR1_CPCOUNTER == 15
goto_if_false @MSRACE_6226
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Z

:MSRACE_6226
if 
  $CAR1_CPCOUNTER == 16
goto_if_false @MSRACE_6268
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Z

:MSRACE_6268
if 
  $CAR1_CPCOUNTER == 17
goto_if_false @MSRACE_6318
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 6.0

:MSRACE_6318
if 
  $CAR1_CPCOUNTER == 18
goto_if_false @MSRACE_6358
print_now 'DIAB1_3' time 5000 1
goto @MSRACE_10825

:MSRACE_6358
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 == 7.0
goto_if_false @MSRACE_6398
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
goto @MSRACE_6412

:MSRACE_6398
car_goto_coordinates_accurate $DIABLO1_CHEETAH1 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1

:MSRACE_6412
goto @MSRACE_6596

:MSRACE_6419
if 
  not is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MSRACE_6449
$BEHIND_CAR1 = 0
$CAR1_CPCOUNTER = 0

:MSRACE_6449
if 
  is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MSRACE_6596
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MSRACE_6596
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MSRACE_6596
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MSRACE_6596
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MSRACE_6596
if 
  not is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MSRACE_8515
get_car_health $CAR2_HEALTH = car $DIABLO1_CHEETAH2
if 
  500 > $CAR2_HEALTH
goto_if_false @MSRACE_6647
set_car_health $DIABLO1_CHEETAH2 health_to 1000

:MSRACE_6647
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR2_CPCOUNTER
goto_if_false @MSRACE_6713
if 
  is_int_var_greater_than_int_var $CAR2_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MSRACE_6699
$BEHIND_CAR2 = 1
goto @MSRACE_6706

:MSRACE_6699
$BEHIND_CAR2 = 0

:MSRACE_6706
goto @MSRACE_6925

:MSRACE_6713
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH2_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH2_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR2_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR2_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MSRACE_6918
$BEHIND_CAR2 = 0
goto @MSRACE_6925

:MSRACE_6918
$BEHIND_CAR2 = 1

:MSRACE_6925
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MSRACE_7187
if 
  $TIMERE_RESET_FLAG == 0
goto_if_false @MSRACE_6991
get_game_timer $TIMERE_STARTED
$TIMERE_RESET_FLAG = 1

:MSRACE_6991
if 
  $TIMERE_RESET_FLAG == 1
goto_if_false @MSRACE_7187
get_game_timer $TIMERE_CURRENT
set_var_int_to_var_int $TIMERE = $TIMERE_CURRENT
sub_int_var_from_int_var $TIMERE -= $TIMERE_STARTED
if 
  $TIMERE > 8000
goto_if_false @MSRACE_7187
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MSRACE_7187
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MSRACE_7187
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MSRACE_7187
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERE_RESET_FLAG = 0

:MSRACE_7187
if 
  not locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MSRACE_7244
get_car_coordinates $DIABLO1_CHEETAH2 position_to $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z
$TIMERE_RESET_FLAG = 0

:MSRACE_7244
if and
  is_car_upsidedown $DIABLO1_CHEETAH2
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MSRACE_7396
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MSRACE_7396
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MSRACE_7396
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MSRACE_7396
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MSRACE_7396
if 
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MSRACE_7437
if 
  not is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MSRACE_7437
$TIMERB_RESET_FLAG_D1 = 0

:MSRACE_7437
if 
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MSRACE_7649
if 
  $TIMERB_RESET_FLAG_D1 == 0
goto_if_false @MSRACE_7485
TIMERB = 0
$TIMERB_RESET_FLAG_D1 = 1

:MSRACE_7485
if and
  TIMERB > 5000
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MSRACE_7649
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MSRACE_7649
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MSRACE_7649
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MSRACE_7649
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERB_RESET_FLAG_D1 = 0

:MSRACE_7649
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2
goto_if_false @MSRACE_8508
$CAR2_CPCOUNTER += 1
if 
  $CAR2_CPCOUNTER == 1
goto_if_false @MSRACE_7734
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Z

:MSRACE_7734
if 
  $CAR2_CPCOUNTER == 2
goto_if_false @MSRACE_7776
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Z

:MSRACE_7776
if 
  $CAR2_CPCOUNTER == 3
goto_if_false @MSRACE_7818
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Z

:MSRACE_7818
if 
  $CAR2_CPCOUNTER == 4
goto_if_false @MSRACE_7860
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Z

:MSRACE_7860
if 
  $CAR2_CPCOUNTER == 5
goto_if_false @MSRACE_7902
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Z

:MSRACE_7902
if 
  $CAR2_CPCOUNTER == 6
goto_if_false @MSRACE_7944
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Z

:MSRACE_7944
if 
  $CAR2_CPCOUNTER == 7
goto_if_false @MSRACE_7986
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Z

:MSRACE_7986
if 
  $CAR2_CPCOUNTER == 8
goto_if_false @MSRACE_8028
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Z

:MSRACE_8028
if 
  $CAR2_CPCOUNTER == 9
goto_if_false @MSRACE_8070
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Z

:MSRACE_8070
if 
  $CAR2_CPCOUNTER == 10
goto_if_false @MSRACE_8112
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Z

:MSRACE_8112
if 
  $CAR2_CPCOUNTER == 11
goto_if_false @MSRACE_8154
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Z

:MSRACE_8154
if 
  $CAR2_CPCOUNTER == 12
goto_if_false @MSRACE_8196
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Z

:MSRACE_8196
if 
  $CAR2_CPCOUNTER == 13
goto_if_false @MSRACE_8238
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Z

:MSRACE_8238
if 
  $CAR2_CPCOUNTER == 14
goto_if_false @MSRACE_8280
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Z

:MSRACE_8280
if 
  $CAR2_CPCOUNTER == 15
goto_if_false @MSRACE_8322
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Z

:MSRACE_8322
if 
  $CAR2_CPCOUNTER == 16
goto_if_false @MSRACE_8364
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Z

:MSRACE_8364
if 
  $CAR2_CPCOUNTER == 17
goto_if_false @MSRACE_8414
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 6.0

:MSRACE_8414
if 
  $CAR2_CPCOUNTER == 18
goto_if_false @MSRACE_8454
print_now 'DIAB1_3' time 5000 1
goto @MSRACE_10825

:MSRACE_8454
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 == 7.0
goto_if_false @MSRACE_8494
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
goto @MSRACE_8508

:MSRACE_8494
car_goto_coordinates_accurate $DIABLO1_CHEETAH2 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2

:MSRACE_8508
goto @MSRACE_8692

:MSRACE_8515
if 
  not is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MSRACE_8545
$BEHIND_CAR2 = 0
$CAR2_CPCOUNTER = 0

:MSRACE_8545
if 
  is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MSRACE_8692
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MSRACE_8692
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MSRACE_8692
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MSRACE_8692
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MSRACE_8692
if 
  not is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MSRACE_10641
get_car_health $CAR3_HEALTH = car $DIABLO1_CHEETAH3
if 
  500 > $CAR3_HEALTH
goto_if_false @MSRACE_8743
set_car_health $DIABLO1_CHEETAH3 health_to 1000

:MSRACE_8743
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR3_CPCOUNTER
goto_if_false @MSRACE_8809
if 
  is_int_var_greater_than_int_var $CAR3_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MSRACE_8795
$BEHIND_CAR3 = 1
goto @MSRACE_8802

:MSRACE_8795
$BEHIND_CAR3 = 0

:MSRACE_8802
goto @MSRACE_9021

:MSRACE_8809
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH3_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH3_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR3_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR3_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MSRACE_9014
$BEHIND_CAR3 = 0
goto @MSRACE_9021

:MSRACE_9014
$BEHIND_CAR3 = 1

:MSRACE_9021
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MSRACE_9283
if 
  $TIMERF_RESET_FLAG == 0
goto_if_false @MSRACE_9087
get_game_timer $TIMERF_STARTED
$TIMERF_RESET_FLAG = 1

:MSRACE_9087
if 
  $TIMERF_RESET_FLAG == 1
goto_if_false @MSRACE_9283
get_game_timer $TIMERF_CURRENT
set_var_int_to_var_int $TIMERF = $TIMERF_CURRENT
sub_int_var_from_int_var $TIMERF -= $TIMERF_STARTED
if 
  $TIMERF > 8000
goto_if_false @MSRACE_9283
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MSRACE_9283
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MSRACE_9283
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MSRACE_9283
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERF_RESET_FLAG = 0

:MSRACE_9283
if 
  not locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MSRACE_9340
get_car_coordinates $DIABLO1_CHEETAH3 position_to $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z
$TIMERF_RESET_FLAG = 0

:MSRACE_9340
if and
  is_car_upsidedown $DIABLO1_CHEETAH3
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MSRACE_9492
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MSRACE_9492
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MSRACE_9492
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MSRACE_9492
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MSRACE_9492
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MSRACE_9533
if 
  not is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MSRACE_9533
$TIMERC_RESET_FLAG_D1 = 0

:MSRACE_9533
if 
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MSRACE_9775
if 
  $TIMERC_RESET_FLAG_D1 == 0
goto_if_false @MSRACE_9579
get_game_timer $TIMERC_STARTED
$TIMERC_RESET_FLAG_D1 = 1

:MSRACE_9579
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MSRACE_9775
get_game_timer $TIMERC_CURRENT
set_var_int_to_var_int $TIMERC = $TIMERC_CURRENT
sub_int_var_from_int_var $TIMERC -= $TIMERC_STARTED
if 
  $TIMERC > 5000
goto_if_false @MSRACE_9775
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MSRACE_9775
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MSRACE_9775
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MSRACE_9775
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERC_RESET_FLAG_D1 = 0

:MSRACE_9775
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3
goto_if_false @MSRACE_10634
$CAR3_CPCOUNTER += 1
if 
  $CAR3_CPCOUNTER == 1
goto_if_false @MSRACE_9860
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Z

:MSRACE_9860
if 
  $CAR3_CPCOUNTER == 2
goto_if_false @MSRACE_9902
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Z

:MSRACE_9902
if 
  $CAR3_CPCOUNTER == 3
goto_if_false @MSRACE_9944
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Z

:MSRACE_9944
if 
  $CAR3_CPCOUNTER == 4
goto_if_false @MSRACE_9986
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Z

:MSRACE_9986
if 
  $CAR3_CPCOUNTER == 5
goto_if_false @MSRACE_10028
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Z

:MSRACE_10028
if 
  $CAR3_CPCOUNTER == 6
goto_if_false @MSRACE_10070
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Z

:MSRACE_10070
if 
  $CAR3_CPCOUNTER == 7
goto_if_false @MSRACE_10112
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Z

:MSRACE_10112
if 
  $CAR3_CPCOUNTER == 8
goto_if_false @MSRACE_10154
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Z

:MSRACE_10154
if 
  $CAR3_CPCOUNTER == 9
goto_if_false @MSRACE_10196
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Z

:MSRACE_10196
if 
  $CAR3_CPCOUNTER == 10
goto_if_false @MSRACE_10238
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Z

:MSRACE_10238
if 
  $CAR3_CPCOUNTER == 11
goto_if_false @MSRACE_10280
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Z

:MSRACE_10280
if 
  $CAR3_CPCOUNTER == 12
goto_if_false @MSRACE_10322
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Z

:MSRACE_10322
if 
  $CAR3_CPCOUNTER == 13
goto_if_false @MSRACE_10364
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Z

:MSRACE_10364
if 
  $CAR3_CPCOUNTER == 14
goto_if_false @MSRACE_10406
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Z

:MSRACE_10406
if 
  $CAR3_CPCOUNTER == 15
goto_if_false @MSRACE_10448
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Z

:MSRACE_10448
if 
  $CAR3_CPCOUNTER == 16
goto_if_false @MSRACE_10490
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Z

:MSRACE_10490
if 
  $CAR3_CPCOUNTER == 17
goto_if_false @MSRACE_10540
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 6.0

:MSRACE_10540
if 
  $CAR3_CPCOUNTER == 18
goto_if_false @MSRACE_10580
print_now 'DIAB1_3' time 5000 1
goto @MSRACE_10825

:MSRACE_10580
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 == 7.0
goto_if_false @MSRACE_10620
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
goto @MSRACE_10634

:MSRACE_10620
car_goto_coordinates_accurate $DIABLO1_CHEETAH3 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3

:MSRACE_10634
goto @MSRACE_10818

:MSRACE_10641
if 
  not is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MSRACE_10671
$BEHIND_CAR3 = 0
$CAR3_CPCOUNTER = 0

:MSRACE_10671
if 
  is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MSRACE_10818
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MSRACE_10818
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MSRACE_10818
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MSRACE_10818
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MSRACE_10818
goto @MSRACE_2887

:MSRACE_10825
print_big 'M_FAIL' 2000 ms 1
return 

:MSRACE_10842
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
if 
  $MSRACE_PASS == 0
goto_if_false @MSRACE_11144
if 
  $MSRACE_CAR_PASS1 == 0
goto_if_false @MSRACE_10941
add_score $PLAYER_CHAR money += 6000
print_with_number_big 'M_PASS' 6000 5000 ms 1
register_unique_jump_found 
$MSRACE_CAR_PASS1 = 1
goto @MSRACE_11170

:MSRACE_10941
if 
  $MSRACE_CAR_PASS2 == 0
goto_if_false @MSRACE_11001
add_score $PLAYER_CHAR money += 7000
print_with_number_big 'M_PASS' 7000 5000 ms 1
register_unique_jump_found 
$MSRACE_CAR_PASS2 = 1
goto @MSRACE_11170

:MSRACE_11001
if 
  $MSRACE_CAR_PASS3 == 0
goto_if_false @MSRACE_11061
add_score $PLAYER_CHAR money += 10000
print_with_number_big 'M_PASS' 10000 5000 ms 1
register_unique_jump_found 
$MSRACE_CAR_PASS3 = 1
goto @MSRACE_11170

:MSRACE_11061
if 
  $MSRACE_CAR_PASS4 == 0
goto_if_false @MSRACE_11137
$MSRACE_CAR_PASS4 = 1
player_made_progress 1
$PROGRESS_100 += 1
add_score $PLAYER_CHAR money += 11000
print_with_number_big 'M_PASS' 11000 5000 ms 1
register_unique_jump_found 
$MSRACE_PASS = 1
remove_blip $RACE2

:MSRACE_11137
goto @MSRACE_11170

:MSRACE_11144
add_score $PLAYER_CHAR money += 2000
print_with_number_big 'M_PASS' 2000 5000 ms 1

:MSRACE_11170
print_with_number_now 'DIAB1_2' $DIABLO1_RACE_TIME time 5000 1
register_el_burro_time $DIABLO1_RACE_TIME
clear_wanted_level $PLAYER_CHAR
play_mission_passed_tune 1
if 
  $FLAG_DIABLO1_PASSED_BEFORE == 0
goto_if_false @MSRACE_11234
$FLAG_DIABLO_MISSION1_PASSED = 1
$FLAG_DIABLO1_PASSED_BEFORE = 1

:MSRACE_11234
return 

:MSRACE_11236
switch_roads_on 25.625 -945.125 30.0 56.9375 -1601.063 0.125
remove_blip $DIABLO1_CHEETAH1_MARKER
remove_blip $DIABLO1_CHEETAH2_MARKER
remove_blip $DIABLO1_CHEETAH3_MARKER
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
mark_model_as_no_longer_needed $MSRACE_MODEL
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 92
mark_model_as_no_longer_needed 105
mark_model_as_no_longer_needed 119
clear_onscreen_counter $DIABLO1_RACE_TIME
$ONMISSION = 0
$ON_MISSION_FOR_DIABLOS = 0
mission_has_finished 
return 

//-------------Mission 47---------------
// Originally: Payday For Ray

:MPRACE
gosub @MPRACE_36
if 
  has_deatharrest_been_executed 
goto_if_false @MPRACE_27
gosub @MPRACE_10704

:MPRACE_27
gosub @MPRACE_11115
terminate_this_script 

:MPRACE_36
$ONMISSION = 1
$ON_MISSION_FOR_DIABLOS = 1
register_mission_given 
wait 0
script_name 'MPRACE'
$GAME_TIMER_START_D1 = 0
$DIABLO1_RACE_TIME = 0
$PLAYER_CPCOUNTER = 0
$CAR1_CPCOUNTER = 0
$CAR2_CPCOUNTER = 0
$CAR3_CPCOUNTER = 0
$BEHIND_CAR1 = 0
$BEHIND_CAR2 = 0
$BEHIND_CAR3 = 0
$DIABLO1_POSITION = 0
$TIMERA_RESET_FLAG_D1 = 0
$TIMERB_RESET_FLAG_D1 = 0
$TIMERC_RESET_FLAG_D1 = 0
$TIMERC_STARTED = 0
$TIMERC_CURRENT = 0
$TIMERC = 0
$TIMERD = 0
$TIMERD_STARTED = 0
$TIMERD_CURRENT = 0
$TIMERD_RESET_FLAG = 0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 7.0
$TIMERE_RESET_FLAG = 0
$TIMERF_RESET_FLAG = 0
$CAR1_STUCK_X = 0.0
$CAR1_STUCK_Y = 0.0
$CAR1_STUCK_Z = 0.0
$CAR2_STUCK_X = 0.0
$CAR2_STUCK_Y = 0.0
$CAR2_STUCK_Z = 0.0
$CAR3_STUCK_X = 0.0
$CAR3_STUCK_Y = 0.0
$CAR3_STUCK_Z = 0.0
$DIABLO1_CHECKPOINT1_X = 1050.813
$DIABLO1_CHECKPOINT1_Y = -929.5
$DIABLO1_CHECKPOINT1_Z = 14.375
$DIABLO1_CHECKPOINT2_X = 1284.25
$DIABLO1_CHECKPOINT2_Y = -915.9375
$DIABLO1_CHECKPOINT2_Z = 14.8125
$DIABLO1_CHECKPOINT3_X = 1164.0
$DIABLO1_CHECKPOINT3_Y = -894.6875
$DIABLO1_CHECKPOINT3_Z = 14.8125
$DIABLO1_CHECKPOINT4_X = 1204.688
$DIABLO1_CHECKPOINT4_Y = -758.9375
$DIABLO1_CHECKPOINT4_Z = 14.8125
$DIABLO1_CHECKPOINT5_X = 1262.188
$DIABLO1_CHECKPOINT5_Y = -814.625
$DIABLO1_CHECKPOINT5_Z = 14.8125
$DIABLO1_CHECKPOINT6_X = 1338.563
$DIABLO1_CHECKPOINT6_Y = -879.0625
$DIABLO1_CHECKPOINT6_Z = 14.8125
$DIABLO1_CHECKPOINT7_X = 1206.375
$DIABLO1_CHECKPOINT7_Y = -599.0625
$DIABLO1_CHECKPOINT7_Z = 19.8125
$DIABLO1_CHECKPOINT8_X = 1224.625
$DIABLO1_CHECKPOINT8_Y = -503.9375
$DIABLO1_CHECKPOINT8_Z = 26.75
$DIABLO1_CHECKPOINT9_X = 1375.938
$DIABLO1_CHECKPOINT9_Y = -343.6875
$DIABLO1_CHECKPOINT9_Z = 49.875
$DIABLO1_CHECKPOINT10_X = 1277.0
$DIABLO1_CHECKPOINT10_Y = -203.75
$DIABLO1_CHECKPOINT10_Z = 33.6875
$DIABLO1_CHECKPOINT11_X = 1195.75
$DIABLO1_CHECKPOINT11_Y = -91.0625
$DIABLO1_CHECKPOINT11_Z = 13.0
$DIABLO1_CHECKPOINT12_X = 1068.063
$DIABLO1_CHECKPOINT12_Y = 1.25
$DIABLO1_CHECKPOINT12_Z = 2.125
$DIABLO1_CHECKPOINT13_X = 910.8125
$DIABLO1_CHECKPOINT13_Y = -154.375
$DIABLO1_CHECKPOINT13_Z = 4.8125
$DIABLO1_CHECKPOINT14_X = 930.6875
$DIABLO1_CHECKPOINT14_Y = -338.75
$DIABLO1_CHECKPOINT14_Z = 9.8125
$DIABLO1_CHECKPOINT15_X = 1000.75
$DIABLO1_CHECKPOINT15_Y = -435.5625
$DIABLO1_CHECKPOINT15_Z = 14.8125
$DIABLO1_CHECKPOINT16_X = 975.625
$DIABLO1_CHECKPOINT16_Y = -527.5
$DIABLO1_CHECKPOINT16_Z = 14.8125
$DIABLO1_CHECKPOINT17_X = 1015.625
$DIABLO1_CHECKPOINT17_Y = -668.875
$DIABLO1_CHECKPOINT17_Z = 14.8125
set_ped_density_multiplier 0.0
clear_area_of_chars 890.25 -309.0625 0.0 1038.063 -132.875 10.0
TIMERA = 0
load_special_character 1 'JOEY'
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
if 
  $MPRACE_CAR_PASS1 == 0
goto_if_false @MPRACE_1103
do_fade 0 1000
wait 1000
print_big 'MPR_2' 3000 ms 2
clear_area 1 at 1185.75 -867.1875 15.125 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position 1184.125 -858.375 15.125 rotation 0.0 0.0 0.0
point_camera_at_point 1184.125 -865.5 15.125 switchstyle 2
set_player_coordinates $PLAYER_CHAR at 1185.75 -867.1875 15.125
create_char $JOEY_CHAR = create_actor 21 26 at 1183.063 -864.9375 15.125
turn_char_to_face_char $JOEY_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $JOEY_CHAR
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MPRACE_1103
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MPRACE_1103
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MPR_3' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MPRACE_1103
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MPR_4' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MPRACE_1103
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'MPR_5' time 3000 1
wait 3000

:MPRACE_1103
clear_prints 
do_fade 0 1000
wait 1000
delete_char $JOEY_CHAR
switch_widescreen 0
request_model 24
request_model 154

:MPRACE_1135
if or
  not has_model_loaded 154
  not has_model_loaded 24
goto_if_false @MPRACE_1166
wait 0
goto @MPRACE_1135

:MPRACE_1166
if 
  $MPRACE_CAR_PASS1 == 0
goto_if_false @MPRACE_1214
$MPRACE_MODEL = 151
print_now 'MPR_21' time 5000 1
goto @MPRACE_1356

:MPRACE_1214
if 
  $MPRACE_CAR_PASS2 == 0
goto_if_false @MPRACE_1262
$MPRACE_MODEL = 155
print_now 'MPR_22' time 5000 1
goto @MPRACE_1356

:MPRACE_1262
if 
  $MPRACE_CAR_PASS3 == 0
goto_if_false @MPRACE_1309
$MPRACE_MODEL = 114
print_now 'MPR_23' time 5000 1
goto @MPRACE_1356

:MPRACE_1309
if 
  $MPRACE_CAR_PASS4 == 0
goto_if_false @MPRACE_1356
$MPRACE_MODEL = 91
print_now 'MPR_24' time 5000 1
goto @MPRACE_1356

:MPRACE_1356
if 
  $MPRACE_PASS == 0
goto_if_false @MPRACE_1424
request_model $MPRACE_MODEL

:MPRACE_1379
wait 0
if 
  has_model_loaded $MPRACE_MODEL
goto_if_false @MPRACE_1379
create_car $MPRACECAR = create_car $MPRACE_MODEL at 1043.625 -859.3125 13.75
set_car_heading $MPRACECAR z_angle_to 180.0

:MPRACE_1424
set_player_coordinates $PLAYER_CHAR at 1194.063 -872.625 14.0
set_player_heading $PLAYER_CHAR z_angle_to 224.3125
set_camera_behind_player 
restore_camera_jumpcut 
switch_roads_off 1034.0 -956.0 12.0 1063.0 -847.0 20.0
create_car $DIABLO1_CHEETAH1 = create_car 154 at 1048.125 -859.3125 13.75
lock_car_doors $DIABLO1_CHEETAH1 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH1 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH1 watertight 1
set_car_strong $DIABLO1_CHEETAH1 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH1 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH2 = create_car 154 at 1053.313 -859.3125 13.75
lock_car_doors $DIABLO1_CHEETAH2 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH2 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH2 watertight 1
set_car_strong $DIABLO1_CHEETAH2 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH2 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH3 = create_car 154 at 1058.625 -859.25 13.75
lock_car_doors $DIABLO1_CHEETAH3 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH3 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH3 watertight 1
set_car_strong $DIABLO1_CHEETAH3 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH3 not_damaged_when_upside_down 1
create_char_inside_car $DIABLO1_CHEETAH1_DRIVER = create_actor 4 24 in_car $DIABLO1_CHEETAH1
create_char_inside_car $DIABLO1_CHEETAH2_DRIVER = create_actor 4 24 in_car $DIABLO1_CHEETAH2
create_char_inside_car $DIABLO1_CHEETAH3_DRIVER = create_actor 4 24 in_car $DIABLO1_CHEETAH3
set_char_cant_be_dragged_out $DIABLO1_CHEETAH1_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH2_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH3_DRIVER locked_while_in_vehicle 1
set_car_heading $DIABLO1_CHEETAH1 z_angle_to 180.0
set_car_heading $DIABLO1_CHEETAH2 z_angle_to 180.0
set_car_heading $DIABLO1_CHEETAH3 z_angle_to 180.0
car_set_idle $DIABLO1_CHEETAH1
car_set_idle $DIABLO1_CHEETAH2
car_set_idle $DIABLO1_CHEETAH3
set_car_driving_style $DIABLO1_CHEETAH1 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 50.0
set_car_driving_style $DIABLO1_CHEETAH2 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 50.0
set_car_driving_style $DIABLO1_CHEETAH3 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 50.0
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 1
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at 1042.938 -858.6875 13.75
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
if 
  $MPRACE_PASS == 1
goto_if_false @MPRACE_1885
print_now 'DIAB1_4' time 5000 1

:MPRACE_1885
wait 0
if or
  $MPRACE_PASS == 1
  is_player_in_model $PLAYER_CHAR driving_vehicle_type $MPRACE_MODEL
goto_if_false @MPRACE_2006
if 
  not locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 1042.938 -858.6875 13.75 radius 2.0 2.0 2.0
goto_if_false @MPRACE_2205
wait 0
if 
  locate_stopped_player_on_foot_3d $PLAYER_CHAR stopped 1 1042.938 -858.6875 13.75 radius 2.0 2.0 2.0
goto_if_false @MPRACE_2006
print_now 'YD1_G' time 5000 1

:MPRACE_2006
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MPRACE_2029
goto @MPRACE_10704

:MPRACE_2029
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MPRACE_2052
goto @MPRACE_10704

:MPRACE_2052
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MPRACE_2075
goto @MPRACE_10704

:MPRACE_2075
get_car_health $TIMERC = car $DIABLO1_CHEETAH1
if 
  1000 > $TIMERC
goto_if_false @MPRACE_2116
$TIMERC = 9
goto @MPRACE_2205

:MPRACE_2116
get_car_health $TIMERC = car $DIABLO1_CHEETAH2
if 
  1000 > $TIMERC
goto_if_false @MPRACE_2157
$TIMERC = 9
goto @MPRACE_2205

:MPRACE_2157
get_car_health $TIMERC = car $DIABLO1_CHEETAH3
if 
  1000 > $TIMERC
goto_if_false @MPRACE_2198
$TIMERC = 9
goto @MPRACE_2205

:MPRACE_2198
goto @MPRACE_1885

:MPRACE_2205
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 0
if 
  $TIMERC == 9
goto_if_false @MPRACE_2285
if 
  is_player_in_model $PLAYER_CHAR driving_vehicle_type $MPRACE_MODEL
goto_if_false @MPRACE_10704
print_big 'DIAB1_1' 1200 ms 4
goto @MPRACE_2450

:MPRACE_2285
set_player_control $PLAYER_CHAR can_move 0
restore_camera_jumpcut 
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1

:MPRACE_2450
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MPRACE_2473
goto @MPRACE_10704

:MPRACE_2473
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MPRACE_2496
goto @MPRACE_10704

:MPRACE_2496
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MPRACE_2519
goto @MPRACE_10704

:MPRACE_2519
$TIMERC = 0
remove_blip $BLIP_CHASE_D1
store_car_player_is_in_no_save $PLAYCAR = player $PLAYER_CHAR
add_blip_for_car_old $DIABLO1_CHEETAH1_MARKER = create_marker_above_car $DIABLO1_CHEETAH1 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH2_MARKER = create_marker_above_car $DIABLO1_CHEETAH2 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH3_MARKER = create_marker_above_car $DIABLO1_CHEETAH3 color 0 display 1
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
change_blip_scale $SECOND_BLIP size 2
dim_blip $SECOND_BLIP brightness_to 1
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
get_game_timer $GAME_TIMER_START_D1
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
display_onscreen_counter_with_string $DIABLO1_RACE_TIME 0 'DIAB1_5'

:MPRACE_2824
wait 0
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
$DIABLO1_POSITION = 0
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR1
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR2
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR3
if 
  $DIABLO1_POSITION == 0
goto_if_false @MPRACE_2912
print_now 'FIRST' time 100 1

:MPRACE_2912
if 
  $DIABLO1_POSITION == 1
goto_if_false @MPRACE_2944
print_now 'SECOND' time 100 1

:MPRACE_2944
if 
  $DIABLO1_POSITION == 2
goto_if_false @MPRACE_2976
print_now 'THIRD' time 100 1

:MPRACE_2976
if 
  $DIABLO1_POSITION == 3
goto_if_false @MPRACE_3008
print_now 'FOURTH' time 100 1

:MPRACE_3008
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MPRACE_3057
draw_corona 5.5 6 0 with_color 100 0 0 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
goto @MPRACE_3081

:MPRACE_3057
draw_corona 5.5 6 0 with_color 0 0 100 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MPRACE_3081
if 
  is_player_in_car $PLAYER_CHAR in_car $PLAYCAR
goto_if_false @MPRACE_10704
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z radius 6.0 6.0 6.0
goto_if_false @MPRACE_4359
$PLAYER_CPCOUNTER += 1
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
add_one_off_sound 98 at 0.0 0.0 0.0
if 
  $PLAYER_CPCOUNTER == 1
goto_if_false @MPRACE_3232
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z

:MPRACE_3232
if 
  $PLAYER_CPCOUNTER == 2
goto_if_false @MPRACE_3298
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z

:MPRACE_3298
if 
  $PLAYER_CPCOUNTER == 3
goto_if_false @MPRACE_3364
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z

:MPRACE_3364
if 
  $PLAYER_CPCOUNTER == 4
goto_if_false @MPRACE_3430
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z

:MPRACE_3430
if 
  $PLAYER_CPCOUNTER == 5
goto_if_false @MPRACE_3496
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z

:MPRACE_3496
if 
  $PLAYER_CPCOUNTER == 6
goto_if_false @MPRACE_3562
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z

:MPRACE_3562
if 
  $PLAYER_CPCOUNTER == 7
goto_if_false @MPRACE_3628
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z

:MPRACE_3628
if 
  $PLAYER_CPCOUNTER == 8
goto_if_false @MPRACE_3694
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z

:MPRACE_3694
if 
  $PLAYER_CPCOUNTER == 9
goto_if_false @MPRACE_3760
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z

:MPRACE_3760
if 
  $PLAYER_CPCOUNTER == 10
goto_if_false @MPRACE_3826
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z

:MPRACE_3826
if 
  $PLAYER_CPCOUNTER == 11
goto_if_false @MPRACE_3892
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z

:MPRACE_3892
if 
  $PLAYER_CPCOUNTER == 12
goto_if_false @MPRACE_3958
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z

:MPRACE_3958
if 
  $PLAYER_CPCOUNTER == 13
goto_if_false @MPRACE_4024
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z

:MPRACE_4024
if 
  $PLAYER_CPCOUNTER == 14
goto_if_false @MPRACE_4090
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z

:MPRACE_4090
if 
  $PLAYER_CPCOUNTER == 15
goto_if_false @MPRACE_4156
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z

:MPRACE_4156
if 
  $PLAYER_CPCOUNTER == 16
goto_if_false @MPRACE_4222
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z

:MPRACE_4222
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MPRACE_4288
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z

:MPRACE_4288
if 
  $PLAYER_CPCOUNTER == 18
goto_if_false @MPRACE_4313
goto @MPRACE_10721

:MPRACE_4313
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
dim_blip $SECOND_BLIP brightness_to 1
change_blip_scale $SECOND_BLIP size 2
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MPRACE_4359
if 
  not is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MPRACE_6298
get_car_health $CAR1_HEALTH = car $DIABLO1_CHEETAH1
if 
  500 > $CAR1_HEALTH
goto_if_false @MPRACE_4410
set_car_health $DIABLO1_CHEETAH1 health_to 1000

:MPRACE_4410
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR1_CPCOUNTER
goto_if_false @MPRACE_4476
if 
  is_int_var_greater_than_int_var $CAR1_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MPRACE_4462
$BEHIND_CAR1 = 1
goto @MPRACE_4469

:MPRACE_4462
$BEHIND_CAR1 = 0

:MPRACE_4469
goto @MPRACE_4688

:MPRACE_4476
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH1_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH1_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR1_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR1_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MPRACE_4681
$BEHIND_CAR1 = 0
goto @MPRACE_4688

:MPRACE_4681
$BEHIND_CAR1 = 1

:MPRACE_4688
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MPRACE_4950
if 
  $TIMERD_RESET_FLAG == 0
goto_if_false @MPRACE_4754
get_game_timer $TIMERD_STARTED
$TIMERD_RESET_FLAG = 1

:MPRACE_4754
if 
  $TIMERD_RESET_FLAG == 1
goto_if_false @MPRACE_4950
get_game_timer $TIMERD_CURRENT
set_var_int_to_var_int $TIMERD = $TIMERD_CURRENT
sub_int_var_from_int_var $TIMERD -= $TIMERD_STARTED
if 
  $TIMERD > 8000
goto_if_false @MPRACE_4950
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MPRACE_4950
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MPRACE_4950
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MPRACE_4950
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERD_RESET_FLAG = 0

:MPRACE_4950
if 
  not locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MPRACE_5007
get_car_coordinates $DIABLO1_CHEETAH1 position_to $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z
$TIMERD_RESET_FLAG = 0

:MPRACE_5007
if and
  is_car_upsidedown $DIABLO1_CHEETAH1
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MPRACE_5159
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MPRACE_5159
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MPRACE_5159
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MPRACE_5159
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MPRACE_5159
if 
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MPRACE_5200
if 
  not is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MPRACE_5200
$TIMERA_RESET_FLAG_D1 = 0

:MPRACE_5200
if 
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MPRACE_5412
if 
  $TIMERA_RESET_FLAG_D1 == 0
goto_if_false @MPRACE_5248
TIMERA = 0
$TIMERA_RESET_FLAG_D1 = 1

:MPRACE_5248
if and
  TIMERA > 5000
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MPRACE_5412
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MPRACE_5412
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MPRACE_5412
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MPRACE_5412
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERA_RESET_FLAG_D1 = 0

:MPRACE_5412
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1
goto_if_false @MPRACE_6291
$CAR1_CPCOUNTER += 1
if 
  $CAR1_CPCOUNTER == 1
goto_if_false @MPRACE_5497
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Z

:MPRACE_5497
if 
  $CAR1_CPCOUNTER == 2
goto_if_false @MPRACE_5559
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Z
switch_roads_on 1034.0 -956.0 12.0 1063.0 -847.0 20.0

:MPRACE_5559
if 
  $CAR1_CPCOUNTER == 3
goto_if_false @MPRACE_5601
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Z

:MPRACE_5601
if 
  $CAR1_CPCOUNTER == 4
goto_if_false @MPRACE_5643
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Z

:MPRACE_5643
if 
  $CAR1_CPCOUNTER == 5
goto_if_false @MPRACE_5685
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Z

:MPRACE_5685
if 
  $CAR1_CPCOUNTER == 6
goto_if_false @MPRACE_5727
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Z

:MPRACE_5727
if 
  $CAR1_CPCOUNTER == 7
goto_if_false @MPRACE_5769
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Z

:MPRACE_5769
if 
  $CAR1_CPCOUNTER == 8
goto_if_false @MPRACE_5811
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Z

:MPRACE_5811
if 
  $CAR1_CPCOUNTER == 9
goto_if_false @MPRACE_5853
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Z

:MPRACE_5853
if 
  $CAR1_CPCOUNTER == 10
goto_if_false @MPRACE_5895
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Z

:MPRACE_5895
if 
  $CAR1_CPCOUNTER == 11
goto_if_false @MPRACE_5937
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Z

:MPRACE_5937
if 
  $CAR1_CPCOUNTER == 12
goto_if_false @MPRACE_5979
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Z

:MPRACE_5979
if 
  $CAR1_CPCOUNTER == 13
goto_if_false @MPRACE_6021
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Z

:MPRACE_6021
if 
  $CAR1_CPCOUNTER == 14
goto_if_false @MPRACE_6063
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Z

:MPRACE_6063
if 
  $CAR1_CPCOUNTER == 15
goto_if_false @MPRACE_6105
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Z

:MPRACE_6105
if 
  $CAR1_CPCOUNTER == 16
goto_if_false @MPRACE_6147
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Z

:MPRACE_6147
if 
  $CAR1_CPCOUNTER == 17
goto_if_false @MPRACE_6197
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 6.0

:MPRACE_6197
if 
  $CAR1_CPCOUNTER == 18
goto_if_false @MPRACE_6237
print_now 'DIAB1_3' time 5000 1
goto @MPRACE_10704

:MPRACE_6237
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 == 7.0
goto_if_false @MPRACE_6277
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
goto @MPRACE_6291

:MPRACE_6277
car_goto_coordinates_accurate $DIABLO1_CHEETAH1 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1

:MPRACE_6291
goto @MPRACE_6475

:MPRACE_6298
if 
  not is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MPRACE_6328
$BEHIND_CAR1 = 0
$CAR1_CPCOUNTER = 0

:MPRACE_6328
if 
  is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MPRACE_6475
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MPRACE_6475
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MPRACE_6475
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MPRACE_6475
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MPRACE_6475
if 
  not is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MPRACE_8394
get_car_health $CAR2_HEALTH = car $DIABLO1_CHEETAH2
if 
  500 > $CAR2_HEALTH
goto_if_false @MPRACE_6526
set_car_health $DIABLO1_CHEETAH2 health_to 1000

:MPRACE_6526
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR2_CPCOUNTER
goto_if_false @MPRACE_6592
if 
  is_int_var_greater_than_int_var $CAR2_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MPRACE_6578
$BEHIND_CAR2 = 1
goto @MPRACE_6585

:MPRACE_6578
$BEHIND_CAR2 = 0

:MPRACE_6585
goto @MPRACE_6804

:MPRACE_6592
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH2_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH2_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR2_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR2_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MPRACE_6797
$BEHIND_CAR2 = 0
goto @MPRACE_6804

:MPRACE_6797
$BEHIND_CAR2 = 1

:MPRACE_6804
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MPRACE_7066
if 
  $TIMERE_RESET_FLAG == 0
goto_if_false @MPRACE_6870
get_game_timer $TIMERE_STARTED
$TIMERE_RESET_FLAG = 1

:MPRACE_6870
if 
  $TIMERE_RESET_FLAG == 1
goto_if_false @MPRACE_7066
get_game_timer $TIMERE_CURRENT
set_var_int_to_var_int $TIMERE = $TIMERE_CURRENT
sub_int_var_from_int_var $TIMERE -= $TIMERE_STARTED
if 
  $TIMERE > 8000
goto_if_false @MPRACE_7066
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MPRACE_7066
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MPRACE_7066
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MPRACE_7066
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERE_RESET_FLAG = 0

:MPRACE_7066
if 
  not locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MPRACE_7123
get_car_coordinates $DIABLO1_CHEETAH2 position_to $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z
$TIMERE_RESET_FLAG = 0

:MPRACE_7123
if and
  is_car_upsidedown $DIABLO1_CHEETAH2
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MPRACE_7275
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MPRACE_7275
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MPRACE_7275
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MPRACE_7275
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MPRACE_7275
if 
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MPRACE_7316
if 
  not is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MPRACE_7316
$TIMERB_RESET_FLAG_D1 = 0

:MPRACE_7316
if 
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MPRACE_7528
if 
  $TIMERB_RESET_FLAG_D1 == 0
goto_if_false @MPRACE_7364
TIMERB = 0
$TIMERB_RESET_FLAG_D1 = 1

:MPRACE_7364
if and
  TIMERB > 5000
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MPRACE_7528
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MPRACE_7528
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MPRACE_7528
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MPRACE_7528
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERB_RESET_FLAG_D1 = 0

:MPRACE_7528
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2
goto_if_false @MPRACE_8387
$CAR2_CPCOUNTER += 1
if 
  $CAR2_CPCOUNTER == 1
goto_if_false @MPRACE_7613
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Z

:MPRACE_7613
if 
  $CAR2_CPCOUNTER == 2
goto_if_false @MPRACE_7655
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Z

:MPRACE_7655
if 
  $CAR2_CPCOUNTER == 3
goto_if_false @MPRACE_7697
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Z

:MPRACE_7697
if 
  $CAR2_CPCOUNTER == 4
goto_if_false @MPRACE_7739
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Z

:MPRACE_7739
if 
  $CAR2_CPCOUNTER == 5
goto_if_false @MPRACE_7781
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Z

:MPRACE_7781
if 
  $CAR2_CPCOUNTER == 6
goto_if_false @MPRACE_7823
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Z

:MPRACE_7823
if 
  $CAR2_CPCOUNTER == 7
goto_if_false @MPRACE_7865
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Z

:MPRACE_7865
if 
  $CAR2_CPCOUNTER == 8
goto_if_false @MPRACE_7907
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Z

:MPRACE_7907
if 
  $CAR2_CPCOUNTER == 9
goto_if_false @MPRACE_7949
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Z

:MPRACE_7949
if 
  $CAR2_CPCOUNTER == 10
goto_if_false @MPRACE_7991
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Z

:MPRACE_7991
if 
  $CAR2_CPCOUNTER == 11
goto_if_false @MPRACE_8033
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Z

:MPRACE_8033
if 
  $CAR2_CPCOUNTER == 12
goto_if_false @MPRACE_8075
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Z

:MPRACE_8075
if 
  $CAR2_CPCOUNTER == 13
goto_if_false @MPRACE_8117
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Z

:MPRACE_8117
if 
  $CAR2_CPCOUNTER == 14
goto_if_false @MPRACE_8159
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Z

:MPRACE_8159
if 
  $CAR2_CPCOUNTER == 15
goto_if_false @MPRACE_8201
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Z

:MPRACE_8201
if 
  $CAR2_CPCOUNTER == 16
goto_if_false @MPRACE_8243
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Z

:MPRACE_8243
if 
  $CAR2_CPCOUNTER == 17
goto_if_false @MPRACE_8293
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 6.0

:MPRACE_8293
if 
  $CAR2_CPCOUNTER == 18
goto_if_false @MPRACE_8333
print_now 'DIAB1_3' time 5000 1
goto @MPRACE_10704

:MPRACE_8333
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 == 7.0
goto_if_false @MPRACE_8373
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
goto @MPRACE_8387

:MPRACE_8373
car_goto_coordinates_accurate $DIABLO1_CHEETAH2 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2

:MPRACE_8387
goto @MPRACE_8571

:MPRACE_8394
if 
  not is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MPRACE_8424
$BEHIND_CAR2 = 0
$CAR2_CPCOUNTER = 0

:MPRACE_8424
if 
  is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MPRACE_8571
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MPRACE_8571
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MPRACE_8571
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MPRACE_8571
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MPRACE_8571
if 
  not is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MPRACE_10520
get_car_health $CAR3_HEALTH = car $DIABLO1_CHEETAH3
if 
  500 > $CAR3_HEALTH
goto_if_false @MPRACE_8622
set_car_health $DIABLO1_CHEETAH3 health_to 1000

:MPRACE_8622
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR3_CPCOUNTER
goto_if_false @MPRACE_8688
if 
  is_int_var_greater_than_int_var $CAR3_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MPRACE_8674
$BEHIND_CAR3 = 1
goto @MPRACE_8681

:MPRACE_8674
$BEHIND_CAR3 = 0

:MPRACE_8681
goto @MPRACE_8900

:MPRACE_8688
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH3_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH3_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR3_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR3_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MPRACE_8893
$BEHIND_CAR3 = 0
goto @MPRACE_8900

:MPRACE_8893
$BEHIND_CAR3 = 1

:MPRACE_8900
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MPRACE_9162
if 
  $TIMERF_RESET_FLAG == 0
goto_if_false @MPRACE_8966
get_game_timer $TIMERF_STARTED
$TIMERF_RESET_FLAG = 1

:MPRACE_8966
if 
  $TIMERF_RESET_FLAG == 1
goto_if_false @MPRACE_9162
get_game_timer $TIMERF_CURRENT
set_var_int_to_var_int $TIMERF = $TIMERF_CURRENT
sub_int_var_from_int_var $TIMERF -= $TIMERF_STARTED
if 
  $TIMERF > 8000
goto_if_false @MPRACE_9162
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MPRACE_9162
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MPRACE_9162
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MPRACE_9162
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERF_RESET_FLAG = 0

:MPRACE_9162
if 
  not locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MPRACE_9219
get_car_coordinates $DIABLO1_CHEETAH3 position_to $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z
$TIMERF_RESET_FLAG = 0

:MPRACE_9219
if and
  is_car_upsidedown $DIABLO1_CHEETAH3
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MPRACE_9371
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MPRACE_9371
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MPRACE_9371
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MPRACE_9371
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MPRACE_9371
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MPRACE_9412
if 
  not is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MPRACE_9412
$TIMERC_RESET_FLAG_D1 = 0

:MPRACE_9412
if 
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MPRACE_9654
if 
  $TIMERC_RESET_FLAG_D1 == 0
goto_if_false @MPRACE_9458
get_game_timer $TIMERC_STARTED
$TIMERC_RESET_FLAG_D1 = 1

:MPRACE_9458
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MPRACE_9654
get_game_timer $TIMERC_CURRENT
set_var_int_to_var_int $TIMERC = $TIMERC_CURRENT
sub_int_var_from_int_var $TIMERC -= $TIMERC_STARTED
if 
  $TIMERC > 5000
goto_if_false @MPRACE_9654
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MPRACE_9654
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MPRACE_9654
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MPRACE_9654
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERC_RESET_FLAG_D1 = 0

:MPRACE_9654
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3
goto_if_false @MPRACE_10513
$CAR3_CPCOUNTER += 1
if 
  $CAR3_CPCOUNTER == 1
goto_if_false @MPRACE_9739
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Z

:MPRACE_9739
if 
  $CAR3_CPCOUNTER == 2
goto_if_false @MPRACE_9781
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Z

:MPRACE_9781
if 
  $CAR3_CPCOUNTER == 3
goto_if_false @MPRACE_9823
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Z

:MPRACE_9823
if 
  $CAR3_CPCOUNTER == 4
goto_if_false @MPRACE_9865
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Z

:MPRACE_9865
if 
  $CAR3_CPCOUNTER == 5
goto_if_false @MPRACE_9907
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Z

:MPRACE_9907
if 
  $CAR3_CPCOUNTER == 6
goto_if_false @MPRACE_9949
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Z

:MPRACE_9949
if 
  $CAR3_CPCOUNTER == 7
goto_if_false @MPRACE_9991
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Z

:MPRACE_9991
if 
  $CAR3_CPCOUNTER == 8
goto_if_false @MPRACE_10033
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Z

:MPRACE_10033
if 
  $CAR3_CPCOUNTER == 9
goto_if_false @MPRACE_10075
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Z

:MPRACE_10075
if 
  $CAR3_CPCOUNTER == 10
goto_if_false @MPRACE_10117
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Z

:MPRACE_10117
if 
  $CAR3_CPCOUNTER == 11
goto_if_false @MPRACE_10159
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Z

:MPRACE_10159
if 
  $CAR3_CPCOUNTER == 12
goto_if_false @MPRACE_10201
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Z

:MPRACE_10201
if 
  $CAR3_CPCOUNTER == 13
goto_if_false @MPRACE_10243
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Z

:MPRACE_10243
if 
  $CAR3_CPCOUNTER == 14
goto_if_false @MPRACE_10285
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Z

:MPRACE_10285
if 
  $CAR3_CPCOUNTER == 15
goto_if_false @MPRACE_10327
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Z

:MPRACE_10327
if 
  $CAR3_CPCOUNTER == 16
goto_if_false @MPRACE_10369
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Z

:MPRACE_10369
if 
  $CAR3_CPCOUNTER == 17
goto_if_false @MPRACE_10419
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 6.0

:MPRACE_10419
if 
  $CAR3_CPCOUNTER == 18
goto_if_false @MPRACE_10459
print_now 'DIAB1_3' time 5000 1
goto @MPRACE_10704

:MPRACE_10459
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 == 7.0
goto_if_false @MPRACE_10499
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
goto @MPRACE_10513

:MPRACE_10499
car_goto_coordinates_accurate $DIABLO1_CHEETAH3 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3

:MPRACE_10513
goto @MPRACE_10697

:MPRACE_10520
if 
  not is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MPRACE_10550
$BEHIND_CAR3 = 0
$CAR3_CPCOUNTER = 0

:MPRACE_10550
if 
  is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MPRACE_10697
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MPRACE_10697
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MPRACE_10697
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MPRACE_10697
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MPRACE_10697
goto @MPRACE_2824

:MPRACE_10704
print_big 'M_FAIL' 2000 ms 1
return 

:MPRACE_10721
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
if 
  $MPRACE_PASS == 0
goto_if_false @MPRACE_11023
if 
  $MPRACE_CAR_PASS1 == 0
goto_if_false @MPRACE_10820
add_score $PLAYER_CHAR money += 2000
print_with_number_big 'M_PASS' 2000 5000 ms 1
register_unique_jump_found 
$MPRACE_CAR_PASS1 = 1
goto @MPRACE_11049

:MPRACE_10820
if 
  $MPRACE_CAR_PASS2 == 0
goto_if_false @MPRACE_10880
add_score $PLAYER_CHAR money += 3000
print_with_number_big 'M_PASS' 3000 5000 ms 1
register_unique_jump_found 
$MPRACE_CAR_PASS2 = 1
goto @MPRACE_11049

:MPRACE_10880
if 
  $MPRACE_CAR_PASS3 == 0
goto_if_false @MPRACE_10940
add_score $PLAYER_CHAR money += 4000
print_with_number_big 'M_PASS' 4000 5000 ms 1
register_unique_jump_found 
$MPRACE_CAR_PASS3 = 1
goto @MPRACE_11049

:MPRACE_10940
if 
  $MPRACE_CAR_PASS4 == 0
goto_if_false @MPRACE_11016
$MPRACE_CAR_PASS4 = 1
player_made_progress 1
$PROGRESS_100 += 1
add_score $PLAYER_CHAR money += 5000
print_with_number_big 'M_PASS' 5000 5000 ms 1
register_unique_jump_found 
$MPRACE_PASS = 1
remove_blip $RACE1

:MPRACE_11016
goto @MPRACE_11049

:MPRACE_11023
add_score $PLAYER_CHAR money += 1000
print_with_number_big 'M_PASS' 1000 5000 ms 1

:MPRACE_11049
print_with_number_now 'DIAB1_2' $DIABLO1_RACE_TIME time 5000 1
register_el_burro_time $DIABLO1_RACE_TIME
clear_wanted_level $PLAYER_CHAR
play_mission_passed_tune 1
if 
  $FLAG_DIABLO1_PASSED_BEFORE == 0
goto_if_false @MPRACE_11113
$FLAG_DIABLO_MISSION1_PASSED = 1
$FLAG_DIABLO1_PASSED_BEFORE = 1

:MPRACE_11113
return 

:MPRACE_11115
switch_roads_on 1034.0 -956.0 12.0 1063.0 -847.0 20.0
remove_blip $DIABLO1_CHEETAH1_MARKER
remove_blip $DIABLO1_CHEETAH2_MARKER
remove_blip $DIABLO1_CHEETAH3_MARKER
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
mark_model_as_no_longer_needed $MPRACE_MODEL
mark_model_as_no_longer_needed 24
mark_model_as_no_longer_needed 154
clear_onscreen_counter $DIABLO1_RACE_TIME
$ONMISSION = 0
$ON_MISSION_FOR_DIABLOS = 0
mission_has_finished 
return 

//-------------Mission 48---------------
// Originally: Two-Faced Tanner

:MBALL
gosub @MBALL_36
if 
  has_deatharrest_been_executed 
goto_if_false @MBALL_27
gosub @MBALL_2422

:MBALL_27
gosub @MBALL_2439
terminate_this_script 

:MBALL_36
$ONMISSION = 1
register_mission_given 
set_fading_colour 0 0 0
wait 0
script_name 'MBALL'
request_model 25
request_model 92
request_model 119
load_special_character 1 'JOEY2'

:MBALL_91
wait 0
if and
  has_model_loaded 25
  has_model_loaded 92
  has_model_loaded 119
goto_if_false @MBALL_91
switch_widescreen 1
set_player_control $PLAYER_CHAR can_move 0
do_fade 0 1000
wait 1000
print_big 'BALL_2' 3000 ms 2
clear_area 1 at -495.0625 230.0 68.6875 range 20.0
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 1
set_fixed_camera_position -16.5 -230.1875 29.8125 rotation 0.0 0.0 0.0
point_camera_at_point -24.1875 -235.5625 29.875 switchstyle 2
create_char $JOEY_CHAR = create_actor 21 26 at -24.1875 -235.5625 29.875
turn_char_to_face_char $JOEY_CHAR look_at_actor $PLAYER_ACTOR
turn_char_to_face_char $PLAYER_ACTOR look_at_actor $JOEY_CHAR
char_look_at_player_always $JOEY_CHAR to_look_at_player $PLAYER_CHAR
set_visibility_of_closest_object_of_type -35.75 -63.5 19.6875 radius 20.0 object #LOD_LAND014 1
swap_nearest_building_model -35.75 -63.5 19.6875 radius 20.0 from #LOD_LAND014 to #NEWRAMP
set_visibility_of_closest_object_of_type -3.75 -131.5 19.6875 radius 20.0 object #LOD_LAND014 1
swap_nearest_building_model -3.75 -131.5 19.6875 radius 20.0 from #LOD_LAND014 to #NEWRAMP
create_car $BALL_CAR = create_car 119 at -18.375 -221.1875 28.8125
set_car_heading $BALL_CAR z_angle_to 0.0
if 
  $BALL_PASS == 0
goto_if_false @MBALL_557
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MBALL_543
wait 1000
do_fade 1 1000
wait 1000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MBALL_543
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'BALL_3' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MBALL_543
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'BALL_4' time 3000 1
wait 3000
if 
  not is_button_pressed 0 key_pressed 15
goto_if_false @MBALL_543
set_char_wait_state $JOEY_CHAR anim 19 wait_state_time 4000
print_now 'BALL_5' time 3000 1
wait 3000

:MBALL_543
clear_prints 
do_fade 0 1000
wait 1000

:MBALL_557
restore_camera_jumpcut 
delete_char $JOEY_CHAR
switch_widescreen 0
warp_player_into_car $PLAYER_CHAR in_car $BALL_CAR
do_fade 1 2000
wait 2000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0
$BALL_X = 0
$BALL_Y = 0
$BALL_Z = 0
$BALL_X1 = 44.625
$BALL_Y1 = -82.0
$BALL_Z1 = 28.9375
generate_random_float_in_range $BALL_X2 = random_float -55.0 17.0
generate_random_float_in_range $BALL_Y2 = random_float -27.0 -159.0
$BALL_Z2 = 19.0
$BALL_X3 = -93.25
$BALL_Y3 = -1.875
$BALL_Z3 = 43.0625
generate_random_float_in_range $BALL_X4 = random_float -55.0 17.0
generate_random_float_in_range $BALL_Y4 = random_float -27.0 -159.0
$BALL_Z4 = 19.0
$BALL_X5 = -4.25
$BALL_Y5 = -111.375
$BALL_Z5 = 25.25
$BALL_X6 = -18.9375
$BALL_Y6 = 61.0
$BALL_Z6 = 52.1875
$BALL_X7 = -35.1875
generate_random_float_in_range $BALL_Y7 = random_float -90.0 -66.0
$BALL_Z7 = 25.5
$BALL_X8 = -77.625
$BALL_Y8 = -159.625
$BALL_Z8 = 29.875
generate_random_float_in_range $BALL_X9 = random_float -55.0 17.0
generate_random_float_in_range $BALL_Y9 = random_float -27.0 -159.0
$BALL_Z9 = 19.0
$BALL_X10 = -35.1875
$BALL_Y10 = -91.3125
$BALL_Z10 = 25.3125
$BALL_X11 = -4.25
generate_random_float_in_range $BALL_Y11 = random_float -120.0 -90.0
$BALL_Z11 = 25.5
$BALL_X12 = -35.1875
generate_random_float_in_range $BALL_Y12 = random_float -90.0 -66.0
$BALL_Z12 = 25.5
$BALL_X13 = 41.125
$BALL_Y13 = -2.9375
$BALL_Z13 = 34.25
$BALL_X14 = -47.875
$BALL_Y14 = 11.0
$BALL_Z14 = 26.75
$BALL_X15 = -34.625
$BALL_Y15 = -124.25
$BALL_Z15 = 23.25
$BALL_COUNT = 0
if 
  $BALL_PASS == 0
goto_if_false @MBALL_1043
$BALLTIME = 240

:MBALL_1043
if 
  $BALL_PASS == 1
goto_if_false @MBALL_1069
$BALLTIME = 210

:MBALL_1069
if 
  $BALL_PASS > 1
goto_if_false @MBALL_1095
$BALLTIME = 180

:MBALL_1095
$MBALLDAM = 100
set_var_float_to_var_float $BALL_X = $BALL_X1
set_var_float_to_var_float $BALL_Y = $BALL_Y1
set_var_float_to_var_float $BALL_Z = $BALL_Z1
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X $BALL_Y $BALL_Z color 5 display 3
change_blip_scale $TAXI_PICKUP size 3
display_onscreen_counter_with_string $MBALLDAM 1 'BALL'

:MBALL_1166
wait 10
$MBALLDAM_SUB += 10
if 
  not is_car_dead $BALL_CAR
goto_if_false @MBALL_2422
if 
  $MBALLDAM > 0
goto_if_false @MBALL_2417
if 
  is_int_var_equal_to_int_var $MBALLDAM_SUB == $BALLTIME
goto_if_false @MBALL_1244
$MBALLDAM -= 1
$MBALLDAM_SUB = 0

:MBALL_1244
draw_corona 4.0 6 0 with_color 0 200 200 at_point $BALL_X $BALL_Y $BALL_Z
if and
  is_player_in_car $PLAYER_CHAR in_car $BALL_CAR
  locate_player_in_car_3d $PLAYER_CHAR 0 $BALL_X $BALL_Y $BALL_Z radius 4.0 4.0 4.0
goto_if_false @MBALL_1166
$BALL_COUNT += 1
$MBALLDAM += 20
add_one_off_sound 97 at 0.0 0.0 0.0
remove_blip $TAXI_PICKUP
if 
  $BALL_COUNT == 1
goto_if_false @MBALL_1413
set_var_float_to_var_float $BALL_X = $BALL_X2
set_var_float_to_var_float $BALL_Y = $BALL_Y2
set_var_float_to_var_float $BALL_Z = $BALL_Z2
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X2 $BALL_Y2 $BALL_Z2 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1413
if 
  $BALL_COUNT == 2
goto_if_false @MBALL_1480
set_var_float_to_var_float $BALL_X = $BALL_X3
set_var_float_to_var_float $BALL_Y = $BALL_Y3
set_var_float_to_var_float $BALL_Z = $BALL_Z3
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X3 $BALL_Y3 $BALL_Z3 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1480
if 
  $BALL_COUNT == 3
goto_if_false @MBALL_1547
set_var_float_to_var_float $BALL_X = $BALL_X4
set_var_float_to_var_float $BALL_Y = $BALL_Y4
set_var_float_to_var_float $BALL_Z = $BALL_Z4
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X4 $BALL_Y4 $BALL_Z4 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1547
if 
  $BALL_COUNT == 4
goto_if_false @MBALL_1614
set_var_float_to_var_float $BALL_X = $BALL_X5
set_var_float_to_var_float $BALL_Y = $BALL_Y5
set_var_float_to_var_float $BALL_Z = $BALL_Z5
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X5 $BALL_Y5 $BALL_Z5 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1614
if 
  $BALL_COUNT == 5
goto_if_false @MBALL_1681
set_var_float_to_var_float $BALL_X = $BALL_X6
set_var_float_to_var_float $BALL_Y = $BALL_Y6
set_var_float_to_var_float $BALL_Z = $BALL_Z6
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X6 $BALL_Y6 $BALL_Z6 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1681
if 
  $BALL_COUNT == 6
goto_if_false @MBALL_1748
set_var_float_to_var_float $BALL_X = $BALL_X7
set_var_float_to_var_float $BALL_Y = $BALL_Y7
set_var_float_to_var_float $BALL_Z = $BALL_Z7
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X7 $BALL_Y7 $BALL_Z7 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1748
if 
  $BALL_COUNT == 7
goto_if_false @MBALL_1815
set_var_float_to_var_float $BALL_X = $BALL_X8
set_var_float_to_var_float $BALL_Y = $BALL_Y8
set_var_float_to_var_float $BALL_Z = $BALL_Z8
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X8 $BALL_Y8 $BALL_Z8 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1815
if 
  $BALL_COUNT == 8
goto_if_false @MBALL_1882
set_var_float_to_var_float $BALL_X = $BALL_X9
set_var_float_to_var_float $BALL_Y = $BALL_Y9
set_var_float_to_var_float $BALL_Z = $BALL_Z9
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X9 $BALL_Y9 $BALL_Z9 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1882
if 
  $BALL_COUNT == 9
goto_if_false @MBALL_1949
set_var_float_to_var_float $BALL_X = $BALL_X10
set_var_float_to_var_float $BALL_Y = $BALL_Y10
set_var_float_to_var_float $BALL_Z = $BALL_Z10
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X10 $BALL_Y10 $BALL_Z10 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_1949
if 
  $BALL_COUNT == 10
goto_if_false @MBALL_2016
set_var_float_to_var_float $BALL_X = $BALL_X11
set_var_float_to_var_float $BALL_Y = $BALL_Y11
set_var_float_to_var_float $BALL_Z = $BALL_Z11
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X11 $BALL_Y11 $BALL_Z11 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_2016
if 
  $BALL_COUNT == 11
goto_if_false @MBALL_2083
set_var_float_to_var_float $BALL_X = $BALL_X12
set_var_float_to_var_float $BALL_Y = $BALL_Y12
set_var_float_to_var_float $BALL_Z = $BALL_Z12
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X12 $BALL_Y12 $BALL_Z12 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_2083
if 
  $BALL_COUNT == 12
goto_if_false @MBALL_2150
set_var_float_to_var_float $BALL_X = $BALL_X13
set_var_float_to_var_float $BALL_Y = $BALL_Y13
set_var_float_to_var_float $BALL_Z = $BALL_Z13
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X13 $BALL_Y13 $BALL_Z13 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_2150
if 
  $BALL_COUNT == 13
goto_if_false @MBALL_2217
set_var_float_to_var_float $BALL_X = $BALL_X14
set_var_float_to_var_float $BALL_Y = $BALL_Y14
set_var_float_to_var_float $BALL_Z = $BALL_Z14
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X14 $BALL_Y14 $BALL_Z14 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_2217
if 
  $BALL_COUNT == 14
goto_if_false @MBALL_2284
set_var_float_to_var_float $BALL_X = $BALL_X15
set_var_float_to_var_float $BALL_Y = $BALL_Y15
set_var_float_to_var_float $BALL_Z = $BALL_Z15
add_blip_for_coord_old $TAXI_PICKUP = create_marker_at $BALL_X15 $BALL_Y15 $BALL_Z15 color 5 display 3
change_blip_scale $TAXI_PICKUP size 3

:MBALL_2284
if 
  $BALL_COUNT == 15
goto_if_false @MBALL_1166
$MBALLDAM = 0
set_car_health $BALL_CAR health_to 200
print_now 'BALL_6' time 3000 1
wait 3000
switch_car_generator $F1RACE_CAR cars_to_generate_to 101
add_pager_message 'HAVE_F1' 140 10 2
player_made_progress 1
$PROGRESS_100 += 1
clear_wanted_level $PLAYER_CHAR
add_score $PLAYER_CHAR money += 30000
print_with_number_big 'M_PASS' 30000 5000 ms 1
clear_wanted_level $PLAYER_CHAR
$BALL_PASS = 1
return 

:MBALL_2417
explode_car $BALL_CAR

:MBALL_2422
print_big 'M_FAIL' 6000 ms 1
return 

:MBALL_2439
set_visibility_of_closest_object_of_type -35.75 -63.5 19.6875 radius 20.0 object #NEWRAMP 0
swap_nearest_building_model -35.75 -63.5 19.6875 radius 20.0 from #NEWRAMP to #LOD_LAND014
set_visibility_of_closest_object_of_type -3.75 -131.5 19.6875 radius 20.0 object #NEWRAMP 0
swap_nearest_building_model -3.75 -131.5 19.6875 radius 20.0 from #NEWRAMP to #LOD_LAND014
$ONMISSION = 0
remove_blip $TAXI_PICKUP
clear_onscreen_counter $MBALLDAM
unload_special_character 1
mark_model_as_no_longer_needed 92
mark_model_as_no_longer_needed 25
mark_model_as_no_longer_needed 119
mission_has_finished 
return 

//-------------Mission 49---------------
// Originally: Kanbu Bust-Out

:MLRACE
gosub @MLRACE_36
if 
  has_deatharrest_been_executed 
goto_if_false @MLRACE_27
gosub @MLRACE_12220

:MLRACE_27
gosub @MLRACE_12682
terminate_this_script 

:MLRACE_36
$ONMISSION = 1
$ON_MISSION_FOR_DIABLOS = 1
register_mission_given 
set_fading_colour 0 0 0
wait 0
script_name 'MLRACE'
do_fade 0 1000
wait 1000
$GAME_TIMER_START_D1 = 0
$DIABLO1_RACE_TIME = 0
$PLAYER_CPCOUNTER = 0
$CAR1_CPCOUNTER = 0
$CAR2_CPCOUNTER = 0
$CAR3_CPCOUNTER = 0
$BEHIND_CAR1 = 0
$BEHIND_CAR2 = 0
$BEHIND_CAR3 = 0
$DIABLO1_POSITION = 0
$TIMERA_RESET_FLAG_D1 = 0
$TIMERB_RESET_FLAG_D1 = 0
$TIMERC_RESET_FLAG_D1 = 0
$TIMERC_STARTED = 0
$TIMERC_CURRENT = 0
$TIMERC = 0
$TIMERD = 0
$TIMERD_STARTED = 0
$TIMERD_CURRENT = 0
$TIMERD_RESET_FLAG = 0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 7.0
$TIMERE_RESET_FLAG = 0
$TIMERF_RESET_FLAG = 0
$CAR1_STUCK_X = 0.0
$CAR1_STUCK_Y = 0.0
$CAR1_STUCK_Z = 0.0
$CAR2_STUCK_X = 0.0
$CAR2_STUCK_Y = 0.0
$CAR2_STUCK_Z = 0.0
$CAR3_STUCK_X = 0.0
$CAR3_STUCK_Y = 0.0
$CAR3_STUCK_Z = 0.0

:MLRACE_336
wait 0
if 
  $INMLRACE_12 == 1
goto_if_false @MLRACE_997
$INMLRACE_12 = 1
$DIABLO1_CHECKPOINT1_X = 1056.0
$DIABLO1_CHECKPOINT1_Y = -225.3125
$DIABLO1_CHECKPOINT1_Z = 4.8125
$DIABLO1_CHECKPOINT2_X = 1195.688
$DIABLO1_CHECKPOINT2_Y = -225.25
$DIABLO1_CHECKPOINT2_Z = 24.6875
$DIABLO1_CHECKPOINT3_X = 1181.875
$DIABLO1_CHECKPOINT3_Y = -423.75
$DIABLO1_CHECKPOINT3_Z = 24.5
$DIABLO1_CHECKPOINT4_X = 1104.438
$DIABLO1_CHECKPOINT4_Y = -203.6875
$DIABLO1_CHECKPOINT4_Z = 12.5625
$DIABLO1_CHECKPOINT5_X = 966.6875
$DIABLO1_CHECKPOINT5_Y = -189.4375
$DIABLO1_CHECKPOINT5_Z = 4.8125
$DIABLO1_CHECKPOINT6_X = 1016.063
$DIABLO1_CHECKPOINT6_Y = -453.8125
$DIABLO1_CHECKPOINT6_Z = 14.8125
$DIABLO1_CHECKPOINT7_X = 1125.625
$DIABLO1_CHECKPOINT7_Y = -527.75
$DIABLO1_CHECKPOINT7_Z = 18.375
$DIABLO1_CHECKPOINT8_X = 1045.625
$DIABLO1_CHECKPOINT8_Y = -857.375
$DIABLO1_CHECKPOINT8_Z = 14.8125
$DIABLO1_CHECKPOINT9_X = 1021.438
$DIABLO1_CHECKPOINT9_Y = -918.875
$DIABLO1_CHECKPOINT9_Z = 15.25
$DIABLO1_CHECKPOINT10_X = 786.75
$DIABLO1_CHECKPOINT10_Y = -919.875
$DIABLO1_CHECKPOINT10_Z = 38.875
$DIABLO1_CHECKPOINT11_X = 198.0
$DIABLO1_CHECKPOINT11_Y = -921.375
$DIABLO1_CHECKPOINT11_Z = 26.0625
$DIABLO1_CHECKPOINT12_X = -3.0625
$DIABLO1_CHECKPOINT12_Y = -907.6875
$DIABLO1_CHECKPOINT12_Z = 26.0
$DIABLO1_CHECKPOINT13_X = -12.375
$DIABLO1_CHECKPOINT13_Y = -286.375
$DIABLO1_CHECKPOINT13_Z = 16.0
$DIABLO1_CHECKPOINT14_X = -167.875
$DIABLO1_CHECKPOINT14_Y = -131.0
$DIABLO1_CHECKPOINT14_Z = 16.0
$DIABLO1_CHECKPOINT15_X = 101.8125
$DIABLO1_CHECKPOINT15_Y = 62.1875
$DIABLO1_CHECKPOINT15_Z = 16.0
$DIABLO1_CHECKPOINT16_X = 126.75
$DIABLO1_CHECKPOINT16_Y = -206.25
$DIABLO1_CHECKPOINT16_Z = 16.0625
$DIABLO1_CHECKPOINT17_X = 246.6875
$DIABLO1_CHECKPOINT17_Y = -417.5625
$DIABLO1_CHECKPOINT17_Z = 26.0
$DIABLO1_CHECKPOINT18_X = 151.75
$DIABLO1_CHECKPOINT18_Y = -911.1875
$DIABLO1_CHECKPOINT18_Z = 26.0
$OFFROAD_X1 = 1040.125
$OFFROAD_Y1 = -488.375
$OFFROAD_Z1 = 4.8125
$OFFROAD_X2 = 1061.125
$OFFROAD_Y2 = -223.25
$OFFROAD_Z2 = 14.9375
$CARANGLE = 360.0
$CAR_POSITION_X1 = 1053.313
$CAR_POSITION_Y1 = -478.3125
$CAR_POSITION_Z1 = 14.8125
$CAR_POSITION_X2 = 1048.313
$CAR_POSITION_Y2 = -478.25
$CAR_POSITION_Z2 = 14.8125
$CAR_POSITION_X3 = 1043.313
$CAR_POSITION_Y3 = -478.3125
$CAR_POSITION_Z3 = 14.8125
$OPEN_GAME_PALCE_X = 1058.313
$OPEN_GAME_PALCE_Y = -478.3125
$OPEN_GAME_PALCE_Z = 14.8125
print_now 'MLR_12' time 3000 1
set_player_coordinates $PLAYER_CHAR at 1194.063 -872.625 14.0
set_player_heading $PLAYER_CHAR z_angle_to 224.3125
set_camera_behind_player 
restore_camera_jumpcut 
goto @MLRACE_2961

:MLRACE_997
if 
  $INMLRACE_21 == 1
goto_if_false @MLRACE_1654
$INMLRACE_21 = 1
$DIABLO1_CHECKPOINT1_X = 91.125
$DIABLO1_CHECKPOINT1_Y = -1083.438
$DIABLO1_CHECKPOINT1_Z = 26.0
$DIABLO1_CHECKPOINT2_X = 286.375
$DIABLO1_CHECKPOINT2_Y = -1199.938
$DIABLO1_CHECKPOINT2_Z = 26.125
$DIABLO1_CHECKPOINT3_X = 268.25
$DIABLO1_CHECKPOINT3_Y = -1391.313
$DIABLO1_CHECKPOINT3_Z = 26.0
$DIABLO1_CHECKPOINT4_X = 146.75
$DIABLO1_CHECKPOINT4_Y = -1372.813
$DIABLO1_CHECKPOINT4_Z = 26.0
$DIABLO1_CHECKPOINT5_X = -56.375
$DIABLO1_CHECKPOINT5_Y = -1219.0
$DIABLO1_CHECKPOINT5_Z = 26.0
$DIABLO1_CHECKPOINT6_X = -63.3125
$DIABLO1_CHECKPOINT6_Y = -974.8125
$DIABLO1_CHECKPOINT6_Z = 26.0
$DIABLO1_CHECKPOINT7_X = 240.6875
$DIABLO1_CHECKPOINT7_Y = -941.5
$DIABLO1_CHECKPOINT7_Z = 28.125
$DIABLO1_CHECKPOINT8_X = 1023.563
$DIABLO1_CHECKPOINT8_Y = -949.0
$DIABLO1_CHECKPOINT8_Z = 15.0
$DIABLO1_CHECKPOINT9_X = 1283.25
$DIABLO1_CHECKPOINT9_Y = -915.0
$DIABLO1_CHECKPOINT9_Z = 14.8125
$DIABLO1_CHECKPOINT10_X = 1130.5
$DIABLO1_CHECKPOINT10_Y = -861.3125
$DIABLO1_CHECKPOINT10_Z = 14.8125
$DIABLO1_CHECKPOINT11_X = 1225.0
$DIABLO1_CHECKPOINT11_Y = -757.8125
$DIABLO1_CHECKPOINT11_Z = 14.8125
$DIABLO1_CHECKPOINT12_X = 1236.813
$DIABLO1_CHECKPOINT12_Y = -868.5625
$DIABLO1_CHECKPOINT12_Z = 14.8125
$DIABLO1_CHECKPOINT13_X = 1354.313
$DIABLO1_CHECKPOINT13_Y = -818.0
$DIABLO1_CHECKPOINT13_Z = 14.8125
$DIABLO1_CHECKPOINT14_X = 1195.875
$DIABLO1_CHECKPOINT14_Y = -319.5
$DIABLO1_CHECKPOINT14_Z = 24.8125
$DIABLO1_CHECKPOINT15_X = 1184.125
$DIABLO1_CHECKPOINT15_Y = -48.6875
$DIABLO1_CHECKPOINT15_Z = 9.8125
$DIABLO1_CHECKPOINT16_X = 1097.313
$DIABLO1_CHECKPOINT16_Y = -123.75
$DIABLO1_CHECKPOINT16_Z = 9.8125
$DIABLO1_CHECKPOINT17_X = 1055.688
$DIABLO1_CHECKPOINT17_Y = -80.0
$DIABLO1_CHECKPOINT17_Z = 4.8125
$DIABLO1_CHECKPOINT18_X = 868.6875
$DIABLO1_CHECKPOINT18_Y = 175.0625
$DIABLO1_CHECKPOINT18_Z = -13.6875
$OFFROAD_X1 = 31.4375
$OFFROAD_Y1 = -1068.438
$OFFROAD_Z1 = 30.125
$OFFROAD_X2 = -55.125
$OFFROAD_Y2 = -997.4375
$OFFROAD_Z2 = 20.125
$CARANGLE = 240.0
$CAR_POSITION_X1 = -45.875
$CAR_POSITION_Y1 = -1017.875
$CAR_POSITION_Z1 = 26.0
$CAR_POSITION_X2 = -43.6875
$CAR_POSITION_Y2 = -1013.375
$CAR_POSITION_Z2 = 26.0
$CAR_POSITION_X3 = -42.1875
$CAR_POSITION_Y3 = -1009.313
$CAR_POSITION_Z3 = 26.0
$OPEN_GAME_PALCE_X = -47.3125
$OPEN_GAME_PALCE_Y = -1021.813
$OPEN_GAME_PALCE_Z = 26.0
print_now 'MLR_21' time 3000 1
set_player_coordinates $PLAYER_CHAR at 180.8125 -1260.0 25.125
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_behind_player 
restore_camera_jumpcut 
goto @MLRACE_2961

:MLRACE_1654
if 
  $INMLRACE_23 == 1
goto_if_false @MLRACE_2311
$INMLRACE_23 = 1
$DIABLO1_CHECKPOINT1_X = 147.125
$DIABLO1_CHECKPOINT1_Y = -1080.875
$DIABLO1_CHECKPOINT1_Z = 26.0
$DIABLO1_CHECKPOINT2_X = 270.875
$DIABLO1_CHECKPOINT2_Y = -701.4375
$DIABLO1_CHECKPOINT2_Z = 26.0
$DIABLO1_CHECKPOINT3_X = 426.75
$DIABLO1_CHECKPOINT3_Y = -665.125
$DIABLO1_CHECKPOINT3_Z = 26.0
$DIABLO1_CHECKPOINT4_X = 537.0625
$DIABLO1_CHECKPOINT4_Y = -401.3125
$DIABLO1_CHECKPOINT4_Z = 21.0
$DIABLO1_CHECKPOINT5_X = 560.125
$DIABLO1_CHECKPOINT5_Y = -226.6875
$DIABLO1_CHECKPOINT5_Z = 13.0
$DIABLO1_CHECKPOINT6_X = 262.25
$DIABLO1_CHECKPOINT6_Y = 68.625
$DIABLO1_CHECKPOINT6_Z = 15.8125
$DIABLO1_CHECKPOINT7_X = 357.9375
$DIABLO1_CHECKPOINT7_Y = -126.625
$DIABLO1_CHECKPOINT7_Z = -17.8125
$DIABLO1_CHECKPOINT8_X = 595.125
$DIABLO1_CHECKPOINT8_Y = -108.8125
$DIABLO1_CHECKPOINT8_Z = -20.0
$DIABLO1_CHECKPOINT9_X = 533.75
$DIABLO1_CHECKPOINT9_Y = 107.5625
$DIABLO1_CHECKPOINT9_Z = -20.0
$DIABLO1_CHECKPOINT10_X = 246.4375
$DIABLO1_CHECKPOINT10_Y = 63.8125
$DIABLO1_CHECKPOINT10_Z = -20.0
$DIABLO1_CHECKPOINT11_X = -60.0
$DIABLO1_CHECKPOINT11_Y = 59.625
$DIABLO1_CHECKPOINT11_Z = -20.0
$DIABLO1_CHECKPOINT12_X = -353.0625
$DIABLO1_CHECKPOINT12_Y = 119.0
$DIABLO1_CHECKPOINT12_Z = -19.3125
$DIABLO1_CHECKPOINT13_X = -569.25
$DIABLO1_CHECKPOINT13_Y = 129.25
$DIABLO1_CHECKPOINT13_Z = -20.125
$DIABLO1_CHECKPOINT14_X = -739.875
$DIABLO1_CHECKPOINT14_Y = 63.0625
$DIABLO1_CHECKPOINT14_Z = 3.6875
$DIABLO1_CHECKPOINT15_X = -884.875
$DIABLO1_CHECKPOINT15_Y = 313.875
$DIABLO1_CHECKPOINT15_Z = 34.3125
$DIABLO1_CHECKPOINT16_X = -913.4375
$DIABLO1_CHECKPOINT16_Y = 523.4375
$DIABLO1_CHECKPOINT16_Z = 66.6875
$DIABLO1_CHECKPOINT17_X = -1264.5
$DIABLO1_CHECKPOINT17_Y = 272.75
$DIABLO1_CHECKPOINT17_Z = 68.5
$DIABLO1_CHECKPOINT18_X = -1290.0
$DIABLO1_CHECKPOINT18_Y = -180.6875
$DIABLO1_CHECKPOINT18_Z = 55.1875
$OFFROAD_X1 = 31.4375
$OFFROAD_Y1 = -1068.438
$OFFROAD_Z1 = 30.125
$OFFROAD_X2 = -55.125
$OFFROAD_Y2 = -997.4375
$OFFROAD_Z2 = 20.125
$CARANGLE = 240.0
$CAR_POSITION_X1 = -45.875
$CAR_POSITION_Y1 = -1017.875
$CAR_POSITION_Z1 = 26.0
$CAR_POSITION_X2 = -43.6875
$CAR_POSITION_Y2 = -1013.375
$CAR_POSITION_Z2 = 26.0
$CAR_POSITION_X3 = -42.1875
$CAR_POSITION_Y3 = -1009.313
$CAR_POSITION_Z3 = 26.0
$OPEN_GAME_PALCE_X = -47.3125
$OPEN_GAME_PALCE_Y = -1021.813
$OPEN_GAME_PALCE_Z = 26.0
print_now 'MLR_23' time 3000 1
set_player_coordinates $PLAYER_CHAR at 180.8125 -1260.0 25.125
set_player_heading $PLAYER_CHAR z_angle_to 270.0
set_camera_behind_player 
restore_camera_jumpcut 
goto @MLRACE_2961

:MLRACE_2311
if 
  $INMLRACE_32 == 1
goto_if_false @MLRACE_336
$INMLRACE_32 = 1
$DIABLO1_CHECKPOINT1_X = -676.1875
$DIABLO1_CHECKPOINT1_Y = -413.75
$DIABLO1_CHECKPOINT1_Z = 18.375
$DIABLO1_CHECKPOINT2_X = -706.25
$DIABLO1_CHECKPOINT2_Y = -731.5
$DIABLO1_CHECKPOINT2_Z = 8.6875
$DIABLO1_CHECKPOINT3_X = -723.4375
$DIABLO1_CHECKPOINT3_Y = -413.8125
$DIABLO1_CHECKPOINT3_Z = 8.9375
$DIABLO1_CHECKPOINT4_X = -969.875
$DIABLO1_CHECKPOINT4_Y = -248.5
$DIABLO1_CHECKPOINT4_Z = 33.6875
$DIABLO1_CHECKPOINT5_X = -1030.813
$DIABLO1_CHECKPOINT5_Y = 94.625
$DIABLO1_CHECKPOINT5_Z = 48.6875
$DIABLO1_CHECKPOINT6_X = -333.3125
$DIABLO1_CHECKPOINT6_Y = 246.0
$DIABLO1_CHECKPOINT6_Z = 59.375
$DIABLO1_CHECKPOINT7_X = -364.5
$DIABLO1_CHECKPOINT7_Y = 359.5625
$DIABLO1_CHECKPOINT7_Z = 86.625
$DIABLO1_CHECKPOINT8_X = -895.1875
$DIABLO1_CHECKPOINT8_Y = 354.125
$DIABLO1_CHECKPOINT8_Z = 38.375
$DIABLO1_CHECKPOINT9_X = -730.0
$DIABLO1_CHECKPOINT9_Y = 42.6875
$DIABLO1_CHECKPOINT9_Z = 3.625
$DIABLO1_CHECKPOINT10_X = -544.875
$DIABLO1_CHECKPOINT10_Y = 139.8125
$DIABLO1_CHECKPOINT10_Z = -20.0
$DIABLO1_CHECKPOINT11_X = -325.8125
$DIABLO1_CHECKPOINT11_Y = 78.625
$DIABLO1_CHECKPOINT11_Z = -20.0
$DIABLO1_CHECKPOINT12_X = 552.0
$DIABLO1_CHECKPOINT12_Y = 97.25
$DIABLO1_CHECKPOINT12_Z = -20.0
$DIABLO1_CHECKPOINT13_X = 348.875
$DIABLO1_CHECKPOINT13_Y = -107.875
$DIABLO1_CHECKPOINT13_Z = -15.3125
$DIABLO1_CHECKPOINT14_X = 243.25
$DIABLO1_CHECKPOINT14_Y = 88.5
$DIABLO1_CHECKPOINT14_Z = 16.0
$DIABLO1_CHECKPOINT15_X = -108.6875
$DIABLO1_CHECKPOINT15_Y = -269.5
$DIABLO1_CHECKPOINT15_Z = 16.0
$DIABLO1_CHECKPOINT16_X = -103.125
$DIABLO1_CHECKPOINT16_Y = -758.6875
$DIABLO1_CHECKPOINT16_Z = 16.0
$DIABLO1_CHECKPOINT17_X = -181.5
$DIABLO1_CHECKPOINT17_Y = -1251.25
$DIABLO1_CHECKPOINT17_Z = 16.6875
$DIABLO1_CHECKPOINT18_X = 190.4375
$DIABLO1_CHECKPOINT18_Y = -1611.313
$DIABLO1_CHECKPOINT18_Z = 26.0
$OFFROAD_X1 = -990.0
$OFFROAD_Y1 = -234.125
$OFFROAD_Z1 = 33.8125
$OFFROAD_X2 = -756.25
$OFFROAD_Y2 = -302.375
$OFFROAD_Z2 = 19.0
$CARANGLE = 270.0
$CAR_POSITION_X1 = -931.5
$CAR_POSITION_Y1 = -291.75
$CAR_POSITION_Z1 = 33.6875
$CAR_POSITION_X2 = -931.5
$CAR_POSITION_Y2 = -286.75
$CAR_POSITION_Z2 = 33.6875
$CAR_POSITION_X3 = -931.5
$CAR_POSITION_Y3 = -281.75
$CAR_POSITION_Z3 = 33.6875
$OPEN_GAME_PALCE_X = -931.5
$OPEN_GAME_PALCE_Y = -276.75
$OPEN_GAME_PALCE_Z = 33.6875
print_now 'MLR_32' time 3000 1
set_player_coordinates $PLAYER_CHAR at -826.6875 302.8125 39.0625
set_player_heading $PLAYER_CHAR z_angle_to 335.0
set_camera_behind_player 
restore_camera_jumpcut 

:MLRACE_2961
TIMERA = 0
request_model 50
request_model 158

:MLRACE_2977
if or
  not has_model_loaded 158
  not has_model_loaded 50
goto_if_false @MLRACE_3008
wait 0
goto @MLRACE_2977

:MLRACE_3008
switch_roads_off $OFFROAD_X1 $OFFROAD_Y1 $OFFROAD_Z1 $OFFROAD_X2 $OFFROAD_Y2 $OFFROAD_Z2
create_car $DIABLO1_CHEETAH1 = create_car 158 at $CAR_POSITION_X1 $CAR_POSITION_Y1 $CAR_POSITION_Z1
lock_car_doors $DIABLO1_CHEETAH1 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH1 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH1 watertight 1
set_car_strong $DIABLO1_CHEETAH1 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH1 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH2 = create_car 158 at $CAR_POSITION_X2 $CAR_POSITION_Y2 $CAR_POSITION_Z2
lock_car_doors $DIABLO1_CHEETAH2 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH2 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH2 watertight 1
set_car_strong $DIABLO1_CHEETAH2 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH2 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH3 = create_car 158 at $CAR_POSITION_X3 $CAR_POSITION_Y3 $CAR_POSITION_Z3
lock_car_doors $DIABLO1_CHEETAH3 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH3 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH3 watertight 1
set_car_strong $DIABLO1_CHEETAH3 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH3 not_damaged_when_upside_down 1
create_char_inside_car $DIABLO1_CHEETAH1_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH1
create_char_inside_car $DIABLO1_CHEETAH2_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH2
create_char_inside_car $DIABLO1_CHEETAH3_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH3
set_char_cant_be_dragged_out $DIABLO1_CHEETAH1_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH2_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH3_DRIVER locked_while_in_vehicle 1
set_car_heading $DIABLO1_CHEETAH1 z_angle_to $CARANGLE
set_car_heading $DIABLO1_CHEETAH2 z_angle_to $CARANGLE
set_car_heading $DIABLO1_CHEETAH3 z_angle_to $CARANGLE
change_car_colour $DIABLO1_CHEETAH1 color_to 1 1
change_car_colour $DIABLO1_CHEETAH2 color_to 70 70
change_car_colour $DIABLO1_CHEETAH3 color_to 72 72
set_car_ignore_level_transitions $DIABLO1_CHEETAH1 level 1
set_car_ignore_level_transitions $DIABLO1_CHEETAH2 level 1
set_car_ignore_level_transitions $DIABLO1_CHEETAH3 level 1
set_char_ignore_level_transitions $DIABLO1_CHEETAH1_DRIVER ignore_level_transitions 1
set_char_ignore_level_transitions $DIABLO1_CHEETAH2_DRIVER ignore_level_transitions 1
set_char_ignore_level_transitions $DIABLO1_CHEETAH3_DRIVER ignore_level_transitions 1
car_set_idle $DIABLO1_CHEETAH1
car_set_idle $DIABLO1_CHEETAH2
car_set_idle $DIABLO1_CHEETAH3
set_car_driving_style $DIABLO1_CHEETAH1 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 50.0
set_car_driving_style $DIABLO1_CHEETAH2 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 50.0
set_car_driving_style $DIABLO1_CHEETAH3 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 50.0
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 1
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $OPEN_GAME_PALCE_X $OPEN_GAME_PALCE_Y $OPEN_GAME_PALCE_Z
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0

:MLRACE_3479
if 
  not locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $OPEN_GAME_PALCE_X $OPEN_GAME_PALCE_Y $OPEN_GAME_PALCE_Z radius 2.0 2.0 2.0
goto_if_false @MLRACE_3769
wait 0
if 
  locate_stopped_player_on_foot_3d $PLAYER_CHAR stopped 1 $OPEN_GAME_PALCE_X $OPEN_GAME_PALCE_Y $OPEN_GAME_PALCE_Z radius 2.0 2.0 2.0
goto_if_false @MLRACE_3570
print_now 'YD1_G' time 5000 1

:MLRACE_3570
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MLRACE_3593
goto @MLRACE_12220

:MLRACE_3593
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MLRACE_3616
goto @MLRACE_12220

:MLRACE_3616
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MLRACE_3639
goto @MLRACE_12220

:MLRACE_3639
get_car_health $TIMERC = car $DIABLO1_CHEETAH1
if 
  1000 > $TIMERC
goto_if_false @MLRACE_3680
$TIMERC = 9
goto @MLRACE_3769

:MLRACE_3680
get_car_health $TIMERC = car $DIABLO1_CHEETAH2
if 
  1000 > $TIMERC
goto_if_false @MLRACE_3721
$TIMERC = 9
goto @MLRACE_3769

:MLRACE_3721
get_car_health $TIMERC = car $DIABLO1_CHEETAH3
if 
  1000 > $TIMERC
goto_if_false @MLRACE_3762
$TIMERC = 9
goto @MLRACE_3769

:MLRACE_3762
goto @MLRACE_3479

:MLRACE_3769
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 0
if 
  $TIMERC == 9
goto_if_false @MLRACE_3830
print_big 'DIAB1_1' 1200 ms 4
goto @MLRACE_3993

:MLRACE_3830
set_player_control $PLAYER_CHAR can_move 0
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1

:MLRACE_3993
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MLRACE_4016
goto @MLRACE_12220

:MLRACE_4016
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MLRACE_4039
goto @MLRACE_12220

:MLRACE_4039
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MLRACE_4062
goto @MLRACE_12220

:MLRACE_4062
$TIMERC = 0
remove_blip $BLIP_CHASE_D1
add_blip_for_car_old $DIABLO1_CHEETAH1_MARKER = create_marker_above_car $DIABLO1_CHEETAH1 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH2_MARKER = create_marker_above_car $DIABLO1_CHEETAH2 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH3_MARKER = create_marker_above_car $DIABLO1_CHEETAH3 color 0 display 1
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
change_blip_scale $SECOND_BLIP size 2
dim_blip $SECOND_BLIP brightness_to 1
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
get_game_timer $GAME_TIMER_START_D1
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
display_onscreen_counter_with_string $DIABLO1_RACE_TIME 0 'DIAB1_5'

:MLRACE_4359
wait 0
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
$DIABLO1_POSITION = 0
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR1
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR2
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR3
if 
  $DIABLO1_POSITION == 0
goto_if_false @MLRACE_4447
print_now 'FIRST' time 100 1

:MLRACE_4447
if 
  $DIABLO1_POSITION == 1
goto_if_false @MLRACE_4479
print_now 'SECOND' time 100 1

:MLRACE_4479
if 
  $DIABLO1_POSITION == 2
goto_if_false @MLRACE_4511
print_now 'THIRD' time 100 1

:MLRACE_4511
if 
  $DIABLO1_POSITION == 3
goto_if_false @MLRACE_4543
print_now 'FOURTH' time 100 1

:MLRACE_4543
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MLRACE_4592
draw_corona 5.5 6 0 with_color 100 0 0 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
goto @MLRACE_4616

:MLRACE_4592
draw_corona 5.5 6 0 with_color 0 0 100 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MLRACE_4616
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z radius 6.0 6.0 6.0
goto_if_false @MLRACE_5875
$PLAYER_CPCOUNTER += 1
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
add_one_off_sound 98 at 0.0 0.0 0.0
if 
  $PLAYER_CPCOUNTER == 1
goto_if_false @MLRACE_4748
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z

:MLRACE_4748
if 
  $PLAYER_CPCOUNTER == 2
goto_if_false @MLRACE_4814
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z

:MLRACE_4814
if 
  $PLAYER_CPCOUNTER == 3
goto_if_false @MLRACE_4880
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z

:MLRACE_4880
if 
  $PLAYER_CPCOUNTER == 4
goto_if_false @MLRACE_4946
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z

:MLRACE_4946
if 
  $PLAYER_CPCOUNTER == 5
goto_if_false @MLRACE_5012
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z

:MLRACE_5012
if 
  $PLAYER_CPCOUNTER == 6
goto_if_false @MLRACE_5078
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z

:MLRACE_5078
if 
  $PLAYER_CPCOUNTER == 7
goto_if_false @MLRACE_5144
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z

:MLRACE_5144
if 
  $PLAYER_CPCOUNTER == 8
goto_if_false @MLRACE_5210
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z

:MLRACE_5210
if 
  $PLAYER_CPCOUNTER == 9
goto_if_false @MLRACE_5276
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z

:MLRACE_5276
if 
  $PLAYER_CPCOUNTER == 10
goto_if_false @MLRACE_5342
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z

:MLRACE_5342
if 
  $PLAYER_CPCOUNTER == 11
goto_if_false @MLRACE_5408
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z

:MLRACE_5408
if 
  $PLAYER_CPCOUNTER == 12
goto_if_false @MLRACE_5474
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z

:MLRACE_5474
if 
  $PLAYER_CPCOUNTER == 13
goto_if_false @MLRACE_5540
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z

:MLRACE_5540
if 
  $PLAYER_CPCOUNTER == 14
goto_if_false @MLRACE_5606
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z

:MLRACE_5606
if 
  $PLAYER_CPCOUNTER == 15
goto_if_false @MLRACE_5672
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z

:MLRACE_5672
if 
  $PLAYER_CPCOUNTER == 16
goto_if_false @MLRACE_5738
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z

:MLRACE_5738
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MLRACE_5804
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z

:MLRACE_5804
if 
  $PLAYER_CPCOUNTER == 18
goto_if_false @MLRACE_5829
goto @MLRACE_12237

:MLRACE_5829
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
dim_blip $SECOND_BLIP brightness_to 1
change_blip_scale $SECOND_BLIP size 2
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MLRACE_5875
if 
  not is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MLRACE_7814
get_car_health $CAR1_HEALTH = car $DIABLO1_CHEETAH1
if 
  500 > $CAR1_HEALTH
goto_if_false @MLRACE_5926
set_car_health $DIABLO1_CHEETAH1 health_to 1000

:MLRACE_5926
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR1_CPCOUNTER
goto_if_false @MLRACE_5992
if 
  is_int_var_greater_than_int_var $CAR1_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MLRACE_5978
$BEHIND_CAR1 = 1
goto @MLRACE_5985

:MLRACE_5978
$BEHIND_CAR1 = 0

:MLRACE_5985
goto @MLRACE_6204

:MLRACE_5992
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH1_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH1_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR1_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR1_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MLRACE_6197
$BEHIND_CAR1 = 0
goto @MLRACE_6204

:MLRACE_6197
$BEHIND_CAR1 = 1

:MLRACE_6204
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLRACE_6466
if 
  $TIMERD_RESET_FLAG == 0
goto_if_false @MLRACE_6270
get_game_timer $TIMERD_STARTED
$TIMERD_RESET_FLAG = 1

:MLRACE_6270
if 
  $TIMERD_RESET_FLAG == 1
goto_if_false @MLRACE_6466
get_game_timer $TIMERD_CURRENT
set_var_int_to_var_int $TIMERD = $TIMERD_CURRENT
sub_int_var_from_int_var $TIMERD -= $TIMERD_STARTED
if 
  $TIMERD > 8000
goto_if_false @MLRACE_6466
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLRACE_6466
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLRACE_6466
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MLRACE_6466
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERD_RESET_FLAG = 0

:MLRACE_6466
if 
  not locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLRACE_6523
get_car_coordinates $DIABLO1_CHEETAH1 position_to $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z
$TIMERD_RESET_FLAG = 0

:MLRACE_6523
if and
  is_car_upsidedown $DIABLO1_CHEETAH1
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MLRACE_6675
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLRACE_6675
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLRACE_6675
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MLRACE_6675
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MLRACE_6675
if 
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MLRACE_6716
if 
  not is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MLRACE_6716
$TIMERA_RESET_FLAG_D1 = 0

:MLRACE_6716
if 
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MLRACE_6928
if 
  $TIMERA_RESET_FLAG_D1 == 0
goto_if_false @MLRACE_6764
TIMERA = 0
$TIMERA_RESET_FLAG_D1 = 1

:MLRACE_6764
if and
  TIMERA > 5000
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MLRACE_6928
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLRACE_6928
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLRACE_6928
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MLRACE_6928
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERA_RESET_FLAG_D1 = 0

:MLRACE_6928
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1
goto_if_false @MLRACE_7807
$CAR1_CPCOUNTER += 1
if 
  $CAR1_CPCOUNTER == 1
goto_if_false @MLRACE_7013
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Z

:MLRACE_7013
if 
  $CAR1_CPCOUNTER == 2
goto_if_false @MLRACE_7075
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Z
switch_roads_on $OFFROAD_X1 $OFFROAD_Y1 $OFFROAD_Z1 $OFFROAD_X2 $OFFROAD_Y2 $OFFROAD_Z2

:MLRACE_7075
if 
  $CAR1_CPCOUNTER == 3
goto_if_false @MLRACE_7117
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Z

:MLRACE_7117
if 
  $CAR1_CPCOUNTER == 4
goto_if_false @MLRACE_7159
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Z

:MLRACE_7159
if 
  $CAR1_CPCOUNTER == 5
goto_if_false @MLRACE_7201
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Z

:MLRACE_7201
if 
  $CAR1_CPCOUNTER == 6
goto_if_false @MLRACE_7243
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Z

:MLRACE_7243
if 
  $CAR1_CPCOUNTER == 7
goto_if_false @MLRACE_7285
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Z

:MLRACE_7285
if 
  $CAR1_CPCOUNTER == 8
goto_if_false @MLRACE_7327
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Z

:MLRACE_7327
if 
  $CAR1_CPCOUNTER == 9
goto_if_false @MLRACE_7369
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Z

:MLRACE_7369
if 
  $CAR1_CPCOUNTER == 10
goto_if_false @MLRACE_7411
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Z

:MLRACE_7411
if 
  $CAR1_CPCOUNTER == 11
goto_if_false @MLRACE_7453
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Z

:MLRACE_7453
if 
  $CAR1_CPCOUNTER == 12
goto_if_false @MLRACE_7495
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Z

:MLRACE_7495
if 
  $CAR1_CPCOUNTER == 13
goto_if_false @MLRACE_7537
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Z

:MLRACE_7537
if 
  $CAR1_CPCOUNTER == 14
goto_if_false @MLRACE_7579
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Z

:MLRACE_7579
if 
  $CAR1_CPCOUNTER == 15
goto_if_false @MLRACE_7621
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Z

:MLRACE_7621
if 
  $CAR1_CPCOUNTER == 16
goto_if_false @MLRACE_7663
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Z

:MLRACE_7663
if 
  $CAR1_CPCOUNTER == 17
goto_if_false @MLRACE_7713
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 6.0

:MLRACE_7713
if 
  $CAR1_CPCOUNTER == 18
goto_if_false @MLRACE_7753
print_now 'DIAB1_3' time 5000 1
goto @MLRACE_12220

:MLRACE_7753
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 == 7.0
goto_if_false @MLRACE_7793
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
goto @MLRACE_7807

:MLRACE_7793
car_goto_coordinates_accurate $DIABLO1_CHEETAH1 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1

:MLRACE_7807
goto @MLRACE_7991

:MLRACE_7814
if 
  not is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MLRACE_7844
$BEHIND_CAR1 = 0
$CAR1_CPCOUNTER = 0

:MLRACE_7844
if 
  is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MLRACE_7991
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLRACE_7991
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLRACE_7991
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MLRACE_7991
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MLRACE_7991
if 
  not is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MLRACE_9910
get_car_health $CAR2_HEALTH = car $DIABLO1_CHEETAH2
if 
  500 > $CAR2_HEALTH
goto_if_false @MLRACE_8042
set_car_health $DIABLO1_CHEETAH2 health_to 1000

:MLRACE_8042
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR2_CPCOUNTER
goto_if_false @MLRACE_8108
if 
  is_int_var_greater_than_int_var $CAR2_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MLRACE_8094
$BEHIND_CAR2 = 1
goto @MLRACE_8101

:MLRACE_8094
$BEHIND_CAR2 = 0

:MLRACE_8101
goto @MLRACE_8320

:MLRACE_8108
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH2_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH2_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR2_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR2_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MLRACE_8313
$BEHIND_CAR2 = 0
goto @MLRACE_8320

:MLRACE_8313
$BEHIND_CAR2 = 1

:MLRACE_8320
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLRACE_8582
if 
  $TIMERE_RESET_FLAG == 0
goto_if_false @MLRACE_8386
get_game_timer $TIMERE_STARTED
$TIMERE_RESET_FLAG = 1

:MLRACE_8386
if 
  $TIMERE_RESET_FLAG == 1
goto_if_false @MLRACE_8582
get_game_timer $TIMERE_CURRENT
set_var_int_to_var_int $TIMERE = $TIMERE_CURRENT
sub_int_var_from_int_var $TIMERE -= $TIMERE_STARTED
if 
  $TIMERE > 8000
goto_if_false @MLRACE_8582
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLRACE_8582
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLRACE_8582
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MLRACE_8582
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERE_RESET_FLAG = 0

:MLRACE_8582
if 
  not locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLRACE_8639
get_car_coordinates $DIABLO1_CHEETAH2 position_to $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z
$TIMERE_RESET_FLAG = 0

:MLRACE_8639
if and
  is_car_upsidedown $DIABLO1_CHEETAH2
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MLRACE_8791
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLRACE_8791
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLRACE_8791
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MLRACE_8791
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MLRACE_8791
if 
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MLRACE_8832
if 
  not is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MLRACE_8832
$TIMERB_RESET_FLAG_D1 = 0

:MLRACE_8832
if 
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MLRACE_9044
if 
  $TIMERB_RESET_FLAG_D1 == 0
goto_if_false @MLRACE_8880
TIMERB = 0
$TIMERB_RESET_FLAG_D1 = 1

:MLRACE_8880
if and
  TIMERB > 5000
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MLRACE_9044
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLRACE_9044
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLRACE_9044
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MLRACE_9044
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERB_RESET_FLAG_D1 = 0

:MLRACE_9044
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2
goto_if_false @MLRACE_9903
$CAR2_CPCOUNTER += 1
if 
  $CAR2_CPCOUNTER == 1
goto_if_false @MLRACE_9129
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Z

:MLRACE_9129
if 
  $CAR2_CPCOUNTER == 2
goto_if_false @MLRACE_9171
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Z

:MLRACE_9171
if 
  $CAR2_CPCOUNTER == 3
goto_if_false @MLRACE_9213
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Z

:MLRACE_9213
if 
  $CAR2_CPCOUNTER == 4
goto_if_false @MLRACE_9255
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Z

:MLRACE_9255
if 
  $CAR2_CPCOUNTER == 5
goto_if_false @MLRACE_9297
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Z

:MLRACE_9297
if 
  $CAR2_CPCOUNTER == 6
goto_if_false @MLRACE_9339
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Z

:MLRACE_9339
if 
  $CAR2_CPCOUNTER == 7
goto_if_false @MLRACE_9381
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Z

:MLRACE_9381
if 
  $CAR2_CPCOUNTER == 8
goto_if_false @MLRACE_9423
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Z

:MLRACE_9423
if 
  $CAR2_CPCOUNTER == 9
goto_if_false @MLRACE_9465
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Z

:MLRACE_9465
if 
  $CAR2_CPCOUNTER == 10
goto_if_false @MLRACE_9507
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Z

:MLRACE_9507
if 
  $CAR2_CPCOUNTER == 11
goto_if_false @MLRACE_9549
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Z

:MLRACE_9549
if 
  $CAR2_CPCOUNTER == 12
goto_if_false @MLRACE_9591
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Z

:MLRACE_9591
if 
  $CAR2_CPCOUNTER == 13
goto_if_false @MLRACE_9633
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Z

:MLRACE_9633
if 
  $CAR2_CPCOUNTER == 14
goto_if_false @MLRACE_9675
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Z

:MLRACE_9675
if 
  $CAR2_CPCOUNTER == 15
goto_if_false @MLRACE_9717
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Z

:MLRACE_9717
if 
  $CAR2_CPCOUNTER == 16
goto_if_false @MLRACE_9759
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Z

:MLRACE_9759
if 
  $CAR2_CPCOUNTER == 17
goto_if_false @MLRACE_9809
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 6.0

:MLRACE_9809
if 
  $CAR2_CPCOUNTER == 18
goto_if_false @MLRACE_9849
print_now 'DIAB1_3' time 5000 1
goto @MLRACE_12220

:MLRACE_9849
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 == 7.0
goto_if_false @MLRACE_9889
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
goto @MLRACE_9903

:MLRACE_9889
car_goto_coordinates_accurate $DIABLO1_CHEETAH2 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2

:MLRACE_9903
goto @MLRACE_10087

:MLRACE_9910
if 
  not is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MLRACE_9940
$BEHIND_CAR2 = 0
$CAR2_CPCOUNTER = 0

:MLRACE_9940
if 
  is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MLRACE_10087
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLRACE_10087
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLRACE_10087
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MLRACE_10087
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MLRACE_10087
if 
  not is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MLRACE_12036
get_car_health $CAR3_HEALTH = car $DIABLO1_CHEETAH3
if 
  500 > $CAR3_HEALTH
goto_if_false @MLRACE_10138
set_car_health $DIABLO1_CHEETAH3 health_to 1000

:MLRACE_10138
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR3_CPCOUNTER
goto_if_false @MLRACE_10204
if 
  is_int_var_greater_than_int_var $CAR3_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MLRACE_10190
$BEHIND_CAR3 = 1
goto @MLRACE_10197

:MLRACE_10190
$BEHIND_CAR3 = 0

:MLRACE_10197
goto @MLRACE_10416

:MLRACE_10204
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH3_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH3_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR3_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR3_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MLRACE_10409
$BEHIND_CAR3 = 0
goto @MLRACE_10416

:MLRACE_10409
$BEHIND_CAR3 = 1

:MLRACE_10416
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLRACE_10678
if 
  $TIMERF_RESET_FLAG == 0
goto_if_false @MLRACE_10482
get_game_timer $TIMERF_STARTED
$TIMERF_RESET_FLAG = 1

:MLRACE_10482
if 
  $TIMERF_RESET_FLAG == 1
goto_if_false @MLRACE_10678
get_game_timer $TIMERF_CURRENT
set_var_int_to_var_int $TIMERF = $TIMERF_CURRENT
sub_int_var_from_int_var $TIMERF -= $TIMERF_STARTED
if 
  $TIMERF > 8000
goto_if_false @MLRACE_10678
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLRACE_10678
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLRACE_10678
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MLRACE_10678
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERF_RESET_FLAG = 0

:MLRACE_10678
if 
  not locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLRACE_10735
get_car_coordinates $DIABLO1_CHEETAH3 position_to $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z
$TIMERF_RESET_FLAG = 0

:MLRACE_10735
if and
  is_car_upsidedown $DIABLO1_CHEETAH3
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MLRACE_10887
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLRACE_10887
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLRACE_10887
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MLRACE_10887
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MLRACE_10887
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MLRACE_10928
if 
  not is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MLRACE_10928
$TIMERC_RESET_FLAG_D1 = 0

:MLRACE_10928
if 
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MLRACE_11170
if 
  $TIMERC_RESET_FLAG_D1 == 0
goto_if_false @MLRACE_10974
get_game_timer $TIMERC_STARTED
$TIMERC_RESET_FLAG_D1 = 1

:MLRACE_10974
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MLRACE_11170
get_game_timer $TIMERC_CURRENT
set_var_int_to_var_int $TIMERC = $TIMERC_CURRENT
sub_int_var_from_int_var $TIMERC -= $TIMERC_STARTED
if 
  $TIMERC > 5000
goto_if_false @MLRACE_11170
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLRACE_11170
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLRACE_11170
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MLRACE_11170
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERC_RESET_FLAG_D1 = 0

:MLRACE_11170
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3
goto_if_false @MLRACE_12029
$CAR3_CPCOUNTER += 1
if 
  $CAR3_CPCOUNTER == 1
goto_if_false @MLRACE_11255
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Z

:MLRACE_11255
if 
  $CAR3_CPCOUNTER == 2
goto_if_false @MLRACE_11297
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Z

:MLRACE_11297
if 
  $CAR3_CPCOUNTER == 3
goto_if_false @MLRACE_11339
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Z

:MLRACE_11339
if 
  $CAR3_CPCOUNTER == 4
goto_if_false @MLRACE_11381
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Z

:MLRACE_11381
if 
  $CAR3_CPCOUNTER == 5
goto_if_false @MLRACE_11423
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Z

:MLRACE_11423
if 
  $CAR3_CPCOUNTER == 6
goto_if_false @MLRACE_11465
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Z

:MLRACE_11465
if 
  $CAR3_CPCOUNTER == 7
goto_if_false @MLRACE_11507
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Z

:MLRACE_11507
if 
  $CAR3_CPCOUNTER == 8
goto_if_false @MLRACE_11549
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Z

:MLRACE_11549
if 
  $CAR3_CPCOUNTER == 9
goto_if_false @MLRACE_11591
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Z

:MLRACE_11591
if 
  $CAR3_CPCOUNTER == 10
goto_if_false @MLRACE_11633
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Z

:MLRACE_11633
if 
  $CAR3_CPCOUNTER == 11
goto_if_false @MLRACE_11675
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Z

:MLRACE_11675
if 
  $CAR3_CPCOUNTER == 12
goto_if_false @MLRACE_11717
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Z

:MLRACE_11717
if 
  $CAR3_CPCOUNTER == 13
goto_if_false @MLRACE_11759
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Z

:MLRACE_11759
if 
  $CAR3_CPCOUNTER == 14
goto_if_false @MLRACE_11801
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Z

:MLRACE_11801
if 
  $CAR3_CPCOUNTER == 15
goto_if_false @MLRACE_11843
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Z

:MLRACE_11843
if 
  $CAR3_CPCOUNTER == 16
goto_if_false @MLRACE_11885
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Z

:MLRACE_11885
if 
  $CAR3_CPCOUNTER == 17
goto_if_false @MLRACE_11935
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 6.0

:MLRACE_11935
if 
  $CAR3_CPCOUNTER == 18
goto_if_false @MLRACE_11975
print_now 'DIAB1_3' time 5000 1
goto @MLRACE_12220

:MLRACE_11975
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 == 7.0
goto_if_false @MLRACE_12015
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
goto @MLRACE_12029

:MLRACE_12015
car_goto_coordinates_accurate $DIABLO1_CHEETAH3 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3

:MLRACE_12029
goto @MLRACE_12213

:MLRACE_12036
if 
  not is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MLRACE_12066
$BEHIND_CAR3 = 0
$CAR3_CPCOUNTER = 0

:MLRACE_12066
if 
  is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MLRACE_12213
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLRACE_12213
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLRACE_12213
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MLRACE_12213
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MLRACE_12213
goto @MLRACE_4359

:MLRACE_12220
print_big 'M_FAIL' 2000 ms 1
return 

:MLRACE_12237
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
if and
  $INMLRACE_12_PASS == 0
  $INMLRACE_12 == 1
goto_if_false @MLRACE_12325
$INMLRACE_12_PASS = 1
register_unique_jump_found 
add_score $PLAYER_CHAR money += 16000
print_with_number_big 'M_PASS' 16000 5000 ms 1
goto @MLRACE_12552

:MLRACE_12325
if and
  $INMLRACE_21_PASS == 0
  $INMLRACE_21 == 1
goto_if_false @MLRACE_12392
$INMLRACE_21_PASS = 1
register_unique_jump_found 
add_score $PLAYER_CHAR money += 17000
print_with_number_big 'M_PASS' 17000 5000 ms 1
goto @MLRACE_12552

:MLRACE_12392
if and
  $INMLRACE_23_PASS == 0
  $INMLRACE_23 == 1
goto_if_false @MLRACE_12459
$INMLRACE_23_PASS = 1
register_unique_jump_found 
add_score $PLAYER_CHAR money += 18000
print_with_number_big 'M_PASS' 18000 5000 ms 1
goto @MLRACE_12552

:MLRACE_12459
if and
  $INMLRACE_32_PASS == 0
  $INMLRACE_32 == 1
goto_if_false @MLRACE_12526
$INMLRACE_32_PASS = 1
register_unique_jump_found 
add_score $PLAYER_CHAR money += 19000
print_with_number_big 'M_PASS' 19000 5000 ms 1
goto @MLRACE_12552

:MLRACE_12526
add_score $PLAYER_CHAR money += 4000
print_with_number_big 'M_PASS' 4000 5000 ms 1

:MLRACE_12552
if and
  $MLRACE_PASS == 0
  $INMLRACE_12_PASS == 1
  $INMLRACE_21_PASS == 1
  $INMLRACE_23_PASS == 1
  $INMLRACE_32_PASS == 1
goto_if_false @MLRACE_12616
player_made_progress 1
$PROGRESS_100 += 1
$MLRACE_PASS = 1

:MLRACE_12616
print_with_number_now 'DIAB1_2' $DIABLO1_RACE_TIME time 5000 1
register_el_burro_time $DIABLO1_RACE_TIME
clear_wanted_level $PLAYER_CHAR
play_mission_passed_tune 1
if 
  $FLAG_DIABLO1_PASSED_BEFORE == 0
goto_if_false @MLRACE_12680
$FLAG_DIABLO_MISSION1_PASSED = 1
$FLAG_DIABLO1_PASSED_BEFORE = 1

:MLRACE_12680
return 

:MLRACE_12682
$INMLRACE_12 = 0
$INMLRACE_21 = 0
$INMLRACE_23 = 0
$INMLRACE_32 = 0
switch_roads_on $OFFROAD_X1 $OFFROAD_Y1 $OFFROAD_Z1 $OFFROAD_X2 $OFFROAD_Y2 $OFFROAD_Z2
remove_blip $DIABLO1_CHEETAH1_MARKER
remove_blip $DIABLO1_CHEETAH2_MARKER
remove_blip $DIABLO1_CHEETAH3_MARKER
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 158
clear_onscreen_counter $DIABLO1_RACE_TIME
$ONMISSION = 0
$ON_MISSION_FOR_DIABLOS = 0
mission_has_finished 
return 

//-------------Mission 50---------------
// Originally: Grand Theft Auto

:MLCRACE
gosub @MLCRACE_36
if 
  has_deatharrest_been_executed 
goto_if_false @MLCRACE_27
gosub @MLCRACE_13058

:MLCRACE_27
gosub @MLCRACE_13411
terminate_this_script 

:MLCRACE_36
$ONMISSION = 1
$ON_MISSION_FOR_DIABLOS = 1
register_mission_given 
set_fading_colour 0 0 0
wait 0
script_name 'MLCRACE'
do_fade 0 1000
wait 1000
$GAME_TIMER_START_D1 = 0
$DIABLO1_RACE_TIME = 0
$PLAYER_CPCOUNTER = 0
$CAR1_CPCOUNTER = 0
$CAR2_CPCOUNTER = 0
$CAR3_CPCOUNTER = 0
$BEHIND_CAR1 = 0
$BEHIND_CAR2 = 0
$BEHIND_CAR3 = 0
$DIABLO1_POSITION = 0
$TIMERA_RESET_FLAG_D1 = 0
$TIMERB_RESET_FLAG_D1 = 0
$TIMERC_RESET_FLAG_D1 = 0
$TIMERC_STARTED = 0
$TIMERC_CURRENT = 0
$TIMERC = 0
$TIMERD = 0
$TIMERD_STARTED = 0
$TIMERD_CURRENT = 0
$TIMERD_RESET_FLAG = 0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 7.0
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 7.0
$TIMERE_RESET_FLAG = 0
$TIMERF_RESET_FLAG = 0
$CAR1_STUCK_X = 0.0
$CAR1_STUCK_Y = 0.0
$CAR1_STUCK_Z = 0.0
$CAR2_STUCK_X = 0.0
$CAR2_STUCK_Y = 0.0
$CAR2_STUCK_Z = 0.0
$CAR3_STUCK_X = 0.0
$CAR3_STUCK_Y = 0.0
$CAR3_STUCK_Z = 0.0
$MLCRACE_PASS = 0

:MLCRACE_343
wait 0
if 
  $INMLCRACE_123 == 1
goto_if_false @MLCRACE_1205
$INMLCRACE_123 = 1
$DIABLO1_CHECKPOINT1_X = 1035.313
$DIABLO1_CHECKPOINT1_Y = -170.375
$DIABLO1_CHECKPOINT1_Z = 4.8125
$DIABLO1_CHECKPOINT2_X = 929.875
$DIABLO1_CHECKPOINT2_Y = -338.8125
$DIABLO1_CHECKPOINT2_Z = 9.8125
$DIABLO1_CHECKPOINT3_X = 815.875
$DIABLO1_CHECKPOINT3_Y = -454.5
$DIABLO1_CHECKPOINT3_Z = 14.8125
$DIABLO1_CHECKPOINT4_X = 815.6875
$DIABLO1_CHECKPOINT4_Y = -982.5625
$DIABLO1_CHECKPOINT4_Z = 4.75
$DIABLO1_CHECKPOINT5_X = 1281.563
$DIABLO1_CHECKPOINT5_Y = -1058.5
$DIABLO1_CHECKPOINT5_Z = 14.625
$DIABLO1_CHECKPOINT6_X = 1195.688
$DIABLO1_CHECKPOINT6_Y = -532.9375
$DIABLO1_CHECKPOINT6_Z = 22.875
$DIABLO1_CHECKPOINT7_X = 975.0
$DIABLO1_CHECKPOINT7_Y = -488.875
$DIABLO1_CHECKPOINT7_Z = 14.8125
$DIABLO1_CHECKPOINT8_X = 1045.688
$DIABLO1_CHECKPOINT8_Y = -901.25
$DIABLO1_CHECKPOINT8_Z = 14.8125
$DIABLO1_CHECKPOINT9_X = 36.625
$DIABLO1_CHECKPOINT9_Y = -959.5625
$DIABLO1_CHECKPOINT9_Z = 26.0
$DIABLO1_CHECKPOINT10_X = 25.5625
$DIABLO1_CHECKPOINT10_Y = -1606.25
$DIABLO1_CHECKPOINT10_Z = 26.0
$DIABLO1_CHECKPOINT11_X = -174.125
$DIABLO1_CHECKPOINT11_Y = -1260.0
$DIABLO1_CHECKPOINT11_Z = 17.1875
$DIABLO1_CHECKPOINT12_X = -86.5
$DIABLO1_CHECKPOINT12_Y = -286.375
$DIABLO1_CHECKPOINT12_Z = 16.0
$DIABLO1_CHECKPOINT13_X = 111.875
$DIABLO1_CHECKPOINT13_Y = 57.3125
$DIABLO1_CHECKPOINT13_Z = 16.0
$DIABLO1_CHECKPOINT14_X = 264.0625
$DIABLO1_CHECKPOINT14_Y = 64.3125
$DIABLO1_CHECKPOINT14_Z = 15.5625
$DIABLO1_CHECKPOINT15_X = 514.9375
$DIABLO1_CHECKPOINT15_Y = -225.4375
$DIABLO1_CHECKPOINT15_Z = -20.0
$DIABLO1_CHECKPOINT16_X = 527.3125
$DIABLO1_CHECKPOINT16_Y = 101.4375
$DIABLO1_CHECKPOINT16_Z = -20.0
$DIABLO1_CHECKPOINT17_X = 179.0625
$DIABLO1_CHECKPOINT17_Y = 106.4375
$DIABLO1_CHECKPOINT17_Z = -20.0
$DIABLO1_CHECKPOINT18_X = -355.75
$DIABLO1_CHECKPOINT18_Y = 100.125
$DIABLO1_CHECKPOINT18_Z = -20.0
$DIABLO1_CHECKPOINT19_X = -630.0
$DIABLO1_CHECKPOINT19_Y = -284.6875
$DIABLO1_CHECKPOINT19_Z = -24.9375
$DIABLO1_CHECKPOINT20_X = -645.5625
$DIABLO1_CHECKPOINT20_Y = -439.75
$DIABLO1_CHECKPOINT20_Z = 18.5
$DIABLO1_CHECKPOINT21_X = -1290.0
$DIABLO1_CHECKPOINT21_Y = -207.5
$DIABLO1_CHECKPOINT21_Z = 53.6875
$DIABLO1_CHECKPOINT22_X = -1089.875
$DIABLO1_CHECKPOINT22_Y = 524.625
$DIABLO1_CHECKPOINT22_Z = 68.1875
$DIABLO1_CHECKPOINT23_X = -285.25
$DIABLO1_CHECKPOINT23_Y = 364.5
$DIABLO1_CHECKPOINT23_Z = 78.6875
$DIABLO1_CHECKPOINT24_X = -695.0625
$DIABLO1_CHECKPOINT24_Y = 208.875
$DIABLO1_CHECKPOINT24_Z = 53.6875
$DIABLO1_CHECKPOINT25_X = -446.25
$DIABLO1_CHECKPOINT25_Y = 87.4375
$DIABLO1_CHECKPOINT25_Z = 3.6875
$DIABLO1_CHECKPOINT26_X = -574.9375
$DIABLO1_CHECKPOINT26_Y = -10.25
$DIABLO1_CHECKPOINT26_Z = 3.6875
$DIABLO1_CHECKPOINT27_X = -745.0
$DIABLO1_CHECKPOINT27_Y = 33.4375
$DIABLO1_CHECKPOINT27_Z = 3.6875
$OFFROAD_X1 = 1186.063
$OFFROAD_Y1 = -113.8125
$OFFROAD_Z1 = 14.9375
$OFFROAD_X2 = 1065.625
$OFFROAD_Y2 = -143.75
$OFFROAD_Z2 = 4.9375
$CARANGLE = 90.0
$OPEN_GAME_PALCE_X = 1166.5
$OPEN_GAME_PALCE_Y = -121.1875
$OPEN_GAME_PALCE_Z = 14.8125
$CAR_POSITION_X1 = 1166.75
$CAR_POSITION_Y1 = -126.3125
$CAR_POSITION_Z1 = 14.8125
$CAR_POSITION_X2 = 1166.75
$CAR_POSITION_Y2 = -131.3125
$CAR_POSITION_Z2 = 14.8125
$CAR_POSITION_X3 = 1166.75
$CAR_POSITION_Y3 = -136.3125
$CAR_POSITION_Z3 = 14.8125
set_player_coordinates $PLAYER_CHAR at 1194.063 -872.625 14.0
set_player_heading $PLAYER_CHAR z_angle_to 224.3125
set_camera_behind_player 
restore_camera_jumpcut 
goto @MLCRACE_2056

:MLCRACE_1205
if 
  $INMLCRACE_321 == 1
goto_if_false @MLCRACE_343
$INMLCRACE_321 = 1
$DIABLO1_CHECKPOINT1_X = -1047.563
$DIABLO1_CHECKPOINT1_Y = 77.625
$DIABLO1_CHECKPOINT1_Z = 48.1875
$DIABLO1_CHECKPOINT2_X = -810.0
$DIABLO1_CHECKPOINT2_Y = -138.0625
$DIABLO1_CHECKPOINT2_Z = 33.6875
$DIABLO1_CHECKPOINT3_X = -856.1875
$DIABLO1_CHECKPOINT3_Y = -227.5625
$DIABLO1_CHECKPOINT3_Z = 28.6875
$DIABLO1_CHECKPOINT4_X = -1290.0
$DIABLO1_CHECKPOINT4_Y = -203.25
$DIABLO1_CHECKPOINT4_Z = 53.9375
$DIABLO1_CHECKPOINT5_X = -895.0625
$DIABLO1_CHECKPOINT5_Y = 503.875
$DIABLO1_CHECKPOINT5_Z = 62.625
$DIABLO1_CHECKPOINT6_X = -285.0625
$DIABLO1_CHECKPOINT6_Y = 358.9375
$DIABLO1_CHECKPOINT6_Z = 78.6875
$DIABLO1_CHECKPOINT7_X = -695.0625
$DIABLO1_CHECKPOINT7_Y = 208.875
$DIABLO1_CHECKPOINT7_Z = 53.6875
$DIABLO1_CHECKPOINT8_X = -435.0625
$DIABLO1_CHECKPOINT8_Y = 4.0625
$DIABLO1_CHECKPOINT8_Z = 3.6875
$DIABLO1_CHECKPOINT9_X = -728.875
$DIABLO1_CHECKPOINT9_Y = 42.4375
$DIABLO1_CHECKPOINT9_Z = 3.5
$DIABLO1_CHECKPOINT10_X = 552.0
$DIABLO1_CHECKPOINT10_Y = 97.1875
$DIABLO1_CHECKPOINT10_Z = -20.0
$DIABLO1_CHECKPOINT11_X = 267.375
$DIABLO1_CHECKPOINT11_Y = 56.75
$DIABLO1_CHECKPOINT11_Z = 14.625
$DIABLO1_CHECKPOINT12_X = -167.0
$DIABLO1_CHECKPOINT12_Y = -157.75
$DIABLO1_CHECKPOINT12_Z = 16.0
$DIABLO1_CHECKPOINT13_X = -99.0
$DIABLO1_CHECKPOINT13_Y = -851.125
$DIABLO1_CHECKPOINT13_Z = 15.9375
$DIABLO1_CHECKPOINT14_X = -193.0
$DIABLO1_CHECKPOINT14_Y = -1279.125
$DIABLO1_CHECKPOINT14_Z = 19.6875
$DIABLO1_CHECKPOINT15_X = 16.625
$DIABLO1_CHECKPOINT15_Y = -1615.813
$DIABLO1_CHECKPOINT15_Z = 26.0
$DIABLO1_CHECKPOINT16_X = 46.6875
$DIABLO1_CHECKPOINT16_Y = -1046.563
$DIABLO1_CHECKPOINT16_Z = 26.0
$DIABLO1_CHECKPOINT17_X = 196.4375
$DIABLO1_CHECKPOINT17_Y = -941.3125
$DIABLO1_CHECKPOINT17_Z = 26.0
$DIABLO1_CHECKPOINT18_X = 613.9375
$DIABLO1_CHECKPOINT18_Y = -939.9375
$DIABLO1_CHECKPOINT18_Z = 42.9375
$DIABLO1_CHECKPOINT19_X = 1067.813
$DIABLO1_CHECKPOINT19_Y = -1064.375
$DIABLO1_CHECKPOINT19_Z = 14.625
$DIABLO1_CHECKPOINT20_X = 835.6875
$DIABLO1_CHECKPOINT20_Y = -260.1875
$DIABLO1_CHECKPOINT20_Z = 4.8125
$DIABLO1_CHECKPOINT21_X = 1195.688
$DIABLO1_CHECKPOINT21_Y = -59.6875
$DIABLO1_CHECKPOINT21_Z = 9.875
$DIABLO1_CHECKPOINT22_X = 1326.813
$DIABLO1_CHECKPOINT22_Y = -218.0
$DIABLO1_CHECKPOINT22_Z = 44.0
$DIABLO1_CHECKPOINT23_X = 1318.313
$DIABLO1_CHECKPOINT23_Y = -492.375
$DIABLO1_CHECKPOINT23_Z = 42.4375
$DIABLO1_CHECKPOINT24_X = 1301.375
$DIABLO1_CHECKPOINT24_Y = -933.0625
$DIABLO1_CHECKPOINT24_Z = 14.8125
$DIABLO1_CHECKPOINT25_X = 1208.063
$DIABLO1_CHECKPOINT25_Y = -1099.438
$DIABLO1_CHECKPOINT25_Z = 11.6875
$DIABLO1_CHECKPOINT26_X = 1075.063
$DIABLO1_CHECKPOINT26_Y = -948.875
$DIABLO1_CHECKPOINT26_Z = 14.8125
$DIABLO1_CHECKPOINT27_X = 1055.813
$DIABLO1_CHECKPOINT27_Y = -670.1875
$DIABLO1_CHECKPOINT27_Z = 14.8125
$OFFROAD_X1 = -774.1875
$OFFROAD_Y1 = 241.1875
$OFFROAD_Z1 = 50.8125
$OFFROAD_X2 = -1034.625
$OFFROAD_Y2 = 82.75
$OFFROAD_Z2 = 45.8125
$CARANGLE = 115.5
$OPEN_GAME_PALCE_X = -784.375
$OPEN_GAME_PALCE_Y = 230.1875
$OPEN_GAME_PALCE_Z = 48.6875
$CAR_POSITION_X1 = -782.625
$CAR_POSITION_Y1 = 226.25
$CAR_POSITION_Z1 = 48.6875
$CAR_POSITION_X2 = -781.4375
$CAR_POSITION_Y2 = 221.6875
$CAR_POSITION_Z2 = 48.6875
$CAR_POSITION_X3 = -779.9375
$CAR_POSITION_Y3 = 217.5625
$CAR_POSITION_Z3 = 48.6875
set_player_coordinates $PLAYER_CHAR at -826.6875 302.8125 39.0625
set_player_heading $PLAYER_CHAR z_angle_to 335.0
set_camera_behind_player 
restore_camera_jumpcut 

:MLCRACE_2056
TIMERA = 0
request_model 50
request_model 158

:MLCRACE_2072
if or
  not has_model_loaded 158
  not has_model_loaded 50
goto_if_false @MLCRACE_2103
wait 0
goto @MLCRACE_2072

:MLCRACE_2103
switch_roads_off $OFFROAD_X1 $OFFROAD_Y1 $OFFROAD_Z1 $OFFROAD_X2 $OFFROAD_Y2 $OFFROAD_Z2
create_car $DIABLO1_CHEETAH1 = create_car 158 at $CAR_POSITION_X1 $CAR_POSITION_Y1 $CAR_POSITION_Z1
lock_car_doors $DIABLO1_CHEETAH1 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH1 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH1 watertight 1
set_car_strong $DIABLO1_CHEETAH1 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH1 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH2 = create_car 158 at $CAR_POSITION_X2 $CAR_POSITION_Y2 $CAR_POSITION_Z2
lock_car_doors $DIABLO1_CHEETAH2 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH2 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH2 watertight 1
set_car_strong $DIABLO1_CHEETAH2 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH2 not_damaged_when_upside_down 1
create_car $DIABLO1_CHEETAH3 = create_car 158 at $CAR_POSITION_X3 $CAR_POSITION_Y3 $CAR_POSITION_Z3
lock_car_doors $DIABLO1_CHEETAH3 door_status_to 2
set_car_proofs $DIABLO1_CHEETAH3 immunities 1 1 1 0 1
set_car_watertight $DIABLO1_CHEETAH3 watertight 1
set_car_strong $DIABLO1_CHEETAH3 strong 1
set_upsidedown_car_not_damaged $DIABLO1_CHEETAH3 not_damaged_when_upside_down 1
create_char_inside_car $DIABLO1_CHEETAH1_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH1
create_char_inside_car $DIABLO1_CHEETAH2_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH2
create_char_inside_car $DIABLO1_CHEETAH3_DRIVER = create_actor 4 50 in_car $DIABLO1_CHEETAH3
set_char_cant_be_dragged_out $DIABLO1_CHEETAH1_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH2_DRIVER locked_while_in_vehicle 1
set_char_cant_be_dragged_out $DIABLO1_CHEETAH3_DRIVER locked_while_in_vehicle 1
set_car_heading $DIABLO1_CHEETAH1 z_angle_to $CARANGLE
set_car_heading $DIABLO1_CHEETAH2 z_angle_to $CARANGLE
set_car_heading $DIABLO1_CHEETAH3 z_angle_to $CARANGLE
change_car_colour $DIABLO1_CHEETAH1 color_to 0 0
change_car_colour $DIABLO1_CHEETAH2 color_to 73 73
change_car_colour $DIABLO1_CHEETAH3 color_to 76 76
set_car_ignore_level_transitions $DIABLO1_CHEETAH1 level 1
set_car_ignore_level_transitions $DIABLO1_CHEETAH2 level 1
set_car_ignore_level_transitions $DIABLO1_CHEETAH3 level 1
set_char_ignore_level_transitions $DIABLO1_CHEETAH1_DRIVER ignore_level_transitions 1
set_char_ignore_level_transitions $DIABLO1_CHEETAH2_DRIVER ignore_level_transitions 1
set_char_ignore_level_transitions $DIABLO1_CHEETAH3_DRIVER ignore_level_transitions 1
car_set_idle $DIABLO1_CHEETAH1
car_set_idle $DIABLO1_CHEETAH2
car_set_idle $DIABLO1_CHEETAH3
set_car_driving_style $DIABLO1_CHEETAH1 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH1 max_speed_to 50.0
set_car_driving_style $DIABLO1_CHEETAH2 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH2 max_speed_to 50.0
set_car_driving_style $DIABLO1_CHEETAH3 traffic_behavior_to 2
set_car_cruise_speed $DIABLO1_CHEETAH3 max_speed_to 50.0
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 1
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 1
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $OPEN_GAME_PALCE_X $OPEN_GAME_PALCE_Y $OPEN_GAME_PALCE_Z
print_now 'DIAB1_4' time 5000 1
do_fade 1 1000
wait 1000
set_player_control $PLAYER_CHAR can_move 1
set_police_ignore_player $PLAYER_CHAR ignored_by_cops_state_to 0

:MLCRACE_2589
if 
  not locate_stopped_player_in_car_3d $PLAYER_CHAR stopped 1 $OPEN_GAME_PALCE_X $OPEN_GAME_PALCE_Y $OPEN_GAME_PALCE_Z radius 2.0 2.0 2.0
goto_if_false @MLCRACE_2879
wait 0
if 
  locate_stopped_player_on_foot_3d $PLAYER_CHAR stopped 1 $OPEN_GAME_PALCE_X $OPEN_GAME_PALCE_Y $OPEN_GAME_PALCE_Z radius 2.0 2.0 2.0
goto_if_false @MLCRACE_2680
print_now 'YD1_G' time 5000 1

:MLCRACE_2680
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_2703
goto @MLCRACE_13058

:MLCRACE_2703
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_2726
goto @MLCRACE_13058

:MLCRACE_2726
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_2749
goto @MLCRACE_13058

:MLCRACE_2749
get_car_health $TIMERC = car $DIABLO1_CHEETAH1
if 
  1000 > $TIMERC
goto_if_false @MLCRACE_2790
$TIMERC = 9
goto @MLCRACE_2879

:MLCRACE_2790
get_car_health $TIMERC = car $DIABLO1_CHEETAH2
if 
  1000 > $TIMERC
goto_if_false @MLCRACE_2831
$TIMERC = 9
goto @MLCRACE_2879

:MLCRACE_2831
get_car_health $TIMERC = car $DIABLO1_CHEETAH3
if 
  1000 > $TIMERC
goto_if_false @MLCRACE_2872
$TIMERC = 9
goto @MLCRACE_2879

:MLCRACE_2872
goto @MLCRACE_2589

:MLCRACE_2879
set_car_only_damaged_by_player $DIABLO1_CHEETAH1 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH2 immune_to_nonplayer 0
set_car_only_damaged_by_player $DIABLO1_CHEETAH3 immune_to_nonplayer 0
if 
  $TIMERC == 9
goto_if_false @MLCRACE_2940
print_big 'DIAB1_1' 1200 ms 4
goto @MLCRACE_3103

:MLCRACE_2940
set_player_control $PLAYER_CHAR can_move 0
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 1
set_all_cars_can_be_damaged 0
print_big 'YD1_3' 1100 ms 4
add_one_off_sound 97 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_2' 1100 ms 4
add_one_off_sound 98 at 0.0 0.0 0.0
wait 1000
print_big 'YD1_1' 1100 ms 4
add_one_off_sound 99 at 0.0 0.0 0.0
wait 1000
print_big 'YD1GO' 800 ms 4
add_one_off_sound 100 at 0.0 0.0 0.0
set_player_control $PLAYER_CHAR can_move 1
set_everyone_ignore_player $PLAYER_CHAR ignored_by_everyone_to 0
set_all_cars_can_be_damaged 1

:MLCRACE_3103
if 
  is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_3126
goto @MLCRACE_13058

:MLCRACE_3126
if 
  is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_3149
goto @MLCRACE_13058

:MLCRACE_3149
if 
  is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_3172
goto @MLCRACE_13058

:MLCRACE_3172
$TIMERC = 0
remove_blip $BLIP_CHASE_D1
add_blip_for_car_old $DIABLO1_CHEETAH1_MARKER = create_marker_above_car $DIABLO1_CHEETAH1 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH2_MARKER = create_marker_above_car $DIABLO1_CHEETAH2 color 0 display 1
add_blip_for_car_old $DIABLO1_CHEETAH3_MARKER = create_marker_above_car $DIABLO1_CHEETAH3 color 0 display 1
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT1_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT1_Z
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
change_blip_scale $SECOND_BLIP size 2
dim_blip $SECOND_BLIP brightness_to 1
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
get_game_timer $GAME_TIMER_START_D1
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
display_onscreen_counter_with_string $DIABLO1_RACE_TIME 0 'DIAB1_5'

:MLCRACE_3469
wait 0
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
$DIABLO1_POSITION = 0
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR1
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR2
add_int_var_to_int_var $DIABLO1_POSITION += $BEHIND_CAR3
if 
  $DIABLO1_POSITION == 0
goto_if_false @MLCRACE_3557
print_now 'FIRST' time 100 1

:MLCRACE_3557
if 
  $DIABLO1_POSITION == 1
goto_if_false @MLCRACE_3589
print_now 'SECOND' time 100 1

:MLCRACE_3589
if 
  $DIABLO1_POSITION == 2
goto_if_false @MLCRACE_3621
print_now 'THIRD' time 100 1

:MLCRACE_3621
if 
  $DIABLO1_POSITION == 3
goto_if_false @MLCRACE_3653
print_now 'FOURTH' time 100 1

:MLCRACE_3653
if 
  $PLAYER_CPCOUNTER == 26
goto_if_false @MLCRACE_3702
draw_corona 5.5 6 0 with_color 100 0 0 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z
goto @MLCRACE_3726

:MLCRACE_3702
draw_corona 5.5 6 0 with_color 0 0 100 at_point $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MLCRACE_3726
if 
  locate_player_in_car_3d $PLAYER_CHAR 0 $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z radius 6.0 6.0 6.0
goto_if_false @MLCRACE_5579
$PLAYER_CPCOUNTER += 1
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
add_one_off_sound 98 at 0.0 0.0 0.0
if 
  $PLAYER_CPCOUNTER == 1
goto_if_false @MLCRACE_3858
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT2_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z

:MLCRACE_3858
if 
  $PLAYER_CPCOUNTER == 2
goto_if_false @MLCRACE_3924
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT3_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z

:MLCRACE_3924
if 
  $PLAYER_CPCOUNTER == 3
goto_if_false @MLCRACE_3990
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT4_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z

:MLCRACE_3990
if 
  $PLAYER_CPCOUNTER == 4
goto_if_false @MLCRACE_4056
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT5_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z

:MLCRACE_4056
if 
  $PLAYER_CPCOUNTER == 5
goto_if_false @MLCRACE_4122
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT6_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z

:MLCRACE_4122
if 
  $PLAYER_CPCOUNTER == 6
goto_if_false @MLCRACE_4188
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT7_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z

:MLCRACE_4188
if 
  $PLAYER_CPCOUNTER == 7
goto_if_false @MLCRACE_4254
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT8_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z

:MLCRACE_4254
if 
  $PLAYER_CPCOUNTER == 8
goto_if_false @MLCRACE_4320
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT9_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z

:MLCRACE_4320
if 
  $PLAYER_CPCOUNTER == 9
goto_if_false @MLCRACE_4386
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT10_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z

:MLCRACE_4386
if 
  $PLAYER_CPCOUNTER == 10
goto_if_false @MLCRACE_4452
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT11_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z

:MLCRACE_4452
if 
  $PLAYER_CPCOUNTER == 11
goto_if_false @MLCRACE_4518
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT12_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z

:MLCRACE_4518
if 
  $PLAYER_CPCOUNTER == 12
goto_if_false @MLCRACE_4584
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT13_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z

:MLCRACE_4584
if 
  $PLAYER_CPCOUNTER == 13
goto_if_false @MLCRACE_4650
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT14_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z

:MLCRACE_4650
if 
  $PLAYER_CPCOUNTER == 14
goto_if_false @MLCRACE_4716
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT15_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z

:MLCRACE_4716
if 
  $PLAYER_CPCOUNTER == 15
goto_if_false @MLCRACE_4782
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT16_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z

:MLCRACE_4782
if 
  $PLAYER_CPCOUNTER == 16
goto_if_false @MLCRACE_4848
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT17_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z

:MLCRACE_4848
if 
  $PLAYER_CPCOUNTER == 17
goto_if_false @MLCRACE_4914
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT18_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT19_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT19_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT19_Z

:MLCRACE_4914
if 
  $PLAYER_CPCOUNTER == 18
goto_if_false @MLCRACE_4980
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT19_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT19_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT19_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT20_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT20_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT20_Z

:MLCRACE_4980
if 
  $PLAYER_CPCOUNTER == 19
goto_if_false @MLCRACE_5046
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT20_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT20_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT20_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT21_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT21_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT21_Z

:MLCRACE_5046
if 
  $PLAYER_CPCOUNTER == 20
goto_if_false @MLCRACE_5112
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT21_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT21_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT21_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT22_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT22_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT22_Z

:MLCRACE_5112
if 
  $PLAYER_CPCOUNTER == 21
goto_if_false @MLCRACE_5178
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT22_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT22_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT22_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT23_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT23_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT23_Z

:MLCRACE_5178
if 
  $PLAYER_CPCOUNTER == 22
goto_if_false @MLCRACE_5244
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT23_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT23_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT23_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT24_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT24_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT24_Z

:MLCRACE_5244
if 
  $PLAYER_CPCOUNTER == 23
goto_if_false @MLCRACE_5310
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT24_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT24_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT24_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT25_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT25_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT25_Z

:MLCRACE_5310
if 
  $PLAYER_CPCOUNTER == 24
goto_if_false @MLCRACE_5376
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT25_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT25_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT25_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT26_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT26_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT26_Z

:MLCRACE_5376
if 
  $PLAYER_CPCOUNTER == 25
goto_if_false @MLCRACE_5442
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT26_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT26_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT26_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT27_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT27_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT27_Z

:MLCRACE_5442
if 
  $PLAYER_CPCOUNTER == 26
goto_if_false @MLCRACE_5508
set_var_float_to_var_float $DIABLO1_CHECKPOINT_X = $DIABLO1_CHECKPOINT27_X
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Y = $DIABLO1_CHECKPOINT27_Y
set_var_float_to_var_float $DIABLO1_CHECKPOINT_Z = $DIABLO1_CHECKPOINT27_Z
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X = $DIABLO1_CHECKPOINT27_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y = $DIABLO1_CHECKPOINT27_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z = $DIABLO1_CHECKPOINT27_Z

:MLCRACE_5508
if 
  $PLAYER_CPCOUNTER == 27
goto_if_false @MLCRACE_5533
goto @MLCRACE_13075

:MLCRACE_5533
add_blip_for_coord_old $SECOND_BLIP = create_marker_at $DIABLO1_NEXT_CHECKPOINT_X $DIABLO1_NEXT_CHECKPOINT_Y $DIABLO1_NEXT_CHECKPOINT_Z color 5 display 2
dim_blip $SECOND_BLIP brightness_to 1
change_blip_scale $SECOND_BLIP size 2
add_blip_for_coord $BLIP_CHASE_D1 = create_checkpoint_at $DIABLO1_CHECKPOINT_X $DIABLO1_CHECKPOINT_Y $DIABLO1_CHECKPOINT_Z

:MLCRACE_5579
if 
  not is_car_dead $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_7896
get_car_health $CAR1_HEALTH = car $DIABLO1_CHEETAH1
if 
  500 > $CAR1_HEALTH
goto_if_false @MLCRACE_5630
set_car_health $DIABLO1_CHEETAH1 health_to 1000

:MLCRACE_5630
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR1_CPCOUNTER
goto_if_false @MLCRACE_5696
if 
  is_int_var_greater_than_int_var $CAR1_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MLCRACE_5682
$BEHIND_CAR1 = 1
goto @MLCRACE_5689

:MLCRACE_5682
$BEHIND_CAR1 = 0

:MLCRACE_5689
goto @MLCRACE_5908

:MLCRACE_5696
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH1_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH1_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR1_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR1_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MLCRACE_5901
$BEHIND_CAR1 = 0
goto @MLCRACE_5908

:MLCRACE_5901
$BEHIND_CAR1 = 1

:MLCRACE_5908
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLCRACE_6170
if 
  $TIMERD_RESET_FLAG == 0
goto_if_false @MLCRACE_5974
get_game_timer $TIMERD_STARTED
$TIMERD_RESET_FLAG = 1

:MLCRACE_5974
if 
  $TIMERD_RESET_FLAG == 1
goto_if_false @MLCRACE_6170
get_game_timer $TIMERD_CURRENT
set_var_int_to_var_int $TIMERD = $TIMERD_CURRENT
sub_int_var_from_int_var $TIMERD -= $TIMERD_STARTED
if 
  $TIMERD > 8000
goto_if_false @MLCRACE_6170
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_6170
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_6170
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MLCRACE_6170
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERD_RESET_FLAG = 0

:MLCRACE_6170
if 
  not locate_car_3d $DIABLO1_CHEETAH1 0 $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLCRACE_6227
get_car_coordinates $DIABLO1_CHEETAH1 position_to $CAR1_STUCK_X $CAR1_STUCK_Y $CAR1_STUCK_Z
$TIMERD_RESET_FLAG = 0

:MLCRACE_6227
if and
  is_car_upsidedown $DIABLO1_CHEETAH1
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_6379
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_6379
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_6379
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MLCRACE_6379
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MLCRACE_6379
if 
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MLCRACE_6420
if 
  not is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_6420
$TIMERA_RESET_FLAG_D1 = 0

:MLCRACE_6420
if 
  is_car_stopped $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_6632
if 
  $TIMERA_RESET_FLAG_D1 == 0
goto_if_false @MLCRACE_6468
TIMERA = 0
$TIMERA_RESET_FLAG_D1 = 1

:MLCRACE_6468
if and
  TIMERA > 5000
  $TIMERA_RESET_FLAG_D1 == 1
goto_if_false @MLCRACE_6632
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_6632
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_6632
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0
goto_if_false @MLCRACE_6632
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1
$TIMERA_RESET_FLAG_D1 = 0

:MLCRACE_6632
if 
  locate_car_3d $DIABLO1_CHEETAH1 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1
goto_if_false @MLCRACE_7889
$CAR1_CPCOUNTER += 1
if 
  $CAR1_CPCOUNTER == 1
goto_if_false @MLCRACE_6717
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT2_Z

:MLCRACE_6717
if 
  $CAR1_CPCOUNTER == 2
goto_if_false @MLCRACE_6779
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT3_Z
switch_roads_on $OFFROAD_X1 $OFFROAD_Y1 $OFFROAD_Z1 $OFFROAD_X2 $OFFROAD_Y2 $OFFROAD_Z2

:MLCRACE_6779
if 
  $CAR1_CPCOUNTER == 3
goto_if_false @MLCRACE_6821
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT4_Z

:MLCRACE_6821
if 
  $CAR1_CPCOUNTER == 4
goto_if_false @MLCRACE_6863
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT5_Z

:MLCRACE_6863
if 
  $CAR1_CPCOUNTER == 5
goto_if_false @MLCRACE_6905
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT6_Z

:MLCRACE_6905
if 
  $CAR1_CPCOUNTER == 6
goto_if_false @MLCRACE_6947
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT7_Z

:MLCRACE_6947
if 
  $CAR1_CPCOUNTER == 7
goto_if_false @MLCRACE_6989
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT8_Z

:MLCRACE_6989
if 
  $CAR1_CPCOUNTER == 8
goto_if_false @MLCRACE_7031
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT9_Z

:MLCRACE_7031
if 
  $CAR1_CPCOUNTER == 9
goto_if_false @MLCRACE_7073
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT10_Z

:MLCRACE_7073
if 
  $CAR1_CPCOUNTER == 10
goto_if_false @MLCRACE_7115
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT11_Z

:MLCRACE_7115
if 
  $CAR1_CPCOUNTER == 11
goto_if_false @MLCRACE_7157
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT12_Z

:MLCRACE_7157
if 
  $CAR1_CPCOUNTER == 12
goto_if_false @MLCRACE_7199
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT13_Z

:MLCRACE_7199
if 
  $CAR1_CPCOUNTER == 13
goto_if_false @MLCRACE_7241
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT14_Z

:MLCRACE_7241
if 
  $CAR1_CPCOUNTER == 14
goto_if_false @MLCRACE_7283
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT15_Z

:MLCRACE_7283
if 
  $CAR1_CPCOUNTER == 15
goto_if_false @MLCRACE_7325
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT16_Z

:MLCRACE_7325
if 
  $CAR1_CPCOUNTER == 16
goto_if_false @MLCRACE_7367
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT17_Z

:MLCRACE_7367
if 
  $CAR1_CPCOUNTER == 17
goto_if_false @MLCRACE_7409
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT18_Z

:MLCRACE_7409
if 
  $CAR1_CPCOUNTER == 18
goto_if_false @MLCRACE_7451
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT19_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT19_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT19_Z

:MLCRACE_7451
if 
  $CAR1_CPCOUNTER == 19
goto_if_false @MLCRACE_7493
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT20_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT20_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT20_Z

:MLCRACE_7493
if 
  $CAR1_CPCOUNTER == 20
goto_if_false @MLCRACE_7535
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT21_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT21_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT21_Z

:MLCRACE_7535
if 
  $CAR1_CPCOUNTER == 21
goto_if_false @MLCRACE_7577
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT22_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT22_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT22_Z

:MLCRACE_7577
if 
  $CAR1_CPCOUNTER == 22
goto_if_false @MLCRACE_7619
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT23_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT23_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT23_Z

:MLCRACE_7619
if 
  $CAR1_CPCOUNTER == 23
goto_if_false @MLCRACE_7661
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT24_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT24_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT24_Z

:MLCRACE_7661
if 
  $CAR1_CPCOUNTER == 24
goto_if_false @MLCRACE_7703
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT25_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT25_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT25_Z

:MLCRACE_7703
if 
  $CAR1_CPCOUNTER == 25
goto_if_false @MLCRACE_7745
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT26_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT26_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT26_Z

:MLCRACE_7745
if 
  $CAR1_CPCOUNTER == 26
goto_if_false @MLCRACE_7795
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT27_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT27_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1 = $DIABLO1_CHECKPOINT27_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 = 6.0

:MLCRACE_7795
if 
  $CAR1_CPCOUNTER == 27
goto_if_false @MLCRACE_7835
print_now 'DIAB1_3' time 5000 1
goto @MLCRACE_13058

:MLCRACE_7835
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH1 == 7.0
goto_if_false @MLCRACE_7875
car_goto_coordinates $DIABLO1_CHEETAH1 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1
goto @MLCRACE_7889

:MLCRACE_7875
car_goto_coordinates_accurate $DIABLO1_CHEETAH1 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH1

:MLCRACE_7889
goto @MLCRACE_8073

:MLCRACE_7896
if 
  not is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_7926
$BEHIND_CAR1 = 0
$CAR1_CPCOUNTER = 0

:MLCRACE_7926
if 
  is_car_in_water $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_8073
if 
  not is_car_on_screen $DIABLO1_CHEETAH1
goto_if_false @MLCRACE_8073
get_car_coordinates $DIABLO1_CHEETAH1 position_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
get_closest_car_node $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_8073
if 
  not is_point_on_screen $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z 3.0
goto_if_false @MLCRACE_8073
set_car_coordinates $DIABLO1_CHEETAH1 at $DIABLO1_CHEETAH1_X $DIABLO1_CHEETAH1_Y $DIABLO1_CHEETAH1_Z
turn_car_to_face_coord $DIABLO1_CHEETAH1 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH1 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH1

:MLCRACE_8073
if 
  not is_car_dead $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_10370
get_car_health $CAR2_HEALTH = car $DIABLO1_CHEETAH2
if 
  500 > $CAR2_HEALTH
goto_if_false @MLCRACE_8124
set_car_health $DIABLO1_CHEETAH2 health_to 1000

:MLCRACE_8124
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR2_CPCOUNTER
goto_if_false @MLCRACE_8190
if 
  is_int_var_greater_than_int_var $CAR2_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MLCRACE_8176
$BEHIND_CAR2 = 1
goto @MLCRACE_8183

:MLCRACE_8176
$BEHIND_CAR2 = 0

:MLCRACE_8183
goto @MLCRACE_8402

:MLCRACE_8190
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH2_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH2_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR2_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR2_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MLCRACE_8395
$BEHIND_CAR2 = 0
goto @MLCRACE_8402

:MLCRACE_8395
$BEHIND_CAR2 = 1

:MLCRACE_8402
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLCRACE_8664
if 
  $TIMERE_RESET_FLAG == 0
goto_if_false @MLCRACE_8468
get_game_timer $TIMERE_STARTED
$TIMERE_RESET_FLAG = 1

:MLCRACE_8468
if 
  $TIMERE_RESET_FLAG == 1
goto_if_false @MLCRACE_8664
get_game_timer $TIMERE_CURRENT
set_var_int_to_var_int $TIMERE = $TIMERE_CURRENT
sub_int_var_from_int_var $TIMERE -= $TIMERE_STARTED
if 
  $TIMERE > 8000
goto_if_false @MLCRACE_8664
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_8664
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_8664
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MLCRACE_8664
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERE_RESET_FLAG = 0

:MLCRACE_8664
if 
  not locate_car_3d $DIABLO1_CHEETAH2 0 $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLCRACE_8721
get_car_coordinates $DIABLO1_CHEETAH2 position_to $CAR2_STUCK_X $CAR2_STUCK_Y $CAR2_STUCK_Z
$TIMERE_RESET_FLAG = 0

:MLCRACE_8721
if and
  is_car_upsidedown $DIABLO1_CHEETAH2
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_8873
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_8873
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_8873
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MLCRACE_8873
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MLCRACE_8873
if 
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MLCRACE_8914
if 
  not is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_8914
$TIMERB_RESET_FLAG_D1 = 0

:MLCRACE_8914
if 
  is_car_stopped $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_9126
if 
  $TIMERB_RESET_FLAG_D1 == 0
goto_if_false @MLCRACE_8962
TIMERB = 0
$TIMERB_RESET_FLAG_D1 = 1

:MLCRACE_8962
if and
  TIMERB > 5000
  $TIMERB_RESET_FLAG_D1 == 1
goto_if_false @MLCRACE_9126
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_9126
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_9126
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0
goto_if_false @MLCRACE_9126
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2
$TIMERB_RESET_FLAG_D1 = 0

:MLCRACE_9126
if 
  locate_car_3d $DIABLO1_CHEETAH2 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2
goto_if_false @MLCRACE_10363
$CAR2_CPCOUNTER += 1
if 
  $CAR2_CPCOUNTER == 1
goto_if_false @MLCRACE_9211
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT2_Z

:MLCRACE_9211
if 
  $CAR2_CPCOUNTER == 2
goto_if_false @MLCRACE_9253
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT3_Z

:MLCRACE_9253
if 
  $CAR2_CPCOUNTER == 3
goto_if_false @MLCRACE_9295
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT4_Z

:MLCRACE_9295
if 
  $CAR2_CPCOUNTER == 4
goto_if_false @MLCRACE_9337
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT5_Z

:MLCRACE_9337
if 
  $CAR2_CPCOUNTER == 5
goto_if_false @MLCRACE_9379
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT6_Z

:MLCRACE_9379
if 
  $CAR2_CPCOUNTER == 6
goto_if_false @MLCRACE_9421
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT7_Z

:MLCRACE_9421
if 
  $CAR2_CPCOUNTER == 7
goto_if_false @MLCRACE_9463
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT8_Z

:MLCRACE_9463
if 
  $CAR2_CPCOUNTER == 8
goto_if_false @MLCRACE_9505
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT9_Z

:MLCRACE_9505
if 
  $CAR2_CPCOUNTER == 9
goto_if_false @MLCRACE_9547
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT10_Z

:MLCRACE_9547
if 
  $CAR2_CPCOUNTER == 10
goto_if_false @MLCRACE_9589
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT11_Z

:MLCRACE_9589
if 
  $CAR2_CPCOUNTER == 11
goto_if_false @MLCRACE_9631
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT12_Z

:MLCRACE_9631
if 
  $CAR2_CPCOUNTER == 12
goto_if_false @MLCRACE_9673
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT13_Z

:MLCRACE_9673
if 
  $CAR2_CPCOUNTER == 13
goto_if_false @MLCRACE_9715
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT14_Z

:MLCRACE_9715
if 
  $CAR2_CPCOUNTER == 14
goto_if_false @MLCRACE_9757
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT15_Z

:MLCRACE_9757
if 
  $CAR2_CPCOUNTER == 15
goto_if_false @MLCRACE_9799
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT16_Z

:MLCRACE_9799
if 
  $CAR2_CPCOUNTER == 16
goto_if_false @MLCRACE_9841
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT17_Z

:MLCRACE_9841
if 
  $CAR2_CPCOUNTER == 17
goto_if_false @MLCRACE_9883
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT18_Z

:MLCRACE_9883
if 
  $CAR2_CPCOUNTER == 18
goto_if_false @MLCRACE_9925
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT19_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT19_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT19_Z

:MLCRACE_9925
if 
  $CAR2_CPCOUNTER == 19
goto_if_false @MLCRACE_9967
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT20_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT20_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT20_Z

:MLCRACE_9967
if 
  $CAR2_CPCOUNTER == 20
goto_if_false @MLCRACE_10009
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT21_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT21_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT21_Z

:MLCRACE_10009
if 
  $CAR2_CPCOUNTER == 21
goto_if_false @MLCRACE_10051
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT22_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT22_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT22_Z

:MLCRACE_10051
if 
  $CAR2_CPCOUNTER == 22
goto_if_false @MLCRACE_10093
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT23_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT23_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT23_Z

:MLCRACE_10093
if 
  $CAR2_CPCOUNTER == 23
goto_if_false @MLCRACE_10135
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT24_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT24_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT24_Z

:MLCRACE_10135
if 
  $CAR2_CPCOUNTER == 24
goto_if_false @MLCRACE_10177
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT25_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT25_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT25_Z

:MLCRACE_10177
if 
  $CAR2_CPCOUNTER == 25
goto_if_false @MLCRACE_10219
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT26_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT26_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT26_Z

:MLCRACE_10219
if 
  $CAR2_CPCOUNTER == 26
goto_if_false @MLCRACE_10269
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT27_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT27_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2 = $DIABLO1_CHECKPOINT27_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 = 6.0

:MLCRACE_10269
if 
  $CAR2_CPCOUNTER == 27
goto_if_false @MLCRACE_10309
print_now 'DIAB1_3' time 5000 1
goto @MLCRACE_13058

:MLCRACE_10309
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH2 == 7.0
goto_if_false @MLCRACE_10349
car_goto_coordinates $DIABLO1_CHEETAH2 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2
goto @MLCRACE_10363

:MLCRACE_10349
car_goto_coordinates_accurate $DIABLO1_CHEETAH2 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH2

:MLCRACE_10363
goto @MLCRACE_10547

:MLCRACE_10370
if 
  not is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_10400
$BEHIND_CAR2 = 0
$CAR2_CPCOUNTER = 0

:MLCRACE_10400
if 
  is_car_in_water $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_10547
if 
  not is_car_on_screen $DIABLO1_CHEETAH2
goto_if_false @MLCRACE_10547
get_car_coordinates $DIABLO1_CHEETAH2 position_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
get_closest_car_node $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_10547
if 
  not is_point_on_screen $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z 3.0
goto_if_false @MLCRACE_10547
set_car_coordinates $DIABLO1_CHEETAH2 at $DIABLO1_CHEETAH2_X $DIABLO1_CHEETAH2_Y $DIABLO1_CHEETAH2_Z
turn_car_to_face_coord $DIABLO1_CHEETAH2 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH2 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH2

:MLCRACE_10547
if 
  not is_car_dead $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_12874
get_car_health $CAR3_HEALTH = car $DIABLO1_CHEETAH3
if 
  500 > $CAR3_HEALTH
goto_if_false @MLCRACE_10598
set_car_health $DIABLO1_CHEETAH3 health_to 1000

:MLCRACE_10598
if 
  not is_int_var_equal_to_int_var $PLAYER_CPCOUNTER == $CAR3_CPCOUNTER
goto_if_false @MLCRACE_10664
if 
  is_int_var_greater_than_int_var $CAR3_CPCOUNTER > $PLAYER_CPCOUNTER
goto_if_false @MLCRACE_10650
$BEHIND_CAR3 = 1
goto @MLCRACE_10657

:MLCRACE_10650
$BEHIND_CAR3 = 0

:MLCRACE_10657
goto @MLCRACE_10876

:MLCRACE_10664
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $DIABLO1_CHEETAH3_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $DIABLO1_CHEETAH3_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $CAR3_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
get_player_coordinates $PLAYER_CHAR position_to $PLAYERS_X $PLAYERS_Y $PLAYERS_Z
set_var_float_to_var_float $DIFFERENCE_X_FLOAT_D = $PLAYERS_X
sub_float_var_from_float_var $DIFFERENCE_X_FLOAT_D -= $DIABLO1_CHECKPOINT_X
set_var_float_to_var_float $DIFFERENCE_Y_FLOAT_D = $PLAYERS_Y
sub_float_var_from_float_var $DIFFERENCE_Y_FLOAT_D -= $DIABLO1_CHECKPOINT_Y
mult_float_var_by_float_var $DIFFERENCE_X_FLOAT_D *= $DIFFERENCE_X_FLOAT_D
mult_float_var_by_float_var $DIFFERENCE_Y_FLOAT_D *= $DIFFERENCE_Y_FLOAT_D
set_var_float_to_var_float $SUM_DIFFERENCE_D_XY = $DIFFERENCE_X_FLOAT_D
add_float_var_to_float_var $SUM_DIFFERENCE_D_XY += $DIFFERENCE_Y_FLOAT_D
sqrt $PLAYERS_DISTANCE_FROM_CP = square_root $SUM_DIFFERENCE_D_XY
if 
  is_float_var_greater_than_float_var $CAR3_DISTANCE_FROM_CP > $PLAYERS_DISTANCE_FROM_CP
goto_if_false @MLCRACE_10869
$BEHIND_CAR3 = 0
goto @MLCRACE_10876

:MLCRACE_10869
$BEHIND_CAR3 = 1

:MLCRACE_10876
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLCRACE_11138
if 
  $TIMERF_RESET_FLAG == 0
goto_if_false @MLCRACE_10942
get_game_timer $TIMERF_STARTED
$TIMERF_RESET_FLAG = 1

:MLCRACE_10942
if 
  $TIMERF_RESET_FLAG == 1
goto_if_false @MLCRACE_11138
get_game_timer $TIMERF_CURRENT
set_var_int_to_var_int $TIMERF = $TIMERF_CURRENT
sub_int_var_from_int_var $TIMERF -= $TIMERF_STARTED
if 
  $TIMERF > 8000
goto_if_false @MLCRACE_11138
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_11138
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_11138
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MLCRACE_11138
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERF_RESET_FLAG = 0

:MLCRACE_11138
if 
  not locate_car_3d $DIABLO1_CHEETAH3 0 $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z radius 4.0 4.0 4.0
goto_if_false @MLCRACE_11195
get_car_coordinates $DIABLO1_CHEETAH3 position_to $CAR3_STUCK_X $CAR3_STUCK_Y $CAR3_STUCK_Z
$TIMERF_RESET_FLAG = 0

:MLCRACE_11195
if and
  is_car_upsidedown $DIABLO1_CHEETAH3
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_11347
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_11347
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_11347
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MLCRACE_11347
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MLCRACE_11347
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MLCRACE_11388
if 
  not is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_11388
$TIMERC_RESET_FLAG_D1 = 0

:MLCRACE_11388
if 
  is_car_stopped $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_11630
if 
  $TIMERC_RESET_FLAG_D1 == 0
goto_if_false @MLCRACE_11434
get_game_timer $TIMERC_STARTED
$TIMERC_RESET_FLAG_D1 = 1

:MLCRACE_11434
if 
  $TIMERC_RESET_FLAG_D1 == 1
goto_if_false @MLCRACE_11630
get_game_timer $TIMERC_CURRENT
set_var_int_to_var_int $TIMERC = $TIMERC_CURRENT
sub_int_var_from_int_var $TIMERC -= $TIMERC_STARTED
if 
  $TIMERC > 5000
goto_if_false @MLCRACE_11630
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_11630
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_11630
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0
goto_if_false @MLCRACE_11630
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3
$TIMERC_RESET_FLAG_D1 = 0

:MLCRACE_11630
if 
  locate_car_3d $DIABLO1_CHEETAH3 0 $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 radius $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3
goto_if_false @MLCRACE_12867
$CAR3_CPCOUNTER += 1
if 
  $CAR3_CPCOUNTER == 1
goto_if_false @MLCRACE_11715
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT2_Z

:MLCRACE_11715
if 
  $CAR3_CPCOUNTER == 2
goto_if_false @MLCRACE_11757
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT3_Z

:MLCRACE_11757
if 
  $CAR3_CPCOUNTER == 3
goto_if_false @MLCRACE_11799
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT4_Z

:MLCRACE_11799
if 
  $CAR3_CPCOUNTER == 4
goto_if_false @MLCRACE_11841
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT5_Z

:MLCRACE_11841
if 
  $CAR3_CPCOUNTER == 5
goto_if_false @MLCRACE_11883
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT6_Z

:MLCRACE_11883
if 
  $CAR3_CPCOUNTER == 6
goto_if_false @MLCRACE_11925
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT7_Z

:MLCRACE_11925
if 
  $CAR3_CPCOUNTER == 7
goto_if_false @MLCRACE_11967
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT8_Z

:MLCRACE_11967
if 
  $CAR3_CPCOUNTER == 8
goto_if_false @MLCRACE_12009
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT9_Z

:MLCRACE_12009
if 
  $CAR3_CPCOUNTER == 9
goto_if_false @MLCRACE_12051
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT10_Z

:MLCRACE_12051
if 
  $CAR3_CPCOUNTER == 10
goto_if_false @MLCRACE_12093
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT11_Z

:MLCRACE_12093
if 
  $CAR3_CPCOUNTER == 11
goto_if_false @MLCRACE_12135
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT12_Z

:MLCRACE_12135
if 
  $CAR3_CPCOUNTER == 12
goto_if_false @MLCRACE_12177
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT13_Z

:MLCRACE_12177
if 
  $CAR3_CPCOUNTER == 13
goto_if_false @MLCRACE_12219
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT14_Z

:MLCRACE_12219
if 
  $CAR3_CPCOUNTER == 14
goto_if_false @MLCRACE_12261
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT15_Z

:MLCRACE_12261
if 
  $CAR3_CPCOUNTER == 15
goto_if_false @MLCRACE_12303
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT16_Z

:MLCRACE_12303
if 
  $CAR3_CPCOUNTER == 16
goto_if_false @MLCRACE_12345
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT17_Z

:MLCRACE_12345
if 
  $CAR3_CPCOUNTER == 17
goto_if_false @MLCRACE_12387
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT18_Z

:MLCRACE_12387
if 
  $CAR3_CPCOUNTER == 18
goto_if_false @MLCRACE_12429
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT19_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT19_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT19_Z

:MLCRACE_12429
if 
  $CAR3_CPCOUNTER == 19
goto_if_false @MLCRACE_12471
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT20_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT20_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT20_Z

:MLCRACE_12471
if 
  $CAR3_CPCOUNTER == 20
goto_if_false @MLCRACE_12513
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT21_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT21_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT21_Z

:MLCRACE_12513
if 
  $CAR3_CPCOUNTER == 21
goto_if_false @MLCRACE_12555
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT22_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT22_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT22_Z

:MLCRACE_12555
if 
  $CAR3_CPCOUNTER == 22
goto_if_false @MLCRACE_12597
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT23_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT23_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT23_Z

:MLCRACE_12597
if 
  $CAR3_CPCOUNTER == 23
goto_if_false @MLCRACE_12639
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT24_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT24_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT24_Z

:MLCRACE_12639
if 
  $CAR3_CPCOUNTER == 24
goto_if_false @MLCRACE_12681
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT25_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT25_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT25_Z

:MLCRACE_12681
if 
  $CAR3_CPCOUNTER == 25
goto_if_false @MLCRACE_12723
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT26_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT26_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT26_Z

:MLCRACE_12723
if 
  $CAR3_CPCOUNTER == 26
goto_if_false @MLCRACE_12773
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT27_X
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT27_Y
set_var_float_to_var_float $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3 = $DIABLO1_CHECKPOINT27_Z
$DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 = 6.0

:MLCRACE_12773
if 
  $CAR3_CPCOUNTER == 27
goto_if_false @MLCRACE_12813
print_now 'DIAB1_3' time 5000 1
goto @MLCRACE_13058

:MLCRACE_12813
if 
  $DIABLO1_MAX_CHECKPOINT_DISTANCE_FOR_CHEETAH3 == 7.0
goto_if_false @MLCRACE_12853
car_goto_coordinates $DIABLO1_CHEETAH3 drive_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3
goto @MLCRACE_12867

:MLCRACE_12853
car_goto_coordinates_accurate $DIABLO1_CHEETAH3 drive_to_point $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Z_FOR_CHEETAH3

:MLCRACE_12867
goto @MLCRACE_13051

:MLCRACE_12874
if 
  not is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_12904
$BEHIND_CAR3 = 0
$CAR3_CPCOUNTER = 0

:MLCRACE_12904
if 
  is_car_in_water $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_13051
if 
  not is_car_on_screen $DIABLO1_CHEETAH3
goto_if_false @MLCRACE_13051
get_car_coordinates $DIABLO1_CHEETAH3 position_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
get_closest_car_node $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z to_car_path_coords_closest_to $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
if 
  not is_point_obscured_by_a_mission_entity $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 4.0 4.0 4.0
goto_if_false @MLCRACE_13051
if 
  not is_point_on_screen $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z 3.0
goto_if_false @MLCRACE_13051
set_car_coordinates $DIABLO1_CHEETAH3 at $DIABLO1_CHEETAH3_X $DIABLO1_CHEETAH3_Y $DIABLO1_CHEETAH3_Z
turn_car_to_face_coord $DIABLO1_CHEETAH3 race_to $DIABLO1_NEXT_CHECKPOINT_X_FOR_CHEETAH3 $DIABLO1_NEXT_CHECKPOINT_Y_FOR_CHEETAH3

:MLCRACE_13051
goto @MLCRACE_3469

:MLCRACE_13058
print_big 'M_FAIL' 2000 ms 1
return 

:MLCRACE_13075
get_game_timer $DIABLO1_RACE_TIME
sub_int_var_from_int_var $DIABLO1_RACE_TIME -= $GAME_TIMER_START_D1
$DIABLO1_RACE_TIME /= 1000
if and
  $INMLCRACE_123_PASS == 0
  $INMLCRACE_123 == 1
goto_if_false @MLCRACE_13170
$INMLCRACE_123_PASS = 1
$INMLCRACE_123 = 0
register_unique_jump_found 
add_score $PLAYER_CHAR money += 20000
print_with_number_big 'M_PASS' 20000 5000 ms 1
goto @MLCRACE_13270

:MLCRACE_13170
if and
  $INMLCRACE_321_PASS == 0
  $INMLCRACE_321 == 1
goto_if_false @MLCRACE_13244
$INMLCRACE_321_PASS = 1
$INMLCRACE_321 = 0
register_unique_jump_found 
add_score $PLAYER_CHAR money += 21000
print_with_number_big 'M_PASS' 21000 5000 ms 1
goto @MLCRACE_13270

:MLCRACE_13244
add_score $PLAYER_CHAR money += 5000
print_with_number_big 'M_PASS' 5000 5000 ms 1

:MLCRACE_13270
if and
  $MLCRACE_PASS == 0
  $INMLCRACE_123_PASS == 1
  $INMLCRACE_321_PASS == 1
goto_if_false @MLCRACE_13345
start_new_script @RACEMON 
add_pager_message 'MONEY' 140 10 2
player_made_progress 1
$PROGRESS_100 += 1
$MLCRACE_PASS = 1

:MLCRACE_13345
print_with_number_now 'DIAB1_2' $DIABLO1_RACE_TIME time 5000 1
register_el_burro_time $DIABLO1_RACE_TIME
clear_wanted_level $PLAYER_CHAR
play_mission_passed_tune 1
if 
  $FLAG_DIABLO1_PASSED_BEFORE == 0
goto_if_false @MLCRACE_13409
$FLAG_DIABLO_MISSION1_PASSED = 1
$FLAG_DIABLO1_PASSED_BEFORE = 1

:MLCRACE_13409
return 

:MLCRACE_13411
$INMLCRACE_123 = 0
$INMLCRACE_321 = 0
switch_roads_on $OFFROAD_X1 $OFFROAD_Y1 $OFFROAD_Z1 $OFFROAD_X2 $OFFROAD_Y2 $OFFROAD_Z2
remove_blip $DIABLO1_CHEETAH1_MARKER
remove_blip $DIABLO1_CHEETAH2_MARKER
remove_blip $DIABLO1_CHEETAH3_MARKER
remove_blip $BLIP_CHASE_D1
remove_blip $SECOND_BLIP
mark_model_as_no_longer_needed 50
mark_model_as_no_longer_needed 158
clear_onscreen_counter $DIABLO1_RACE_TIME
$ONMISSION = 0
$ON_MISSION_FOR_DIABLOS = 0
mission_has_finished 
return 
